Core Concepts¶
Follow these pages for small examples in pipeline order. Decision points compares the available implementations and explains how to plug in your own.
Indexing¶
The examples work directly with Sources. A Collection identifies a corpus scope: listing sources and BM25 search take a collection id, but collection records are not stored yet.
Indexing turns input material into searchable chunks. The concepts in pipeline order:
- Source: identified input text.
- Chunk: an excerpt of a source, located by origin and offset.
- Datasets and the DataLoader: where records come from, and how they are consumed one at a time or in batches.
- Conversion: dataset records to sources.
- Chunking: sources to chunks.
- Chunk preprocessing: chunks to the text that gets embedded.
- Embedding: that text to one vector per chunk.
Indexing and retrieval shows the larger flow; Decision points explains the shared Protocol and configuration conventions.
Retrieval and evaluation¶
- Benchmark inputs: a benchmark's corpus and its questions, with the answers and gold evidence that only evaluation reads.
- Retrieval: the chunks a viewer may read that best answer a query, ranked by BM25.
- Store-managed text search: build and search a collection snapshot through the store, using BM25 or native SQLite FTS5.
- Retrieval recall: how much of a question's gold evidence the top
khits contain.
Answer generation and answer scoring are not implemented yet; see Indexing and retrieval for the intended flow.