This is the code for the quickstart tutorial for Psychic. It showing how to connect documents from an application API (e.g. Notion, Confluence, Zendesk, etc) as a knowledge base for a LLMs using Psychic, Chroma, and LangChain.
- Create an account at https://dashboard.psychic.dev/ (it's free) and connect any application account.
- 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 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