Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 1.37 KB

README.md

File metadata and controls

29 lines (23 loc) · 1.37 KB

Notion LangChain

Requirements

  • 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) スクリーンショット 2023-09-13 20 19 20

Setup

  1. 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
  2. Run the app
    docker-compose up
  3. Access http://localhost:8000 and click on Load Data before running any queries.

References

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.