Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7100

Update the ai prompt to return MQL strings instead of EJSON

    • Type: Icon: Investigation Investigation
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: GAI
    • None
    • 5
    • Not Needed
    • Iteration Iguanodon

      Currently we ask the ai service's large language model to return EJSON that we then show in the query bar.
      In this ticket let's investigate sending back MQL (shell syntax) strings that we then show in the query bar. These don't have to be valid for them to be updated.

      The reasons for MQL strings instead of EJSON are:

      • The ai model is more comfortable with MQL.
        • We don't have to use as many tokens in the system prompt around teaching it EJSON
      • Arithmetic is allowed.
      • Template variable responses from the ai is allowed as the resulting string doesn't have to be valid to be shown.

       

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: