/chatgpt-plugin-fastapi-langchain-chroma

An Example Plugin for ChatGPT, Utilizing FastAPI, LangChain and Chroma

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

chatgpt-plugin-fastapi-langchain-chroma

An Example Plugin for ChatGPT, Utilizing FastAPI, LangChain and Chroma

Blog Post

Video Version

Install the dependencies

pip install -r requirements.txt

Create .env file

python -c "import shutil; shutil.copy('.env.example', '.env')"

Set OPENAI_API_KEY in .env

Create embeddings for the data and persist Chroma

python persist_chroma.py

Start

uvicorn main:app --log-level debug --reload