---
title: "Rate RAG"
method: PUT
path: "/api/analytics/rag"
tags: ["Analytics"]
---

# Rate RAG

`PUT /api/analytics/rag`

This route allows you to Rate a RAG query.

## Headers

- `TR-Dataset` string, uuid, required

## Request body

- RateQueryRequest
  - `metadata` unknown
  - `note` string, nullable
  - `query_id` string, uuid, required
  - `rating` integer, required

## Response `204`

The RAG query was successfully rated

## Other responses

- `400` — Service error relating to rating a RAG query

---

[API](https://skmtc.net/devflowinc/apis/trieve-api.md) · [All operations](https://skmtc.net/devflowinc/apis/trieve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/devflowinc/trieve-api/revisions/84583e7c9fc1/schema)
