/query: Send schema to the model for better results

XMLWordPrintableJSON

    • 3
    • Iteration Ionosphere, Iteration Jupiter
    • Not Needed
    • Developer Tools

      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

            Assignee:
            Alena Khineika
            Reporter:
            Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: