SpecOS SpecOS icon Documentation

Dashboard Guide

The Performance Dashboard provides real-time analytics for the AI chat's performance, response times, and widget usage.

Performance Metrics

The cards at the top of the dashboard provide a quick overview of key performance indicators.

  • Avg Response Time: The average time it takes for the AI to respond to a user's message, from the moment the query is sent to the moment the response is received.
  • AI Generation Time: The average time the AI model (Gemini) spends generating the text of the response. This is a subset of the total response time.
  • Tool Execution Time: The average time spent executing tools (e.g., searching the database for products). This is also a subset of the total response time.
  • Success Rate: The percentage of queries that were successfully answered without any errors.
  • Total Queries: The total number of queries processed by the chat AI.
  • Slow Queries: The number of queries that took longer than 10 seconds to process.
  • Error Rate: The percentage of queries that resulted in an error.
  • P95 Response Time: The 95th percentile of response times. This means that 95% of all queries were faster than this value, which helps to identify outlier performance issues.

Performance Insights

Most Used Tools

This section shows which tools are being used most frequently by the QueryAgent. This can help you understand what kinds of information users are most often requesting.

Recent Slow Queries

This list displays the most recent queries that took longer than 10 seconds to process. Each entry is broken down into:

  • Total: The total response time.
  • Tools: The amount of time spent on tool execution.
  • AI: The amount of time spent on AI generation.

This helps you pinpoint the cause of the slowness, whether it's a slow database query or a complex AI generation task.

Widget Usage Comparison

This section allows you to compare the performance of two different widget configurations side-by-side.

How to Use the Charts

  1. Select Widgets: Use the dropdown menus to select the two widgets you want to compare.
  2. View Metrics: The bar charts will display the following metrics for each selected widget:
    • Usage Count: The total number of times the widget has been used.
    • Active Buttons: The number of currently active buttons in the widget's configuration.
    • Button Clicks: The total number of clicks on all buttons within the widget.
  3. Export Data: You can click the "Export CSV" button to download a CSV file of the widget's metrics for further analysis.