Skip to content

Commit 854b611

Browse files
committed
Adjust prompt for retrieved content
1 parent 1f1fac1 commit 854b611

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Tool/Sources/OpenAIService/Memory/AutoManagedChatGPTMemory.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,13 +290,11 @@ extension AutoManagedChatGPTMemory {
290290
Here are the information you know about the system and the project, \
291291
separated by \(separator)
292292
293-
293+
294294
"""
295-
} else {
296-
text += "\n\(separator)\n"
297295
}
298296

299-
text += content.content
297+
text += "\n\n\(separator)[DOCUMENT \(index)]\n\n" + content.content
300298
}
301299

302300
return .init(role: .user, content: text)

0 commit comments

Comments
 (0)