Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0146opDKBYtADXvkc39zdiyw
rag-ingestion
Companion code for Spring AI RAG Ingestion Pipeline: PDF, Word and HTML Readers with Chunking Strategies Compared.
PDF, Word and HTML versions of one 12-section runbook go through PagePdfDocumentReader, TikaDocumentReader and JsoupDocumentReader, then through several chunkers, and retrieval hit rate is measured on 37 fixed questions. Also: metadata in the embedding, content-hash ingestion, and what one edit costs to re-embed. Spring Boot 4.1.2, Spring AI 2.0.2, Java 25.
Run scripts/run-all.sh (needs PostgreSQL 16 with pgvector; see the script header). Every number in the article is a line in output/.