Skip to content

Latest commit

 

History

History
39 lines (31 loc) · 907 Bytes

README.md

File metadata and controls

39 lines (31 loc) · 907 Bytes

Datafest 2023: LangChain Chatbot

data.zip contains transcriptions from Lex Fridman's podcasts. The chatbot aims to have a friendly conversation about those podcasts or anything general. The project's aim is to demonstrate how you can create a chatbot that has access to specific data source.

Feel free to modify and experiment with any step in the pipeline.

Unzip transcription data

unzip data.zip

Create a conda environment

conda create -n langchain_chatbot python=3.9 -y
conda activate langchain_chatbot

Install the requirements

pip install -r requirements.txt

Add any keys required to the environment

For example, for using gpt-4 you need to create OPENAI_API_KEY and export it.

export OPENAI_API_KEY=...

Embed the source documents and store

python create_db.py

Run the chatbot

python chatbot.py