This project demonstrates the implementation of a chatbot using LangChain and the OpenAI API, with Streamlit for the user interface.
- Python 3.11.9
- OpenAI API key
-
Create a Python virtual environment:
python -m venv .venv
-
Activate the virtual environment:
source .venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
-
Copy
.env.templateand rename it to.env. ≥ Make sure to add your OpenAI API key to the file. -
To start the assistant, run this command in your terminal:
python main.py
-
To launch the assistant with a graphical interface, use this command:
streamlit run chatbot_interface.py