- Docker
- OpenAI API Key (retrieve here)
- Notion Integration + API Key (setup here)
- Pages in Notion shared with Notion Integration (You can add access by clicking on
...
on the top right of a Notion page and adding the connection to your Notion Integration)
- Create a
.env
file with your OpenAI API Key and Notion Integration API Key:OPENAI_API_KEY=<your OpenAPI API key> NOTION_API_KEY=<your Notion Integration API key> QDRANT_HOST=qdrant
- Run the app
docker-compose up
- Access http://localhost:8000 and click on
Load Data
before running any queries.
This Medium Blog by @htrivedi99 sums it up. I simply modularised it and made sure the python package versions fit the code from the time of writing, as most of LangChain and Qdrant have had breaking changes since then. Also fixed an issue with Qdrant having errors with multiple workers.