Basic search
Pass a query string to search your namespace and retrieve chunks.Limiting results
Control the number of results returned withtopK. The default is 10, with a maximum of 100.
Reranking
Agentset reranks results by default using a cross-encoder model to improve relevance. You can adjust reranking behavior or disable it.Available rerank models
Minimum score threshold
Filter out low-relevance results by setting a minimum score.Search modes
Agentset supports two search modes.Response structure
Each result includes an ID, relevance score, and text content. Metadata is included by default.Excluding metadata
Next steps
- Simple RAG — Generate answers grounded in search results
- Agentic Search — Let the model search on its own for complex questions
- Filtering — Narrow results by document metadata
- Ranking — Configure how results are scored