This is the code for the tutorial here, showing how to connect Notion workspace to LLMs using Psychic, Chroma, and LangChain.
- Create an account at https://dashboard.psychic.dev/ (it's free) and connect a Notion workspace.
- Rename
rename.env
to.env
and fill in your own OPENAI_API_KEY and PSYCHIC_SECRET_KEY. - Replace
account_id
inmain.py
with the Account ID you used to connect to Notion in step 1. - Install poetry to run this project in a virtual environment.
- Run the following in order:
poetry install poetry shell python main.py