Skip to content

Containerized backend API server for the blooapp; to augment recycling instructions for image items for answering recycling queries.

Notifications You must be signed in to change notification settings

zhiweit/blooapp-api

Repository files navigation

blooapp-api

This is the API server for the blooapp; to return the recycling instructions for items in image using Retrieval Augmented Generation (RAG) with Langchain.

Chat architecture

chat-architecture

Chat Feature

Demo of the chat feature

bloo-chat-demo.mp4

Requirements

  • = Python 3.10

  • Poetry
  • Linux (ubuntu) environment
  • Docker

Setup (Linux)

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

Running the server in Poetry Shell (launch LangServe)

langchain serve --port 8080

Exiting poetry shell

exit

Running the server in Docker Compose

docker-compose up --build -d

Teardown

docker-compose down

Further documentation in Notion

About

Containerized backend API server for the blooapp; to augment recycling instructions for image items for answering recycling queries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published