Skip to main content
POST
Extract chunks from knowledge base

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Request serializer for retrieving top n chunks per query.

query
string
required

A single string or a list of strings representing the search queries

collection
string | null

The collection to query, defaults to 'base_collection' if not specified

n
integer | null

Number of top chunks to retrieve per query, defaults to 5 if not specified

Response

200 - application/json
chunks
object[]
required

List of retrieved document chunks with their relevance scores

query
string

The original query used for retrieval