Log full requests and responses from AI

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: None
    • None
    • Not Needed

      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.

            Assignee:
            Alena Khineika
            Reporter:
            Alena Khineika
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: