Pick one document: a PDF or a support ticket. Now ask how it becomes evidence for an AI answer. If a retrieval-augmented generation (RAG) feature returns a confident wrong answer, the model is only one suspect. Trace that document through the pipeline, and you can fix shared machinery once instead of rebuilding the same failure into every feature.
Let’s start where the document starts. Ingestion pulls unstructured data from the systems where it already lives and keeps that copy current. It is unglamorous connector work, but it decides what retrieval can ever find. If last quarter’s pricing exception sits in an email thread no connector touches, no query can recover it.
The sharper risk is permissions. Source access rules must travel with each document when the pipeline ingests it. Skip that step, and your assistant can quote a salary review to someone who wasn’t authorized to read it. The answer can cite its source and still create an unscheduled visit from HR.
Warning: Capture permissions during ingestion. A retrieval layer cannot protect access rules that never entered the pipeline.
Ingestion hands you raw files. Parsing turns them into machine-readable text while preserving layout. A PDF is not a neat stream of words; it is a page where position carries meaning. Two columns should read top to bottom, and a financial table needs its row and column relationships.
That makes document layout analysis part of parsing. Lose the layout, and a clean table becomes a run of numbers. Nothing downstream can rebuild a relationship the parser discarded, which is why “we just extract the text” tends to precede a long retrieval-quality investigation.
Once parsing produces clean text, the pipeline cuts it into pieces that retrieval can compare. Each chunk becomes a sentence embedding: a numeric vector that represents its meaning. Retrieval compares the question vector with chunk vectors. A cut in the middle of an idea leaves the embedding split across two incomplete thoughts.
| Chunking approach | What it does | Where it hurts |
| Fixed-size | Splits every N tokens | Can slice a sentence or table |
| Recursive | Prefers paragraph and newline boundaries | Can separate related paragraphs |
| Structure-aware | Uses headings and table boundaries | Depends on accurate parsing |
| Semantic | Splits when the topic shifts | Adds a model pass |
Then there is the orphaned chunk. “Revenue rose 5%” is clear but useless without the company and quarter. Keep that source metadata with the chunk so retrieval can distinguish the right report from a similar sentence elsewhere.
After the first three stages, retrieval has to find the evidence that answers a live question. Basic retrieval turns the question into a vector and returns nearby chunks. That handles related concepts, but exact strings are a weak spot. Ask for part number 4021-B, and it can return similar parts while missing the exact one. Hybrid search adds BM25 keyword matching, then scores the combined results again to promote the strongest match.
Complex questions need orchestration. “Compare our refund policy in the EU and the US” requires separate retrievals and a synthesis. Progress Agentic RAG runs a shared loop that plans sub-questions, retrieves evidence, checks whether the context is sufficient and tries again when it is not. One pass can answer half the question with full confidence. The loop gives the pipeline a chance to notice.
That loop and the knowledge pipeline run as a shared service. A new content source becomes an onboarding task instead of another private connector, and developers stay focused on features.
Quality needs the same shared view. REMi, the evaluation layer that scores each response, includes Groundedness: whether the retrieved context supports the answer. That signal exposes a regression before your users report it, which is a less embarrassing way to learn about retrieval quality.
Together, the four stages decide what evidence the model can use. When an answer fails, follow its cited document backward before you swap models. Check whether the source arrived with access rules, survived parsing, kept its context and reached the final retrieval set. Fix that shared pipeline once, and each new feature inherits the correction.
Book a demo to see the four stages run against your own content.
Each new source adds connector work plus its own update and permission rules. A shared ingestion layer keeps that work in one place, so every feature uses the same current copy instead of building another pipeline.
Run the same question under two user identities with different source access. The retrieved chunks and citations should change with those permissions; any restricted chunk in the lower-privilege result is a pipeline failure.
Use REMi to compare representative questions before and after each retrieval change. Watch Context Relevance for evidence that retrieval returned useful context. Review the cited passages with that score. If Context Relevance drops, inspect ingestion coverage, parsing, chunking, filtering and ranking. Treat Groundedness separately because it measures whether the answer stays supported by the retrieved context.
Subscribe to get all the news, info and tutorials you need to build better business apps and sites