Skip to content

Commit e43902a

Browse files
committed
Limit to 15 references
1 parent a00c478 commit e43902a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Core/Sources/ChatService/DynamicContextController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ final class DynamicContextController {
101101
.flatMap(\.retrievedContent)
102102
.filter { !$0.document.content.isEmpty }
103103
.sorted { $0.priority > $1.priority }
104+
.prefix(15)
104105

105106
let contextualSystemPrompt = """
106107
\(language.isEmpty ? "" : "You must always reply in \(language)")

Pro

Submodule Pro updated from 3800388 to 991a921

0 commit comments

Comments
 (0)