---
title: "Query using RAG Search"
method: POST
path: "/rag/query"
---

# Query using RAG Search

`POST /rag/query`

Query across your connected data sources using RAG Search

## Headers

- `x-connection-token` string, required

## Request body

- QueryBody
  - `query` string, required — The query you want to received embeddings and chunks for
  - `topK` number, nullable — The number of most appropriate documents for your query.

## Response `201`

- RagQueryOutput[]
  - `chunk` string, required — The chunk which matches the embed query
  - `metadata` object, nullable, required — The metadata tied to the chunk
  - `score` number, nullable, required — The score
  - `embedding` number[], nullable, required — The embedding of the relevant chunk

---

[API](https://skmtc.net/panoratech/apis/panora-api-2.md) · [All operations](https://skmtc.net/panoratech/apis/panora-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/panoratech/panora-api-2/versions/ef360d76c658/schema)
