Skip to content

Commit afe42e0

Browse files
committed
add README.md
1 parent e3a39cc commit afe42e0

File tree

5 files changed

+95
-0
lines changed

5 files changed

+95
-0
lines changed

README.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# 🧭 CodeCompass - GitHub Repo Chat
2+
3+
![Hero](assets/hero.svg)
4+
5+
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.
6+
7+
🔒 Privacy‑first • 🎯 Repo‑scoped answers • 💾 Local vector store • 🔖 Clear citations
8+
9+
---
10+
11+
## ✨ Highlights
12+
13+
- Repo‑scoped conversational search - answers stay focused on the repo you select
14+
- Source grounding - responses reference retrieved passages and files
15+
- Persistent index - once indexed, the repo remains searchable
16+
- Simple ingestion - accepts `owner/repo` or full GitHub URLs; normalization prevents duplicates
17+
18+
---
19+
20+
## 📸 Screenshots
21+
22+
![Home UI](assets/home.png)
23+
![Analyzing](assets/analyzing.png)
24+
![Chat UI](assets/chat.png)
25+
26+
---
27+
28+
## 🏗️ Architecture
29+
30+
```
31+
React (Vite + Tailwind)
32+
33+
Flask REST API
34+
35+
Embedchain (ingest + retrieve)
36+
↕ ↘
37+
Chroma (vectors) Groq LLM
38+
```
39+
40+
---
41+
42+
## 🛠️ Technical notes
43+
44+
- Embeddings: sentence‑transformers `all‑MiniLM‑L6‑v2` (fast and compact)
45+
- Vector DB: Chroma persisted under `backend/db` for local, fast retrieval
46+
- LLM: Groq (configurable). Prompt encourages concise, source‑grounded answers
47+
- Metadata: each chunk stores `github_repo`, `file_path`, `chunk_index` for precise citations
48+
49+
---
50+
51+
## 🧰 Troubleshooting
52+
53+
- 401/403 from LLM → check `GROQ_API_KEY` in `backend/.env`, restart Flask
54+
- Cannot add repo → ensure it’s a public GitHub repository or provide a `GITHUB_TOKEN`
55+
56+
---
57+
58+
## 🗺️ Roadmap
59+
60+
- File/line citations with clickable open‑in‑editor behavior
61+
- Partial/continuous indexing for very large repos
62+
- Answer streaming UI for progressive responses
63+
- Docker images and a simple hosted deployment option

assets/analyzing.png

43.5 KB
Loading

assets/chat.png

97.4 KB
Loading

assets/hero.svg

Lines changed: 32 additions & 0 deletions
Loading

assets/home.png

46.7 KB
Loading

0 commit comments

Comments
 (0)