AI Tools
RAG over Kubernetes Docs
Hybrid semantic RAG pipeline with safety guard over Kubernetes documentation.
Combines keyword and semantic retrieval over Kubernetes documentation, with recorded demonstrations and published evaluation notes.
Built a local RAG pipeline over Kubernetes documentation. It indexes markdown into ParadeDB/Postgres, retrieves with BM25 and pgvector, fuses results with RRF, reranks with a cross-encoder, filters weak chunks before generation, answers through Ollama, and evaluates runs with RAGAS. V2 adds Llama Guard before retrieval or generation.
Technologies
Evidence
Problem
Broad documentation chunks produced grounded answers that still missed the question.
Implementation
The pipeline combines BM25 and vector retrieval, rank fusion, cross-encoder reranking, Ollama generation, and RAGAS evaluation.
Technical decisions
Retune semantic splitting and filter negative reranker scores before generation; add a safety gate before retrieval.
Evaluation
The README reports V1 to V1.1 answer relevancy of 0.386 to 0.661 and context precision of 0.333 to 1.000. Faithfulness fell from 1.000 to 0.889.
Limitations
These are author-reported experiment scores, not independently rerun benchmarks. Evaluation sample count and raw results are not published. This links the earlier learning-repository version.
What I learned
Generation was not the main bottleneck. Chunking, indexing, retrieval, reranking, and filtering decided whether the model had useful context; the guard belongs before the expensive pipeline steps.