[P] I built a system that lets you ask questions about any GitHub repo and get answers grounded in the actual source code [P]

Reddit r/MachineLearning Tools

Summary

GitRAG is a tool that allows users to paste any public GitHub URL and ask questions about the codebase, returning answers grounded in the source code with exact file paths and line numbers, using AST-aware chunking, hybrid search (dense + BM25), reranking, and a language model for generation.

Hi guys I've been working on **GitRAG** — paste any public GitHub URL, and ask it anything about the codebase. It answers with exact file paths and line numbers, no hallucination. **How it works under the hood:** 1. Clones the repo and splits files into semantic chunks using AST-aware parsing (not just line splits) 2. Builds a hybrid index — dense embeddings + BM25 keyword index 3. At query time, fuses both signals with Reciprocal Rank Fusion, then runs Cohere reranking to cut 20 candidates down to 5 4. Sends those 5 chunks to Groq's llama-3.3-70b which generates a grounded answer The retrieval pipeline is what I'm most proud of — the BM25 + semantic fusion catches things that pure vector search misses (exact function names, error codes, etc.) **Stack:** FastAPI · ChromaDB · text-embedding-3-small · Cohere rerank-v3.5 · Groq llama-3.3-70b · React + Vite **Supports 15+ languages:** Python, JS/TS, C#, Java, Go, Rust, C/C++, Swift, Kotlin, Dart, Ruby, PHP, Vue, Svelte, Shell... Curious what repos people try it on — drop your results below 👇
Original Article

Similar Articles

@sitinme: GitHub 30k stars, do RAG without vector databases and with higher accuracy! Anyone doing RAG has probably experienced this: the vector database returns content that "looks relevant" but isn't the answer you're looking for. Especially with long documents like contracts, financial reports, technical manuals, when you ask "What was Q3 revenue?", it returns a paragraph about "company business overview." Similarity ≠ relevance—this is the fundamental problem with vector retrieval. PageIndex's solution is straightforward and brute-force: skip vectors, use reasoning.

X AI KOLs Timeline

Introduces an open-source project with 30k stars on GitHub that achieves RAG through reasoning instead of vector databases, claiming higher accuracy and solving the problem of similarity not equating to relevance.

@GitHub_Daily: Want to understand how RAG really works? Online tutorials either skip steps or directly call cloud APIs, leaving the intermediate process invisible. RAG from Scratch breaks the entire pipeline into a dozen or so small experiments, each step running with local models—no black box. From text chunking, vectorization, retrieval to final generation, the code is all right there...

X AI KOLs Timeline

Introduces the open-source project RAG from Scratch, which fully breaks down the RAG pipeline through step-by-step local code experiments, covering text chunking, vectorization, retrieval, reranking, query rewriting and other advanced strategies, helping developers understand RAG implementation from the ground up.

vitali87/code-graph-rag

GitHub Trending (daily)

Code-Graph-RAG is an open-source tool that parses multi-language codebases with Tree-sitter, builds a knowledge graph in Memgraph, and lets you query, edit, and optimize code using plain English. It supports monorepos with mixed languages under a unified graph schema.

@Ryrenz: Guys, I found another gem of a course: Build a Production-Grade RAG System from Scratch in 7 Weeks — 7.7k stars on GitHub, hands-on coding throughout, not a slides-only course. Most RAG tutorials out there jump straight to vector search; the demo works but crashes in production. This course follows the real path used in companies...

X AI KOLs Timeline

A 7-week course with 7.7k stars on GitHub, building a production-grade RAG system from scratch, covering Docker, FastAPI, hybrid search, LangGraph agentic RAG, and a Telegram bot, with hands-on coding throughout.