diff --git a/docs/docs/Integrations/Notion/_category_.json b/docs/docs/Integrations/Notion/_category_.json index a84f3622f..c245462ef 100644 --- a/docs/docs/Integrations/Notion/_category_.json +++ b/docs/docs/Integrations/Notion/_category_.json @@ -1 +1 @@ -{"position":2, "label":"Notion"} \ No newline at end of file +{"position":5, "label":"Notion"} \ No newline at end of file diff --git a/docs/docs/Integrations/integrations-assemblyai.md b/docs/docs/Integrations/integrations-assemblyai.md index da29ad2d9..3c9ec98b4 100644 --- a/docs/docs/Integrations/integrations-assemblyai.md +++ b/docs/docs/Integrations/integrations-assemblyai.md @@ -1,6 +1,6 @@ --- title: AssemblyAI -sidebar_position: 3 +sidebar_position: 1 slug: /integrations-assemblyai --- diff --git a/docs/docs/Integrations/integrations-langfuse.md b/docs/docs/Integrations/integrations-langfuse.md new file mode 100644 index 000000000..2e64536f0 --- /dev/null +++ b/docs/docs/Integrations/integrations-langfuse.md @@ -0,0 +1,78 @@ +--- +title: Langfuse +sidebar_position: 2 +slug: /integrations-langfuse +--- + +import Tabs from '@theme/Tabs'; +import TabItem from '@theme/TabItem'; + +# Integrate Langfuse with Langflow + +[Langfuse](https://langfuse.com/) is an observability and analytics platform specifically designed for language models and AI applications. + +This guide walks you through how to configure Langflow to collect [tracing](https://langfuse.com/docs/tracing) data about your flow executions and automatically send the data to Langfuse. + +## Prerequisites + +- A project in Langflow with a runnable flow +- A Langfuse Cloud account in any [data region](https://langfuse.com/faq/all/cloud-data-regions) +- A Langfuse organization and project + +## Create Langfuse project credentials + +1. In Langfuse, go to your project settings, and then create a new set of API keys. + +2. Copy the following API key information: + + - Secret Key + - Public Key + - Host URL + +## Set your Langfuse credentials as environment variables + +Set your Langfuse project credentials as environment variables in the same environment where you run Langflow. + +You can use any method you prefer to set environment variables. +The following examples show how to set environment variables in a terminal session (Linux or macOS) and in a command prompt session (Windows): + + + + +``` +export LANGFUSE_SECRET_KEY=SECRET_KEY +export LANGFUSE_PUBLIC_KEY=PUBLIC_KEY +export LANGFUSE_HOST=HOST_URL +``` + + + +``` +set LANGFUSE_SECRET_KEY=SECRET_KEY +set LANGFUSE_PUBLIC_KEY=PUBLIC_KEY +set LANGFUSE_HOST=HOST_URL +``` + + + + +Replace `SECRET_KEY`, `PUBLIC_KEY`, and `HOST_URL` with the API key information you copied from Langfuse. + +## Start Langflow and run a flow + +1. Start Langflow in the same terminal or environment where you set the environment variables: + + ```bash + python -m langflow run + ``` + +2. In Langflow, open and existing project, and then run a flow. + +## View tracing data in Langfuse + +Langflow automatically collects and sends tracing data about the flow execution to Langfuse. +You can view the collected data in your Langfuse project dashboard. + +## Disable the Langfuse integration + +To disable the Langfuse integration, remove the environment variables you set in the previous steps and restart Langflow. diff --git a/docs/docs/Integrations/integrations-langsmith.md b/docs/docs/Integrations/integrations-langsmith.md index d26b707b0..87afcf5d3 100644 --- a/docs/docs/Integrations/integrations-langsmith.md +++ b/docs/docs/Integrations/integrations-langsmith.md @@ -1,6 +1,6 @@ --- title: LangSmith -sidebar_position: 0 +sidebar_position: 3 slug: /integrations-langsmith --- diff --git a/docs/docs/Integrations/integrations-langwatch.md b/docs/docs/Integrations/integrations-langwatch.md index 53440e716..e6d3b1ec7 100644 --- a/docs/docs/Integrations/integrations-langwatch.md +++ b/docs/docs/Integrations/integrations-langwatch.md @@ -1,6 +1,6 @@ --- title: LangWatch -sidebar_position: 1 +sidebar_position: 4 slug: /integrations-langwatch ---