SDK ReferenceInstant RAG
Query Instant RAG
Query an existing instant RAG context with a specific query.
Description
The Query Instant RAG
endpoint allows you to query an existing instant Retrieval-Augmented Generation (RAG) context using a specific query. This enables you to generate responses that are informed by the provided context.
HTTP Request
POST /index/instant/query
Authentication
All requests must include an Authorization
header with a valid API key.
Headers
Key | Value |
---|---|
Authorization | Bearer YOUR_API_KEY |
Content-Type | application/json |
Request Body
- index: The ID of the index associated with the RAG.
- query: The query string to generate a response.
JSON
Field | Type | Description |
---|---|---|
index | string | The ID of the index |
query | string | The query string for RAG |
Request Example
Response
Success
Status Code: 200 OK
Body: