You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/app/src/lib/ai/tools.ts
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -105,7 +105,7 @@ function createRagContextTool(bookId: string): ToolDefinition {
105
105
return{
106
106
name: "ragContext",
107
107
description:
108
-
"Get surrounding text context for a specific chapter. Use this when the user asks about content near a specific location.",
108
+
"Get surrounding text context for a specific chapter. Use this when the user asks about content near a specific location. Returns chunks with CFI information - use the CFI from the chunk containing your quoted text when calling addCitation.",
109
109
parameters: {
110
110
chapterIndex: {type: "number",description: "The chapter index",required: true},
111
111
range: {
@@ -125,7 +125,12 @@ function createRagContextTool(bookId: string): ToolDefinition {
0 commit comments