/RepoChatter

LLM chat with a GitHub repository or codebase

Primary LanguagePython

GitHub Repository ChatBot

"Chat with any GitHub codebase / own code"

  • Enter a valid URL of a repository, subfolder, or even a file
  • Use your GitHub API to retrieve files and metadata from the URL and store them locally
  • Locally stored files are tokenized and vector-embedded using Langchain and ChromaDB
  • Using a query retrieve the top k chunks, and feed it to an LLM, here in my code I'm using OpenAI GPT 3.5 turbo
  • Chat with the files : )

Chat in Terminal

Screenshot 2024-03-06 185142

Flask Application

Screenshot 2024-03-06 180723

Screenshot 2024-03-06 180842

Screenshot 2024-03-06 184200

Improvements pending: - Will try to use "git sparse-checkout" to get the files faster - Provide chat summary and metadata to the LLM - Provide usage of open-source LLMs HuggingFace API and Ollama