knowledge_search
Find relevant passages in ingested PDFs via semantic search with reranking, returning scored chunks you can filter by source file to ground answers.
Instructions
Semantic search over the ingested PDF knowledge base.
Pipeline:
1. Bi-encoder retrieval from ChromaDB (fast ANN search, top_k_retrieve candidates)
2. Cross-encoder reranking (precise pointwise scoring)
3. Custom composite metric computation (cosine + rerank + keyword + density)
4. Returns top_k_return chunks ranked by composite score with full metrics
The composite_score field is the primary relevance signal you should use when
deciding how much to trust each chunk. Scores > 0.7 are highly relevant.
Args:
query: Natural-language question or search phrase
top_k_retrieve: Number of candidates to fetch from the vector DB (default 20)
top_k_return: Number of final results to return after reranking (default 5)
filter_source: Optional — filter by PDF filename (e.g. "report.pdf")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k_return | No | ||
| filter_source | No | ||
| top_k_retrieve | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |