- Notifications
You must be signed in to change notification settings - Fork0
yuhexiong/gpt-llama-index-rag-python
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
(also provided Traditional Chinese version documentREADME-CH.md.)
Using Llama Index integrated with OpenAI GPT to implement RAG, enabling it to read files from the directory and provide better-informed answers.
- Module: openai v1.64.0
- RAG: llama_index v0.12.19
- Obtain an API key fromOpenAI (a paid subscription may be required) and update your
.env
file with the key. - Place your reference notes or documents in the
data
directory. Two sample files are already provided. - After reading the documents, the program will store the generated index in the
index_storage
directory.
pip install openai==1.64.0 llama_index==0.12.19
python starter.py