SDK ReferenceDocument RAG
Retrieve
Retrieve information based on a query from a specific index.
Description
The /index/retrieve
endpoint allows you to query a specific index and retrieve relevant information based on your query. This is useful for fetching detailed data from your indexed documents.
HTTP Request
POST /index/retrieve
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 to query.
- query: The query string to retrieve information.
- document_id: Pass in the document Id to restrict the retrieval context to the mentioned document only OPTIONAL
JSON
Field | Type | Description |
---|---|---|
index | string | The ID of the index to query |
query | string | The query string |
document_id | string | The Document ID to restrict the retrieval context to the mentioned document only (OPTIONAL) |
Request Example
Response
Success
Status Code: 200 OK
Body: