Follow these steps to set up your environment and install all necessary dependencies:
-
Install
pipenv, the Python virtual environment management tool:pip3 install pipenv
-
Activate the
pipenvshell to create a new virtual environment:pipenv shell
-
Install primary dependencies (
llama-indexandpython.env):pipenv install llama-index python.env
-
Install additional packages for HTTP requests and HTML parsing:
pipenv install requests beautifulsoup4
-
Run the document downloader script:
python3 dl-docs.py
-
Reinstall or update
llama-indexif necessary:pipenv install llama-index
-
Install the OpenAI API client:
pipenv install openai
-
Install the Pinecone client for vector storage:
pipenv install pinecone-client
-
Install
python-dotenvto manage environment variables:pipenv install python-dotenv
-
Install the Pinecone plugin for
llama-index:pipenv install llama-index-vector-stores-pinecone
-
Install
unstructuredfor handling complex data inputs:pipenv install unstructured
-
Install the code formatter
black:pipenv install black
-
Install
tqdmfor progress bars andblack(if not installed):pipenv install tqdm black
-
Run the ingestion script:
python3 ingestion.py
-
Install
streamlitfor building web applications:pipenv install streamlit
-
Install
streamlitfor building web applications:streamlit run main.py
Now you are all set up! 🎉