This repository contains the code and data behind the RAG and Observability demo by inovex at data2day 2024.
python3 -m venv name_of_virtualenv
source name_of_virtualenv/bin/activate
pip install poetry
Install the dependencies for this project with poetry
poetry install
Store the necessary information about your Azure OpenAI model deployments in the .env file.
To start the chat app execute
chainlit run app.py
This will start the chainlit server with the chat interface at http://localhost:8000 as well as the Phoenix server for tracking and evaluating the chat interactions at http://localhost:6006/. If you need more information on how Phoenix traces the conversation and generates evaluations you can find the documentation right here.
The code is currently based on using the Azure OpenAI Service through LangChain. However, it is easily adaptable to work with other model providers by simply exchanging the model constructors in the files app.py and vectorstore.py with those appropriate for your models of choice. For more information check out this site in the LangChain documentation.