Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/experienced-dev/chatgpt-plugin-fastapi-langchain-chroma
An Example Plugin for ChatGPT, Utilizing FastAPI, LangChain and Chroma
https://github.com/experienced-dev/chatgpt-plugin-fastapi-langchain-chroma
chatgpt chatgpt-plugin chatgpt-plugins chroma fastapi fastapi-template langchain
Last synced: 3 months ago
JSON representation
An Example Plugin for ChatGPT, Utilizing FastAPI, LangChain and Chroma
- Host: GitHub
- URL: https://github.com/experienced-dev/chatgpt-plugin-fastapi-langchain-chroma
- Owner: experienced-dev
- License: agpl-3.0
- Created: 2023-06-23T08:23:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-25T08:31:50.000Z (over 1 year ago)
- Last Synced: 2024-11-06T14:40:16.647Z (3 months ago)
- Topics: chatgpt, chatgpt-plugin, chatgpt-plugins, chroma, fastapi, fastapi-template, langchain
- Language: Python
- Homepage:
- Size: 32.2 KB
- Stars: 47
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-langchain-zh - FastAPI + Chroma - dev/chatgpt-plugin-fastapi-langchain-chroma?style=social): 一个采用fastapi,langchain,chroma 的chatgpt插件 (工具 / 服务)
- awesome-langchain - FastAPI + Chroma
README
# chatgpt-plugin-fastapi-langchain-chroma
An Example Plugin for ChatGPT, Utilizing FastAPI, LangChain and Chroma
[Blog Post](https://blog.experienced.dev/chatgpt-plugin-fastapi-langchain-chroma/?utm_source=github&utm_medium=repo&utm_content=010)
[Video Version](https://youtu.be/2TIj1Ger_qE)
## Install the dependencies
```bash
pip install -r requirements.txt
```## Create .env file
```bash
python -c "import shutil; shutil.copy('.env.example', '.env')"
```
## Set OPENAI_API_KEY in `.env`## Create embeddings for the data and persist Chroma
```bash
python persist_chroma.py
```
## Start
```bash
uvicorn main:app --log-level debug --reload
```