You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If OpenAI is not configured, OpenAI mode falls back to local hash embeddings and returns relevant chunks instead of a synthesized answer. If Local Llama is selected but Ollama is not running, the app also returns the relevant chunks with setup guidance.
@@ -90,6 +98,20 @@ Frontend runs at:
90
98
http://localhost:3000
91
99
```
92
100
101
+
## Docker Compose
102
+
103
+
Run the full app with PostgreSQL/pgvector:
104
+
105
+
```bash
106
+
docker compose up --build
107
+
```
108
+
109
+
Services:
110
+
111
+
- Frontend: `http://localhost:3000`
112
+
- Backend: `http://localhost:8000`
113
+
- Postgres/pgvector: `localhost:5432`
114
+
93
115
## API
94
116
95
117
### Index a repository
@@ -158,7 +180,6 @@ Chunk metadata:
158
180
159
181
## Notes
160
182
161
-
- ChromaDB is used for the MVP because it is quick to run locally.
162
-
- The vector database is persisted under `backend/storage/chroma`.
163
-
- Cloned repositories are stored under `backend/storage/repos`.
164
-
- Tree-sitter and pgvector are natural next steps once the MVP behavior is proven.
183
+
- PostgreSQL with pgvector stores repos, files, chunks, metadata, and vectors.
184
+
- Cloned repositories are stored under `STORAGE_DIR/repos`.
185
+
- Tree-sitter chunking, background jobs, private repo auth, evals, and CI/CD deployment are natural next steps.
Copy file name to clipboardExpand all lines: backend/README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Backend
2
2
3
-
FastAPI service for cloning repositories, chunking code, embedding chunks, storing vectors in ChromaDB, retrieving relevant chunks, and generating answers.
3
+
FastAPI service for cloning repositories, chunking code, embedding chunks, storing vectors in PostgreSQL/pgvector, retrieving relevant chunks, and generating answers.
4
4
5
5
The API supports two AI providers:
6
6
@@ -19,6 +19,7 @@ If local answers time out on slower machines, set `OLLAMA_TIMEOUT_SECONDS=300` o
0 commit comments