data
RAG Query Endpoint
Executes a retrieval augmented generation (RAG) query on a dataset.
Request Payload:
- dataset_id: The dataset ID to query.
- messages: A list of messages that form the conversation. Each message must have a
sender
field (either ‘assistant’ or ‘user’) and acontent
field. The conversation must end with a user message. - top_k: The number of documents to retrieve from the underlying search.
- keyword_column: (Optional) If provided (and not null), a hybrid search is used based on the specified column. If omitted or null, a vector search is performed.
POST
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Headers
Represents the current organisation ID for the user (example: 'org_u13TesTDumMyEe5P')
Body
application/json
Response
200
application/json
Successful Response
The response is of type object
.