psychic-api / connect-to-gdrive-tutorial

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connect-to-gdrive-tutorial

This is the code for the tutorial here, showing how to connect files from a Google Drive account to LLMs using Psychic, Chroma, and LangChain.

Running

  1. Create an account at https://dashboard.psychic.dev/ (it's free) and connect a Google Drive account.
  2. Rename rename.env to .env and fill in your own OPENAI_API_KEY and PSYCHIC_SECRET_KEY.
  3. Replace account_id in main.py with the Account ID you used to connect to Google Drive in step 1.
  4. Install poetry to run this project in a virtual environment.
  5. Run the following in order:
    poetry install
    poetry shell
    python main.py

About


Languages

Language:Python 100.0%