This is my attempt at a "retrieval augmented generation" (RAG) app with Langchain and OpenAI in Python.
-
Do the following before installing the dependencies found in
requirements.txt
file because of current challenges installingonnxruntime
throughpip install onnxruntime
.- For MacOS users, a workaround is to first install
onnxruntime
dependency forchromadb
using:
conda install onnxruntime -c conda-forge
See this thread for additonal help if needed.
- For Windows users, follow the guide here to install the Microsoft C++ Build Tools. Be sure to follow through to the last step to set the enviroment variable path.
- For MacOS users, a workaround is to first install
-
Now run this command to install dependenies in the
requirements.txt
file.
pip install -r requirements.txt
- Install markdown depenendies with:
pip install "unstructured[md]"
Create the Chroma DB.
python create_database.py
Query the Chroma DB.
python query_data.py "What are some benefits of the GRUBBRR kiosk?"
You'll also need to set up an OpenAI account (and set the OpenAI key in your environment variable) for this to work.