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

Add sample document passing to Compass

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.43.0
    • Affects Version/s: None
    • Component/s: GAI
    • None
    • Developer Tools
    • 5
    • Needed
    • Hide

      We've added a new setting to the `Artificial Intelligence` settings section:
      `Enable sending sample field values with query and aggregation generation requests.`
      We show settings on this page:
      https://www.mongodb.com/docs/compass/current/settings/config-file/#std-label-config-file-options 
      We can add this setting `enableGenAISampleDocumentPassing` there.

       

      Show
      We've added a new setting to the `Artificial Intelligence` settings section: `Enable sending sample field values with query and aggregation generation requests.` We show settings on this page: https://www.mongodb.com/docs/compass/current/settings/config-file/#std-label-config-file-options   We can add this setting `enableGenAISampleDocumentPassing` there.  
    • Iteration Yinlong, Iteration Zephyrosaurus

      Add a `enableGenAISampleDocumentPassing` preference to Compass. This is `false` by default. When this preference is set to `true`, sample documents are sent with the user’s AI text prompt to our backend Atlas service. Let's send 3 sample documents with the request. Before including them check the size of the documents (some folks have documents that are > 1 MB). Similar to how we restrict the size on the backend, we only include as many that fit within the size threshold or none. However, since we do this size check on the backend, this frontend validation and size restriction is a lot looser as we want the backend to be the ultimate decider as it is more in our control to change over time.

      Add telemetry details to the `AI Prompt Submitted` event: a boolean for if there are sample documents attached.

            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: