Skip to content

CJohnDesign/chat-your-data

Repository files navigation

Chat-LangChain-Notion

Create a ChatGPT like experience over your Notion database using LangChain.

📊 Example Data

This repo uses the Blendle Employee Handbook as an example. It was downloaded October 18th so may have changed slightly since then!

🧑 Instructions for ingesting your own dataset

Export your dataset from Notion. You can do this by clicking on the three dots in the upper right hand corner and then clicking Export.

export

When exporting, make sure to select the Markdown & CSV format option.

export-format

This will produce a .zip file in your Downloads folder. Move the .zip file into this repository.

Run the following command to unzip the zip file (replace the Export... with your own file name as needed).

unzip Export-d3adfe0f-3131-4bf3-8987-a52017fc1bae.zip -d Notion_DB

Ingest data

Therefor, the only thing that is needed is to be done to ingest data is run python ingest_data.py

Query data

Custom prompts are used to ground the answers in the Blendle Employee Handbook files.

Running the Application

By running python app.py from the command line you can easily interact with your ChatGPT over your own data.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%