This project provides a chatbot with a knowledge base built from user-provided Notion data. It utilizes the langchain library and OpenAI's API to process Notion documents, split the text, embed the text, and store it in a vectorstore for efficient access and retrieval.
Clone the repository:
git clone https://github.com/kevin19930919/notionGPT.git
Follow the steps below to use notionGPT:
- Start by downloading the data from your desired Notion page. ref
- Next, create a file called
secret.ini
. This file should include yourOPENAI_API_KEY
and theDATA_RESOURCE_NAME
. Looks like this: - Download all required Python packages
pip3 install -r requirement.txt
- Once you have the data and secrets ready, ingest the data you provide:
make ingest-data
- Run app:
make chat
or
python3 main.py
Every chat will contain the history content(previous questions and answers), until you input keyword "end". Entering "end" will clear history data, and start with a new conversation.