Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
…PASS-10083-wrap-data-in-tags
  • Loading branch information
mabaasit committed Dec 15, 2025
commit 641d379cf89446a38000c2e2f0eb35190a708378
3 changes: 2 additions & 1 deletion packages/compass-generative-ai/src/utils/gen-ai-prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ function buildUserPromptForQuery({
messages.push(`Collection name: "${collectionName}"`);
}
if (schema) {
const schemaStr = toJSString(flattenSchemaToObject(schema));
messages.push(
`Schema from a sample of documents from the collection:${withCodeFence(
`<user_schema>${toJSString(schema)!}</user_schema>`
`<user_schema>${schemaStr}</user_schema>`
)}`
);
}
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.