Uploaded image for project: 'VS Code Extension'
  1. VS Code Extension
  2. VSCODE-648

The /schema command should better consume context and return the json schema and not a query

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed
    • Developer Tools

      Problem Statement/Rationale

      Sometimes, when using the /query command to build a query, and then at some point using the /schema to get information about the schema of a collection without opening a new chat window, Copilot keeps thinking that a user wants to build a query.

      What might happen is that the model becomes confused by the previous context and not very clear prompt for the /schema command. we probably should update the prompt to specify what output we expect from this command. like not a runnable playground based on the previous conversation, but json schema.

      The related Slack thread: https://mongodb.slack.com/archives/GTTUKDWRH/p1731575160161789

      Steps to Reproduce

      See the attached screenshot.

      Expected Results

      The /schema command returns a json schema of the collection

      Actual Results

      The /schema command generates a code block like the /query command

        1. image (2).png
          207 kB
          Alena Khineika

            Assignee:
            gagik.amaryan@mongodb.com Gagik Amaryan
            Reporter:
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: