Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 793 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 793 Bytes

Overview

This is a quick development environment to experiment with Langfuse and LangChain.

It's a small, minimal test API for generating RAG recipes with flavor pairings from one of my favorite cookbooks.

Server Installation

docker build -t fastapi-pgvector-app .
docker run - 80:80 fastapi-pgvector-app //see note on env below

Env Setup

When you run your container, you'll need the following variables setup

LANGFUSE_SECRET_KEY=
LANGFUSE_PUBLIC_KEY=
LANGFUSE_HOST=

OPENAI_API_KEY=

SCAFFOLD_DB="false" // Set to true to initialize db

POSTGRES_USER=langchain
POSTGRES_PASSWORD=langchain
POSTGRES_DB=langchain

DB Installation

cd db
docker compose up

Docker Network

You may need to setup a docker network, I had to on Windows but not on Mac?