Skip to main content
Effective Date — May 7, 2026
As part of the IAM hierarchy simplification, a new format of the TIR APIs is now available. All endpoints that previously included /teams/:team_id segment will now follow a service-centric structure, with project_id now passed as a query parameter instead of a path segment. You can read more about this change

Retrieval Testing on Knowledge Base

POST/rag/knowledgebase/{KB_Id}/retrieval/

Path parameters

  • KB_IdPathintegerrequired

    knowledgebase_id

Query parameters

  • project_idQueryintegerrequired

    Project ID

  • active_iamQueryintegeroptional

    Active IAM ID (To access contact person account) Find your Active IAM ID here

Request body

application/json

object
pageintegerrequired
example1
sizeintegerrequired
example10
questionstringrequired
exampleitem
similarity_thresholdnumber·floatrequired
example0.2
vector_similarity_weightnumber·floatrequired
example0.21
top_kintegerrequired
example1024
rerank_idintegerrequired
example5
doc_idsarrayrequired

Responses

200Success
object
codeinteger
example200
dataobject
errorsobject
messagestring
exampleSuccess