How It Works
- Attach a retriever enrichment to a collection with input mappings and write-back field configuration
- Ingest documents via batch processing as usual
- Post-processing executes the retriever for each document, mapping document fields to retriever inputs
- Write-back extracts specified fields from retriever results and writes them to the document
Configuration
Each retriever enrichment has three main sections:Input Mappings
Map document fields or constant values to retriever input parameters:Write-Back Fields
Configure which retriever result fields to write back to documents:Execution Control
Example: LLM Classification at Ingestion
Attach a retriever with anllm_enrich stage to classify documents as they’re ingested:
Example: Cross-Collection Join
Use a retriever enrichment to join data from a reference collection:Retriever enrichments execute sequentially within each collection to avoid race conditions. For collections with many documents, enrichment time scales linearly with document count.

