RAG in the wild: real-world lessons from modernizing legacy systems
summary
Built a production RAG stack using Spring Boot, Docker and ActiveMQ with Elasticsearch and Milvus as vector stores, LangChain4j for orchestration, Docling for extraction, and Azure OpenAI plus Ollama for LLMs. Key claims: terabyte-scale archives work when embedding dims match the DB, ANN then KNN improves latency, MMR increases result diversity, and self-hosted LLMs run but are slower and costlier. Access is enforced by UUID-based access filtering, audit trails and a strict no-answer policy; monitor token spikes and validate inputs/outputs.
AI-written summary · about
chapters (13)
- 0:00Introduction and motivation
- 1:53What is RAG and why use it
- 2:59RAG pipeline breakdown
- 4:48Required services and tools
- 5:50Choosing the right framework
- 6:32Selecting a vector database
- 7:17Retrieval algorithms explained
- 9:23LLM and embedding model choices
- 10:47Text quality and chunking
- 11:51Handling access rights
- 12:53Audit trail and no-answer policy
- 13:35Cost and observability
- 13:56Key takeaways and conclusion
