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

Log full requests and responses from AI

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • None
    • None
    • Not Needed
    • Iteration Gargoyleosaurus

    Description

      Currently, we log only the shape of the requests:

      req.logger.info('Performing a query generation request', {
        hasSchema: !!req.body.schema,
        hasCollectionName: !!req.body.collectionName,
        hasSampleDocuments: !!req.body.hasSampleDocuments,
      });
      

      And errors in responses:

      req.logger.error('Error occurred', err);
      

      For the internal beta, we want to log full requests and responses to learning from this experience how good our prompts are at building MongoDB queries. Since we don't use sample documents we should be okay from security perspective.

      Attachments

        Activity

          People

            alena.khineika@mongodb.com Alena Khineika
            alena.khineika@mongodb.com Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: