Built with & integrates:
Service & optional integrations:
Experimental Retrieval-Augmented Generation under constraints.
RAG-LCC is a practical lab for understanding where RAG systems fail and how to fix them: retrieval misses, context poisoning, multilingual drift, and compliance edge cases.
Short: If you want to understand why your RAG fails, RAG-LCC gives you a playground to experiment with the parameters that matter. You can tune settings, compare alternatives on a small test corpus, and carry those insights back into your own RAG. In other words, RAG-LCC is an insight tool with reusable ideas, not an everyday production RAG.
View or download the PowerPoint presentation, or watch it play below:

The presentation also highlights tabular answers, document summarization, and the optional web-retrieval leg.
Confidence logging, quality-scoring switches, and the judge prompt are centralized
in Config_Confidence.py. See the
configuration reference
for defaults, output sections, and the CONFIDENCE_FLAT CSV schema.
| Application | Purpose | Typical output |
|---|---|---|
| DocClassify | Classify and compress corpus content before indexing | CSV metadata used for selective loading |
| RAGLoad | Ingest and index local documents into multiple retrievers | ChromaDB + BM25 + Graph + Regex indexes |
| RAGChat | Interactive CLI RAG with grounding and safety checks | Grounded multi-turn answers |
| RAGChatService | OpenAI-compatible API wrapper for RAGChat | API endpoint for OpenWebUI and clients |
For the vLLM backend, the companion project HarinezumIgel/harinezumigel-llm-stack provides configuration-driven orchestration for self-hosted LiteLLM and vLLM deployments. Use it to serve the LLMs, embedder, and reranker required by RAG-LCC.
Most RAG stacks optimize only retrieval score. RAG-LCC also optimizes context quality.
QUERY_OUTPUT_EXAMPLE.md Full CLI transcript of a real RAGChat run, including startup checks, retrieval settings, configurable orchestration decisions, rerank diagnostics, grounding, and confidence-evaluation output.
Gentle tuning showcase for dev.io Beginner-friendly article that explains the RAG-LCC mental model, query-output reading, practical tuning paths across all four apps, plus an expert lane for orchestrator and query-rewrite tuning. Note: RAG-LCC is an experimental learning and tuning lab, not a production-ready deployment stack.

Shows sentence-level overlap markers in the CLI flow. These help inspect matching evidence but do not verify that an answer is factually correct.

A single query can retrieve information and request a table. This example shows an animal classification table alongside highlighted passages in the source documents. The highlights help inspect matching evidence; they do not establish answer accuracy.
Mermaid diagrams can be viewed by through the RAGChat in memory web server.


Shows the same grounding concept through the OpenWebUI integration path
(RAGChatService). Useful for validating that API/UI output preserves
evidence links, not just CLI output; matching text is not proof of accuracy.

This example shows an OpenWebUI answer with source attribution, including a web result. Source links help inspect retrieved evidence but do not prove answer accuracy.
RAG-LCC is developed in personal time and continues to evolve through community interest, feedback, and experimentation.
If the project helped you, please consider:
The RAG-LCC Experimental Lab runs on curiosity, feedback, and GPUs converting electricity into heat. Community interest is a major motivation for continued development.