In short.
This Mistral Search Toolkit guide helps Python developers enrich document fragments for search, but the retrieval benefits are unmeasured. It documents LLM-generated summaries and custom metadata processors. Important defaults include truncating long summary inputs and continuing ingestion when summary generation fails. Installation, pricing and licensing are unspecified; no code was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete selected page at [https://docs.mistral.ai/studio/search/search-toolkit/ingestion/enrichers.md]: summary enrichment, configuration tables, custom implementations, concurrency patterns and processor composition. Linked pages and package implementation are excluded. No licensing notice appears in the supplied page. Runtime behavior, compatibility, costs and retrieval outcomes were not verified.
The overview
Identity
Chunk enrichers is a Mistral Search Toolkit documentation page. A chunk is a document fragment used in an ingestion pipeline. Enrichers attach information to those fragments, while SummaryEnricher can also add a document summary as a separate chunk.
The source address is [https://docs.mistral.ai/studio/search/search-toolkit/ingestion/enrichers.md].
Assessment
The guide is useful for developers who already have document ingestion underway and need to add document context or application-specific metadata. It explains configuration, extension points and processor ordering, but supplies no measured search-quality results. No code was executed.
Users
The examples suit Python developers building ingestion and retrieval systems. Beginners need familiarity with asynchronous methods and document/chunk metadata models; experienced developers get guidance on concurrency and composing processors. Implementing custom extraction or external-service calls remains the developer's responsibility.
Capabilities
SummaryEnricher can prepend a summary chunk, copy the summary into every chunk's metadata, and populate document metadata. Developers can configure the model, prompt, token limit, character budget, temperature, overflow strategy and map-phase concurrency.
Custom ChunkEnricher implementations can add external information, classifications, tags or computed metadata. Multiple enrichers can run sequentially in a Pipeline, each receiving the preceding processor's output.
Using it
Requirements
SummaryEnricher requires an LLM provider; the documented Mistral setup requires a Mistral API key. Examples import Python modules from mistralai and mistralai.search.toolkit. Installation commands, minimum Python version and dependency versions are unspecified.
Custom enrichment uses asynchronous enrich_chunk and process methods. The full Pipeline example also assumes existing loader, extractor, text splitter, embedder and vector-store objects; their setup is not shown.
Mechanism
SummaryEnricher generates a document-level summary through an LLM provider. By default it prepends a summary chunk and populates document metadata, while copying the summary into every chunk is disabled. Summary-generation failures are logged and return the original chunks unchanged unless fail_on_generation_error is enabled.
The documented request defaults include mistral-small-latest, 256 summary tokens, a 32,768-character budget and temperature 0.6. TRUNCATE is the default overflow strategy. MAP_REDUCE instead summarizes parts and merges their summaries, with map_concurrency defaulting to 10.
ChunkEnricher.process applies enrich_chunk across document chunks through a bounded worker pool, also defaulting to concurrency 10. This is a separate concurrency control. If SummaryEnricher runs first, later enrichers and the embedder also process its summary chunk.
Setup
For the documented summarizer, construct a Mistral client using an API key, wrap it in MistralChat with LLMConfig, and pass that provider to SummaryEnricher. The example reads MISTRAL_API_KEY from the environment. Request customization uses SummaryConfig with SummarizeRequestConfig.
For custom metadata, subclass ChunkEnricher and implement enrich_chunk to return an updated DocumentChunk. Process a document directly or add enrichers to the Pipeline processors list in the required order. Package installation and a complete ingestion setup are not provided here.
Example
The summary customization example requests three sentences with a 256-token limit. With default output options, the generated summary would become a dedicated chunk and document metadata; propagation into every chunk requires enabling its separate option.
The EntityTagger example copies metadata and adds an entities field. Its extraction method returns an empty list until extraction logic is supplied. The external-API example sets concurrency to 20 but leaves fetching, batching and retries unimplemented. These examples were not executed.
Assessment & evidence
Limitations
Default truncation means a long document's summary can exclude content beyond the character budget. The default failure policy also allows ingestion to continue without a summary, so successful processing alone does not establish that summarization succeeded.
Summary accuracy, retrieval quality, throughput, latency and service-rate-limit behavior are not assessed. The page specifies summary-generation error handling but does not establish a general failure policy for custom enrichers.
Reasoning
The stated retrieval rationale is that a document summary gives individual fragments broader context. Its usefulness depends on summary accuracy, input coverage and downstream use. Default truncation and optional metadata propagation affect that context; the page supplies no experiments quantifying the benefit.
Alternatives
Within the documented options, SummaryEnricher suits generated document context, while a custom ChunkEnricher suits tags or metadata from another source. Summary output can be a dedicated chunk, metadata or a combination. TRUNCATE and MAP_REDUCE offer different long-input handling. Other libraries and services are not compared.
Evidence
The evidence is the complete Chunk enrichers page at [https://docs.mistral.ai/studio/search/search-toolkit/ingestion/enrichers.md]. It contains parameter tables, Python examples and explanations of failure behavior and processor ordering. It provides no execution output or retrieval benchmark.
Access & freshness
Costs
Cost is unknown. The page requires an API key for Mistral summarization but states no prices or per-document estimates. MAP_REDUCE performs calls for individual parts and a merge, so request volume depends on the input and configuration. Token usage, charges and external-service costs are not established.
Rights
The page states no license or reuse terms for its text, snippets, toolkit or generated summaries. Redistribution rights are unknown from this evidence. It also provides no service terms for document processing, retention or data handling through the API.
Freshness
The page was captured on 15 November 2026 at 09:31:23.357 UTC. It identifies no publication date or toolkit release, so compatibility with a particular installed version is unknown. The example names mistral-small-latest without identifying a fixed model revision.
Actions
Choose where the summary should appear, how long documents should be handled, and whether summary failure should stop ingestion. Place SummaryEnricher first if subsequent processors should handle the summary chunk too.
Before relying on enrichment, inspect summaries from representative documents, exercise failure handling and compare retrieval with and without enrichment. Confirm package compatibility, pricing and applicable terms separately. These are suggested evaluations; no tests were performed.
