This is a chatbot application that uses RAG (Retrieval-Augmented Generation) to answer questions about the OPM reservoir simulator.
- Clone the repository
- Create a virtual environment:
python -m venv opm_assistant_venv - Activate the virtual environment:
- Windows:
opm_assistant_venv\Scripts\activate - macOS/Linux:
source opm_assistant_venv/bin/activate
- Windows:
- Install dependencies:
pip install -r requirements.txt - Optionally, for local testing, create a
.envfile in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_api_key_here
- Ensure your virtual environment is activated
- Run the Streamlit app:
streamlit run app.py - Open the provided URL in your web browser
-
Build the Docker image:
docker build -t opm-assistant . -
Run the Docker container:
docker run -p 8501:8501 opm-assistant -
Optionally, for local testing, create a
.envfile in the root directory and add your OpenAI API key:docker run -p 8501:8501 -e OPENAI_API_KEY=your_api_key_here opm-assistant -
Open
http://localhost:8501in your web browser