MyGPT Workshop: Build a ChatGPT For Your Own Data in One Hour
README.md
MyGPT
We use langchain - index and openai to build your own Generative AI application using your own documents.
Requirements
pip install -r requirements.txt
export OPENAI_API_KEY=YOUR_OPENAI_API_KEY
Usage
Train
# Retrain from scratch
python src/train.py
Run the app
gradio src/app.py
Testing
Question: What are these documents about?
Getting Data
Generally
- Download text files, any directory structure
- Put them into the data directory of this repository
- Train app!
Notion
- Follow the steps here: https://www.notion.so/help/export-your-content#export-as-markdown-&-csv
- Unzip the downloaded archive
- Move the unzipped folder/directory into the data directory of this repo and then train!
Slack
- Follow steps here: https://slack.com/help/articles/201658943-Export-your-workspace-data
Sample Data
A sample dataset has been provided in the sample-data directory, just copy the gen-ai folder into the data directory and use that for a very simple corpus of documents.
File List | Total items: 9 | ||
---|---|---|---|
Name | Last Commit | Size | Last Modified |
assets | |||
data | |||
model | |||
sample-data | |||
src | |||
.gitattributes | |||
.gitignore | |||
README.md | |||
requirements.txt |
About
MyGPT Workshop: Build a ChatGPT For Your Own Data in One Hour
Repository Size
Loading repo size...
Activity 14 commits
-
committed 357e48fa4f 7mo ago
-
committed b204b1f3e4 7mo ago
-
committed 210ed49647 7mo ago
-
committed 26291b23b3 7mo ago
-
committed 8dd782f7e1 7mo ago