Skip to main content
POST
Knowledge base semantic retrieval

Authorizations

Authorization
string
header
required

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

Body

application/json
knowledge_base_id
string
default:kb-f9d817f5-46c2-49b2-b07f-f3db8df0887a
required

The knowledge_base_reference_id of the knowledge base to perform the RAG if the question asked relates to the purpose of the knowledge_base_tool provided.

question_asked_by_user
string
default:What is the purpose of this knowledge base?
required

The question asked by the user to perform the RAG.

Response

Relevant chunks retrieved successfully

finalRelevantChunk
string[]
required

Final relevant chunk based on the user query.

Example:
filteredResults
object[]
required

Filtered results based on the relevance of the chunks to the user query.

Example: