curl --request GET \
--url https://api.orq.ai/v2/knowledge \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"_id": "<string>",
"created": "<string>",
"key": "<string>",
"domain_id": "<string>",
"updated": "<string>",
"model": "<string>",
"description": "<string>",
"path": "Default",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "internal",
"retrieval_settings": {
"retrieval_type": "hybrid_search",
"top_k": 5,
"threshold": 0,
"rerank_config": {
"rerank_model": "<string>",
"top_k": 5,
"rerank_threshold": 0.5
},
"agentic_rag_config": {
"model": "<string>"
}
}
}
],
"has_more": true
}Returns a list of your knowledge bases. The knowledge bases are returned sorted by creation date, with the most recent knowledge bases appearing first
curl --request GET \
--url https://api.orq.ai/v2/knowledge \
--header 'Authorization: Bearer <token>'{
"object": "list",
"data": [
{
"_id": "<string>",
"created": "<string>",
"key": "<string>",
"domain_id": "<string>",
"updated": "<string>",
"model": "<string>",
"description": "<string>",
"path": "Default",
"created_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"updated_by_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"type": "internal",
"retrieval_settings": {
"retrieval_type": "hybrid_search",
"top_k": 5,
"threshold": 0,
"rerank_config": {
"rerank_model": "<string>",
"top_k": 5,
"rerank_threshold": 0.5
},
"agentic_rag_config": {
"model": "<string>"
}
}
}
],
"has_more": true
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A limit on the number of objects to be returned. Limit can range between 1 and 50, and the default is 10
1 <= x <= 200A cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include after=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the next page of the list.
A cursor for use in pagination. ending_before is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with 01JJ1HDHN79XAS7A01WB3HYSDB, your subsequent call can include before=01JJ1HDHN79XAS7A01WB3HYSDB in order to fetch the previous page of the list.
Knowledge bases retrieved
list Show child attributes
The unique identifier of the knowledge base.
The creation date of the knowledge base.
The unique key of the knowledge base.
The project/domain ID of the knowledge base.
The last update date of the knowledge base.
The embeddings model used for the knowledge base.
The description of the knowledge base.
Entity storage path in the format: project/folder/subfolder/...
The first element identifies the project, followed by nested folders (auto-created as needed).
With project-based API keys, the first element is treated as a folder name, as the project is predetermined by the API key.
"Default"
internal The retrieval settings for the knowledge base. If not provider, Hybrid Search will be used as a default query strategy.
Show child attributes
The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
vector_search, keyword_search, hybrid_search The number of results to return from the search.
The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
0 <= x <= 1The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
Show child attributes
The rerank model to use for the knowledge base.
The number of results to return by the reranking model
1 <= x <= 100The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
0 <= x <= 1Was this page helpful?