Davide Zambiasiv4.x
Documentation
Projects

python · langchain · openai

Chat with any GitHub repo

A Python tool that ingests a GitHub repository, builds embeddings with LangChain, and lets you ask questions about the codebase through OpenAI models.

Published · 1 min read

The problem

Reading an unfamiliar codebase is slow: you clone, grep, and guess at structure before you can ask a single useful question. When LLMs made “ask the code” plausible, most examples stopped at a single file.

What I built

A Python project that takes a GitHub repository URL, loads and splits the source, generates vector embeddings with LangChain, and wires them to ChatGPT models so you can query the whole repository conversationally. The repo doubles as a tutorial: it is structured to teach the loader → splitter → embeddings → retrieval chain pattern, not just to run.

What developers do with it

Clone it, point it at a repo they need to understand, and adapt the pipeline to their own stack. It was written when LangChain’s retrieval API was settling; the pattern still holds even where the imports have moved.

Was this page helpful? Tell me by email.