Use the Llama Index Core library to implement document vector index creation, storage and query functions, which can achieve the effect of asking questions based on a large amount of text and getting effective answers.
- Set environment variables:
export OPENAI_API_KEY=
- Install and run the code:
pip3 install -r requirements.txt
python3 query.py