Get Slow Queries
Retrievers
Get Slow Queries
Get slow queries and their filter patterns.
Identifies queries exceeding a latency threshold and shows which metadata fields they’re filtering on, helping pinpoint optimization opportunities.
Use Cases:
- Troubleshoot slow queries
- Identify unindexed fields causing slowdowns
- Debug performance issues
- Optimize query patterns
Response Includes:
- Query details (retriever, inputs, latency)
- Results count
- Metadata fields being filtered
- Full query context
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/namespaces/queries/slow?latency_threshold_ms=1000" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
GET
Get Slow Queries
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Days of history to analyze
Required range:
1 <= x <= 90Latency threshold in ms
Required range:
100 <= x <= 10000Maximum queries to return
Required range:
1 <= x <= 500Response
Successful Response
Response for slow queries endpoint.

