Skip to content

CodeCompass transforms any GitHub repo into an interactive, searchable knowledge base. Index it locally with embeddings and chat with an LLM that answers using real repo sources.

Notifications You must be signed in to change notification settings

SoulDev07/CodeCompass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🧭 CodeCompass - GitHub Repo Chat

Hero

CodeCompass turns a GitHub repository into an interactive, searchable knowledge base. Add a public repo, index it locally with embeddings (Chroma), and chat with an LLM grounded on real files from that repo.

🔒 Privacy‑first • 🎯 Repo‑scoped answers • 💾 Local vector store • 🔖 Clear citations


✨ Highlights

  • Repo‑scoped conversational search - answers stay focused on the repo you select
  • Source grounding - responses reference retrieved passages and files
  • Persistent index - once indexed, the repo remains searchable
  • Simple ingestion - accepts owner/repo or full GitHub URLs; normalization prevents duplicates

📸 Screenshots

Home UI Analyzing Chat UI


🏗️ Architecture

React (Vite + Tailwind)
       ↕
Flask REST API
       ↕
Embedchain (ingest + retrieve)
       ↕               ↘
   Chroma (vectors)   Groq LLM

🛠️ Technical notes

  • Embeddings: sentence‑transformers all‑MiniLM‑L6‑v2 (fast and compact)
  • Vector DB: Chroma persisted under backend/db for local, fast retrieval
  • LLM: Groq (configurable). Prompt encourages concise, source‑grounded answers
  • Metadata: each chunk stores github_repo, file_path, chunk_index for precise citations

🧰 Troubleshooting

  • 401/403 from LLM → check GROQ_API_KEY in backend/.env, restart Flask
  • Cannot add repo → ensure it’s a public GitHub repository or provide a GITHUB_TOKEN

🗺️ Roadmap

  • File/line citations with clickable open‑in‑editor behavior
  • Partial/continuous indexing for very large repos
  • Answer streaming UI for progressive responses
  • Docker images and a simple hosted deployment option

About

CodeCompass transforms any GitHub repo into an interactive, searchable knowledge base. Index it locally with embeddings and chat with an LLM that answers using real repo sources.

Topics

Resources

Stars

Watchers

Forks