Skip to content

Latest commit

 

History

History
72 lines (44 loc) · 1.36 KB

README.md

File metadata and controls

72 lines (44 loc) · 1.36 KB

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