Skip to content

Latest commit

 

History

History

github-assistant

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

GitHub Assistant

Easily ask questions about your GitHub repository using RAG and Elasticsearch as a Vector database.

How to use this code

  1. Install Required Libraries:
pip install -r requirements.txt
  1. Set Up Environment Variables GITHUB_TOKEN, GITHUB_OWNER, GITHUB_REPO, GITHUB_BRANCH, ELASTIC_CLOUD_ID, ELASTIC_USER, ELASTIC_PASSWORD, ELASTIC_INDEX, OPENAI_API_KEY

  2. Index your data and create the embeddings by running:

python index.py

An Elasticsearch index will be generated, housing the embeddings. You can then connect to your ESS deployment and run search query against the index, you will see a new field named embeddings.

  1. Ask questions about your codebase by running:
python query.py