Skip to main content
POST /v1/chat runs retrieval and answer generation together. It is stateless: pass history in and persist the history you get back, the same as the SDK chat().

Basic chat

Streaming chat

POST /v1/chat/stream returns text/event-stream SSE frames for normal RAG chat. Progress events describe retrieval and generation stages, token events stream generated text, and the final event contains the full chat response.
Chat streaming covers normal RAG chat. It does not stream agentic tool-call execution.

Multi-turn

Pass the history array from the previous response back on the next request.

Tuning blocks

Each maps to an SDK chat config object. All are optional.

Query rewriting

Expands conversational follow-ups into standalone questions before retrieval.

History compaction

Summarizes old turns and keeps recent ones, so long conversations stay within the context window.

Intent routing

Skips retrieval for small talk and direct questions.

Retrieval quality

Sets confidence thresholds for the retrieved context.

Reranking

Request fields

Response fields