Skip to content

scan_chunks

diapason.tools.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.

ScanChunksTool

Bases: BaseTool

Semantic grep — feeds chunks to the LM to find information BM25 misses.