Welcome to the ChainFury Retrieval Augmented Generation (RAG) demo! π
Before we begin, make sure to set the following environment variables:
For LLM you can use one of the two
- πΈ
CHATNBX_KEY
- Your ChatNBX Token ("tune-xxxxx"), see more at ChatNBX - πΈ
OPENAI_TOKEN
- Your OpenAI Token ("sk-xxxxx") also setUSE_OPENAI=1
For vector database we use qdrant:
- πΈ
QDRANT_API_KEY
- Your QDRANT API Key ("hbl-xxxxxx") - πΈ
QDRANT_API_URL
- The URL for the QDRANT API ("https://xxx")
To load the data on qdrant, follow these steps:
-
Install the necessary requirements by running the following command:
pip install -r requirements_dev.txt python3 load_data.py --help
To run the streamlit app, follow these steps:
-
Install the required dependencies (ignore this step if you already have the dev requirements installed) by running:
pip install -r requirements.txt
-
Run the streamlit app using the following command:
streamlit run streamlit_app.py
That's it! You're all set to explore the power of ChainFury RAG using the provided demo. π