🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix deployments and readme
Max Deichmann62334f6d2dfe
diff --git a/.env.example b/.env.devsimilarity index 100%rename from .env.examplerename to .env.devdiff --git a/.env.local b/.env.localnew file mode 100644index 0000000000..cb9722074d--- /dev/null+++ b/.env.local@@ -0,0 +1,12 @@+# When adding additional environment variables, the schema in "/src/env.mjs"+# should be updated accordingly.+# Prisma+# https://www.prisma.io/docs/reference/database-reference/connection-urls#env+DIRECT_URL="postgresql://postgres:postgres@db:5432/postgres"+DATABASE_URL="postgresql://postgres:postgres@db:5432/postgres"+# Next Auth+# You can generate a new secret on the command line with:+# openssl rand -base64 32+# https://next-auth.js.org/configuration/options#secret+NEXTAUTH_SECRET="secret"+NEXTAUTH_URL="http://localhost:3000"diff --git a/.gitignore b/.gitignoreindex 2971a0bd64..c32fb3c8c7 100644--- a/.gitignore+++ b/.gitignore@@ -33,7 +33,6 @@ yarn-error.log*# local env files# do not commit any .env files to git, except for the .env.example file. https://create.t3.gg/en/usage/env-variables#using-environment-variables.env-.env*.local# vercel.verceldiff --git a/Dockerfile b/Dockerfileindex 6339bb9d3c..9864ea2e6e 100644--- a/Dockerfile+++ b/Dockerfile@@ -1,3 +1,4 @@+# Base imageFROM node:18-alpine AS base# Install dependencies only when needed@@ -28,7 +29,7 @@ COPY . .# ENV NEXT_TELEMETRY_DISABLED 1RUN npx prisma generate-RUN yarn build+RUN npm run build# If using npm comment out above and use below instead# RUN npm run builddiff --git a/README.md b/README.mdindex a240e4d03d..29e751b212 100644--- a/README.md+++ b/README.md@@ -30,6 +30,9 @@ npm run devFollow the steps below to set up the environment via docker-compose. Both the server and the database will be running in docker containers.```bash+# create env file+cp .env.local .env+# execute docker-compoerdocker-compose -f docker-compose.local.yml up```@@ -52,7 +55,11 @@ ncu -u && npm update --save### Build a Docker container+The following instructions explain how to create a single container for deployment. The container will contain the server but no database.+```bash+# create env file+cp .env.dev .env# build the containerdocker build -t langfuse .# run the containerdiff --git a/src/pages/llm-calls.tsx b/src/pages/llm-calls.tsxindex 35bcc80dfd..a6f9b8f05e 100644--- a/src/pages/llm-calls.tsx+++ b/src/pages/llm-calls.tsx@@ -10,10 +10,9 @@ import {import { api } from "~/utils/api";import { useRouter } from "next/router";-interface TraceRowData {id: string;- traceId: string+ traceId: string;}export default function Traces() {@@ -32,9 +31,7 @@ export default function Traces() {<buttonkey="openLlmCall"className="rounded bg-indigo-50 px-2 py-1 text-xs font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"- onClick={() =>- void router.push(`/llm-calls/${params.row.id}`)- }+ onClick={() => void router.push(`/llm-calls/${params.row.id}`)}>...{lastCharacters(params.row.id, 7)}</button>,@@ -49,9 +46,7 @@ export default function Traces() {<buttonkey="openTrace"className="rounded bg-indigo-50 px-2 py-1 text-xs font-semibold text-indigo-600 shadow-sm hover:bg-indigo-100"- onClick={() =>- void router.push(`/traces/${params.row.traceId}`)- }+ onClick={() => void router.push(`/traces/${params.row.traceId}`)}>...{lastCharacters(params.row.traceId, 7)}</button>,