Repo chat allows you to ask questions about a GitHub repository.
In this project we use OpenAI embeddings and Supabase with pgvector as our vector database.
You can switch out either of these with your own preference.
-
Run the
schema.sql
file in Supabase's SQL editor. -
Configure the
.env
file. -
Run
pip install -r requirements.txt
to install the dependencies. -
Run the
load.py
script to clone the repo. -
Run the
embed.py
script to embed the repo. -
Run the
main.py
script to ask questions about the repo.
If you have any questions, feel free to reach out to Mckay on Twitter!