scan_chunks
scan_chunks
¶
ScanChunksTool — semantic grep via LM-powered chunk scanning.
Pulls chunks from the KnowledgeStore by filter, batches them, and asks the LM to extract information relevant to a question. Catches semantic matches that keyword-based BM25 search misses.
Classes¶
ScanChunksTool
¶
ScanChunksTool(store: Optional[KnowledgeStore] = None, engine: Optional[InferenceEngine] = None, model: str = '')
Bases: BaseTool
Semantic grep — feeds chunks to the LM to find information BM25 misses.