The ingestion pipeline
What it is
Ingestion is everything that happens to a document before it can be searched: load it from where it lives (a shared drive, a wiki, a ticketing system), parse it into plain text, clean that text, attach metadata (labels such as title, date and owner), cut it into chunks, embed each chunk and store the result.
Why it matters
The model can only answer from what ingestion produced.
- A table that was flattened into a jumble of numbers, or a page whose two columns were read straight across, becomes a chunk that no search will ever match and no model can read.
- Teams routinely spend more time here than on anything involving the model, and it is usually where the largest quality gains are.
In the real world: An insurer's assistant gives wrong coverage answers until someone opens the parsed text and finds every policy table had been turned into a single unreadable line.
Visual example
IngestionEach stage can only be as good as the one before it.
Treating ingestion as a one-off script. Documents are added, edited and deleted every day, so ingestion is a running service with a queue, retries and monitoring, not a notebook someone ran once.