Repo chat is a command line utility that allows you to ask questions about a GitHub repository or a local folder.
This is a fork of the original repository with modifications to make it more user-friendly and easier to use with command line arguments.
In this project we use OpenAI embeddings and Chroma as our vector database.
-
Make sure you have set up your OpenAI API key by configuring the
.env
file or setting theOPENAI_API_KEY
environment variable. -
Install the required dependencies by running
pip install -r requirements.txt
. -
Run the
main.py
script with the appropriate command line arguments. Here are the available optional arguments:--command
: specify whether to embed, load, or query a repository--path
: specify the path to the repository on your local machine--url
: specify the URL of the repository on GitHub--branch
: specify the branch of the repository to use--collection
: specify the name of the collection to use--extensions
: specify a comma-separated list of file extensions to include in the embedding process
For example, to embed a local repository located at
/path/to/repo
and save the resulting embeddings to a collection namedmy_collection
, you would run:./main.py --command embed --path /path/to/repo --collection my_collection