Multi-index Retrieval across Knowledge Bases with Agentic multi-turn search.
The Knowledge Retrieval service searches one or more Knowledge Bases for relevant content from your private corpus. Create and configure retrieval services in the console, or call them through the API.
Each bound Knowledge Base can be tuned individually:
Use the knowledge search endpoint:
The returned
Capabilities
| Capability | Description |
|---|---|
| Multi-index Retrieval | Search up to 15 Knowledge Bases in one call — no need to query each separately. |
| Hybrid retrieval | Vector search + keyword search + Rerank in a single pipeline. |
| Fine-grained config | Per-Knowledge-Base recall counts, Rerank model, and similarity threshold. |
| Multimodal | Text, image, and table search. |
| Agentic multi-turn | Model-driven multi-step planning with automatic query rewrites. |
Retrieval pipeline
- Query rewriting (optional): rewrite the user input to improve recall.
- Vector + keyword retrieval: recall Chunks by semantic similarity and keyword matching in parallel.
- Rerank: a ranking model re-sorts the recalled Chunks and filters low-scoring ones.
- Return results: the Chunk list is ordered by relevance score, highest first.
Create a retrieval service
1
Open Knowledge Retrieval
Sign in to the console and click Knowledge Retrieval in the left navigation.
2
Create a service
Click New Retrieval Service in the top right. Enter a name (required, up to 15 characters) and a description.
3
Bind Knowledge Bases
Click Add to bind one or more Knowledge Bases (up to 15).
4
Configure parameters
Set the global retrieval parameters and per-Knowledge-Base parameters described below.
5
Publish
Click Publish in the top right. After publishing, the retrieval service is callable through the API.
Global retrieval config
| Parameter | Default | Description |
|---|---|---|
| Knowledge-Base routing | Search all | Either "Search all" or "Model routing" (the model picks which Knowledge Bases to search). |
| Rerank model | gte-rerank-hybrid | The model that re-sorts the recalled Chunks. |
| Rerank mode | Score mode | Score mode / Sort mode. |
| Max results | 5 | Number of Chunks returned. |
Per-Knowledge-Base config
Each bound Knowledge Base can be tuned individually:
| Parameter | Default | Description |
|---|---|---|
| Vector recall | 50 | Initial recall from the vector retrieval stage. |
| Keyword recall | 50 | Initial recall from the keyword retrieval stage. |
| Similarity threshold | 0.3 | Chunks scoring below this are filtered out. |
| Field filter | None | Filter the retrieval scope by metadata tags. |
Retrieval modes
| Mode | How it works | Latency | Best for |
|---|---|---|---|
| Fast Mode | Single-pass retrieval. | Lowest. | Simple factual questions. |
| Multi-turn Agentic Mode | Model-driven multi-step planning with automatic query rewrites. | Higher. | Complex questions, multi-step reasoning. |
API calls
Use the knowledge search endpoint:
nodes array contains the matched Chunks with text, relevance score, and source metadata.