The project uses:
https://www.anthropic.com/news/contextual-retrieval
- Python 3.8+
- pip (Python package manager)
- Clone this repository:
git clone https://github.com/Wizo17/contextual_rag_application.git
cd contextual_rag_application- Create a virtual environment:
python -m venv venv- Activate the virtual environment:
# Unix / MacOS
source venv/bin/activate
# Windows
venv\Scripts\activate- Install dependencies:
pip install -r requirements.txtIf you have some issues, use python 3.12.0 and requirements_all.txt
- Create .env file:
cp .env.example .env- Update .env file
Adapt host (MFFLOW_HOST) and port (MFFLOW_PORT)
mlflow server --host 127.0.0.1 --port 5000It is not necessary if you keep my docs and my indexes Remove all files in data/index before
python main.pyUpdate queries if you don't keep my docs and my indexes
python test.pyBy launching streamlit, you can have competitive conflicts with torch. It is not a problem for this version.
streamlit run chatbot.pyThis project is licensed under the MIT License - see LICENSE for more information.