-
Type: Task
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: GAI
-
None
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.