← Back to docs
guides
Document Processing
Document processing is the part of RAG work most teams underestimate.
Document Processing
Document processing is the part of RAG work most teams underestimate.
Processing Pipeline
At a high level:
- upload or fetch source
- extract usable text
- normalize structure
- split into chunks
- embed and index
Sources That Usually Work Well
- markdown
- PDFs with clean text layers
- plain text
- structured internal docs
Sources That Need More Care
- scanned PDFs
- image-heavy files
- long mixed-format exports
- highly duplicated content
Operational Advice
- start with a small set of high-quality documents
- remove duplicates early
- separate very different document families into separate KBs
- reprocess content when the source structure changes meaningfully