LlamaIndex demo
This project provides a very simple but working example of using LlamaIndex to enable natural-language querying of a GitHub repository. It's described in a Medium article I wrote, Getting started with LlamaIndex.
Running the demo
- Clone this repository
- Copy the
env.example
file to.env
and replace the tokens with:- A GitHub personal access token generated in the GitHub settings page. Create a token with
repo
andread:org
scopes. - An OpenAI key generated in the OpenAI platform page.
- A GitHub personal access token generated in the GitHub settings page. Create a token with
- Create a poetry shell and run the code:
$ poetry shell
$ python ingest.py
$ python query.py