RAGs can be used to give LLMs context about your data (be it text, images or videos). Use this code to start learning more about Retrieval Augmented Generation.
If you don't have Python installed, you can get it from this url. I still use 3.10, but you can try using a higher version.
Install the dependencies
# (Optional) create a virtual environment to store your dependencies
>> python3 -m pip install virtualenv
>> python3 -m venv .venv
>> source .venv/bin/activate
# install requirements
>> pip install -r requirements
You will also need to:
- create your own OpenAI key
- copy the key
- create a file called
.env
- and paste yout key there
OPENAI_API_KEY=YOUR-OPENAI-KEY
Just type the following command in your console: python chatbot_ui.py
. This will open a Gradio UI that you can use to play with existing functionalities.