Taking Llamaindex for a spin to build LLM apps
Using a base Python 3.11 environment with pip
, you can install the required packages with the following command:
pip install -r requirements.txt
After updating the environment, update the requirements.txt
file with the following command:
pip freeze > requirements.txt
The data
folder contains the documents to train on (the knowledge base).
The storage
folder contains application data (embeddings etc.)
.
├── data
│ └── ...
├── storage
│ └── ...
├── README.md
└── requirements.txt
You can download some example data like this:
Invoke-WebRequest https://raw.githubusercontent.com/run-llama/llama_index/main/examples/paul_graham_essay/data/paul_graham_essay.txt -OutFile .\data\paul_graham_essay.txt
Invoke-WebRequest https://arxiv.org/pdf/2307.09288.pdf -OutFile .\data\2307.09288.pdf