- Create a pytohn env:
python -m venv .venv/env_name - Install requirements:
pip install -r requirements.txt - Add keys to config file:
{
"chatbot": {
"GOOGLE_API_KEY": "",
"OPENAI_API_KEY":""
}
}- Activate env:
source .venv/env-name/bin/activate& .venv\env-name\Scripts\activate
execute
python flask-chatbot/app.py
- Qdrant Server:
- Create your local storage for qdrant, e.g "/home/username/qdrant_data"
- Run the server
podman run -p 6333:6333 -v /home/username/qdrant_data:/qdrant/storage docker.io/qdrant/qdrant.
- Indexing:
- Go to
bot/rag_indexing - run
python indexing.py [url]. For our example, url byhttps://lilianweng.github.io/posts/2023-06-23-agent/