Zack Saadioui
8/26/2024
1
pip
1
python --version
1
pip
1
2
bash
pip install llama-index
1
llama-index-core
1
llama-index-legacy
1
llama-index-llms-openai
1
llama-index-embeddings-openai
1
llama-index-program-openai
1
llama-index-question-gen-openai
1
llama-index-agent-openai
1
llama-index-readers-file
1
llama-index-multi-modal-llms-openai
1
LLAMA_INDEX_CACHE_DIR
1
gpt-3.5-turbo
1
text-embedding-ada-002
1
OPENAI_API_KEY
1
2
bash
export OPENAI_API_KEY=your_api_key_here
1
2
cmd
set OPENAI_API_KEY=your_api_key_here
1
pip install llama-index-core llama-index-readers-file llama-index-llms-huggingface
1
2
bash
git clone https://github.com/run-llama/llama_index.git
1
2
bash
poetry shell
1
2
bash
poetry install
1
2
bash
poetry install --with dev, docs
1
data
1
starter.py
1
2
bash
python starter.py
1
2
3
python
import logging
logging.basicConfig(level=logging.DEBUG)
1
2
python
index.storage_context.persist(persist_dir="./storage")
Copyright © Arsturn 2024