PM Transit
Codebase search · 2025

DevGPT

Ask a question about an unfamiliar repository and retrieve the code that explains the answer.

My role Full-stack and retrieval engineering

  • Python
  • Flask
  • React
  • OpenAI
  • FAISS
  • LangChain

Index the repository

DevGPT walks the source tree, divides files into token-sized chunks, generates OpenAI embeddings, and indexes them in FAISS. That lets a question match related code even when it uses different words.

Ask a codebase question

A question such as “Where is authentication handled?” retrieves relevant chunks. A Python and Flask backend assembles that context for the model and keeps an in-memory cache for repeat queries.

Explore the answer

The React interface presents the question and response in an editor-style view. The original walkthrough shows the indexing and question-answering flow end to end.