CastawayGPT is a tool designed to:
- Summarize YouTube podcasts
- Recommend interesting timestamps for unique topics
- Engage in a chat with context related to the video
- Clone the repository.
- Create a
.env
file under theserver
folder for your OpenAI API key, withAPI_KEY
as the variable name. - Run
npm install
in the root directory. - Install the following Python dependencies using pip:
pip install langchain chromadb scikit-learn openai flask numpy SQLAlchemy
- Run
npm run dev
in the root folder. - Run
flask --app server run
in theserver
folder.
Note:
- Chat with context feature is working with Langchain Agent and custom similarity search Langchain tool.
- OpenAI language models used:
- GPT-3.5-turbo-0613
- Text-davinci:003
- Text-embedding-ada-002-v2
- Summarization is performed using "best representation vectors" to save cost.
- Vector Store utilizes ChromaDB (currently persistent in ./server folder).
- This repository is a work in progress, huge thanks to OpenAI, Langchain, ChromaDB, and Scikit-Learn.