Easily ask questions about your GitHub repository using RAG and Elasticsearch as a Vector database.
- Install Required Libraries:
pip install -r requirements.txt
-
Set Up Environment Variables
GITHUB_TOKEN
,GITHUB_OWNER
,GITHUB_REPO
,GITHUB_BRANCH
,ELASTIC_CLOUD_ID
,ELASTIC_USER
,ELASTIC_PASSWORD
,ELASTIC_INDEX
,OPENAI_API_KEY
-
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.
- Ask questions about your codebase by running:
python query.py