search_context
Retrieve top-k relevant chunks from indexed documents via semantic search, including source and page provenance. Optionally filter results to a specific document.
Instructions
Semantic search over indexed documents (FAISS + local embeddings). Returns the top-k chunks ranked by cosine similarity with source file and page provenance — feed these to your answer generation. Optional source_filter narrows hits to one document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes | ||
| source_filter | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |