-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
To pass the schema of documents in a collection to the AI as context, we use the mongodb-schema package, similar to how we’re doing it in Compass. Then, as we do with the AI endpoint in mms we use this schema to generate something for the AI.
In the POC we have this in typescript: https://github.com/mongodb-js/vscode/blob/copilot-agent/src/agent/schema.ts