Get RAG chunks for a document

Get all RAG chunks for a specific knowledge base document.

Path parameters

documentation_idstringRequired
The id of a document from the knowledge base. This is returned on document addition.

Headers

xi-api-keystringOptional

Query parameters

embedding_modelenumRequiredDefaults to e5_mistral_7b_instruct
The embedding model used to retrieve the chunk.
Allowed values:
page_sizeintegerOptional1-100Defaults to 30
How many documents to return at maximum. Can not exceed 100, defaults to 30.
cursorstring or nullOptional
Used for fetching next page. Cursor is returned in the response.

Response

Successful Response
chunkslist of objects
next_cursorstring or null

Errors

422
Unprocessable Entity Error