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

Update the ai prompt to return MQL strings instead of EJSON

    XMLWordPrintableJSON

Details

    • Icon: Investigation Investigation
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • GAI
    • None
    • 5
    • Not Needed
    • Iteration Iguanodon

    Description

      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.

       

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: