Whatever message this page gives is out now! Go check it out!
ragService.getStatistics()Key | Description |
|---|---|
totalDocumentsIngested | Total documents ingested since service creation. |
totalSegmentsIngested | Total text segments embedded and stored. |
totalQueriesExecuted | Total ask() and chat() calls made. |
averageQueryDurationMs | Mean query round-trip time in milliseconds. |
lastIngestedAt | Timestamp of the most recent ingestion. |
createdAt | Timestamp when this service instance was created. |
stats = ragBot.getStatistics();
writeOutput("Queries executed: #stats.totalQueriesExecuted#");