This is the API server for the blooapp; to return the recycling instructions for items in image using Retrieval Augmented Generation (RAG) with Langchain.
Demo of the chat feature
bloo-chat-demo.mp4
-
= Python 3.10
- Poetry
- Linux (ubuntu) environment
- Docker
Linux is used as the development environment as the jq
package have issues when installing via poetry in windows.
Use windows subsystem for linux (WSL) for development.
sudo apt update && sudo apt upgrade
Install poetry in wsl
curl -sSL https://install.python-poetry.org | python3 -
Install dependencies
poetry shell
poetry install
langchain serve --port 8080
exit
docker-compose up --build -d
docker-compose down