- RAG enhanced LLM that utilizes an indexed Github repo as its content store.
- Used Cohere's
embed-english-v3.0embedding model to create embeddings for repository files, and for user query. - Used Pinecone as vectorstore and Supabase to store actual file contents.
- Used Cohere's
command-ras LLM that recieves context.
To run backend:
- Use pip to install pipenv, the package manager for the backend:
pip install pipenv - Run
pipenv installto install dependencies - Get api keys for
Cohere,Pinecone,Github, andSupabase(key and url) and put them into a.envfile. - Run
run.pyscript to start server. You can also typeuvicorn main:app --reload --port 8000in the terminal.
To run frontend:
- Run
npm installto install dependencies. - In the terminal, type
npm run devto run in dev mode or runnpm run buildandnpm run startto run in production mode.
-
Pinecone - Create a pinecone index called "doc-oc" with dimensions as 1024.
-
Supabase - Create two tables:
-
github_repos- Stores all the index repos- Columns:
id(PK, int8),repo_path(varchar)
- Columns:
-
files- Stores data related to files- Columns:
id(PK, int8),repo_id(FK, int8),name(varchar),path(varchar),content(text)
- Columns:
-

