Hanzo
OpenapiAi

Retrieve the top-K chunks relevant to a query, scoped to a single uploaded file…

Retrieve the top-K chunks relevant to a query, scoped to a single uploaded file (`file_id`). Hybrid keyword+vector retrieval over the same index.

POST /v1/ai/rag/query

Addresshttps://api.hanzo.ai/v1/ai/rag/query
MethodPOST
Operationpost_ai_rag_query
AuthAuthorization: Bearer $HANZO_API_KEY

Retrieve the top-K chunks relevant to a query, scoped to a single uploaded file (file_id). Hybrid keyword+vector retrieval over the same index. Consolidates the retired chat-rag-api POST /query.

Request

The document declares no body for POST /v1/ai/rag/query. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask the MCP door's describe for post_ai_rag_query, which answers from the running route.

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


AI API · All Hanzo APIs · Interactive reference

How is this guide?

On this page