SDK ReferenceDocument RAG
Search
Perform a search query on a specific index.
Description
The /index/search endpoint allows you to perform a search query on a specific index to retrieve relevant documents based on the search criteria.
HTTP Request
POST /index/search
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 search.
- query: The search query string.
JSON
| Field | Type | Description |
|---|---|---|
| index | string | The ID of the index to search |
| query | string | The search query string |
Request Example
Response
Success
Status Code: 200 OK
Body: