curl --request PUT \
--url https://api.trieve.ai/api/analytics/rag \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"metadata": "<any>",
"note": "<string>",
"query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rating": 123
}'
This response does not have an example.
This route allows you to Rate a RAG query.
curl --request PUT \
--url https://api.trieve.ai/api/analytics/rag \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"metadata": "<any>",
"note": "<string>",
"query_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rating": 123
}'
This response does not have an example.
The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.
JSON request payload to rate a RAG query
The body is of type object
.
The RAG query was successfully rated
Was this page helpful?