Installation and Setupο
Installation from Sourceο
Git clone this repository: git clone https://github.com/jerryjliu/llama_index.git
. Then do:
pip install -e .
if you want to do an editable install (you can modify source files) of just the package itself.pip install -r requirements.txt
if you want to install optional dependencies + dependencies used for development (e.g. unit testing).
Environment Setupο
By default, we use the OpenAI GPT-3 text-davinci-003
model. In order to use this, you must have an OPENAI_API_KEY setup.
You can register an API key by logging into OpenAIβs page and creating a new API token.
You can customize the underlying LLM in the Custom LLMs How-To (courtesy of Langchain). You may need additional environment keys + tokens setup depending on the LLM provider.