mistralM

Docs

Concepts

Understand how Search Toolkit represents documents, chunks, and the embedding vectors stored in an index.

These pages explain the two data models that Search Toolkit relies on across ingestion and retrieval. Read them before you write a custom extractor, embedder, or index schema.

In this section

Document model
illustrationFileAi

Document model

Learn how Document and DocumentChunk carry data through the pipeline, and how a deterministic identity built from source_id and locator keeps a chunk's id from ingestion through search.

Embedding model
illustrationCubes

Embedding model

Learn how an EmbeddingModel describes the dimensions, data type, and distance metric of the vectors in an index, and how to keep it aligned with your embedder.

Where the concepts apply

During ingestion, an extractor produces a Document and its DocumentChunk objects, and an Embedder produces vectors for them. The EmbeddingModel on the index schema describes those vectors, so the embedder and the schema must agree on dimensions. During retrieval, SearchResultChunk mirrors the chunk identity. For the full pipeline, see the Search Toolkit overview.