curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id} \
--header 'Authorization: Bearer <token>'{
"_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>"
}
}
}Retrieve a knowledge base with the settings.
curl --request GET \
--url https://api.orq.ai/v2/knowledge/{knowledge_id} \
--header 'Authorization: Bearer <token>'{
"_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>"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the knowledge base
Knowledge base retrieved
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?