SDK ReferenceInstant RAG
Create Instant RAG
Create an instant RAG (Retrieval-Augmented Generation) context.
Description
The Create Instant RAG
endpoint allows you to create an instant Retrieval-Augmented Generation context based on a provided context string. This can be used to generate responses that are augmented with relevant retrieved information.
HTTP Request
POST /index/instant/create
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
- context: The context string to create the RAG.
JSON
Field | Type | Description |
---|---|---|
context | string | The context for RAG creation |
Token Limitation
The instant rag
endpoint accepts a maximum of 8000
tokens in the context string. You can check the token count of your context string using the tokenizer
endpoint.
Request Example
Response
Success
Status Code: 201 Created
Body: