# Prepare Documents for RAG in Java: A Six-Stage Markdown Chunking Architecture Architecture of an on-premise RAG ingestion pipeline in Java: Word, PDF, email and ZIP Files become heading-scoped Ma......Java: Word, PDF, email and ZIP files become heading-scoped Markdown...and keeps a record of which file, attachment or archive member...