diff --git a/zh_CN/.gitbook/assets/image (249).png b/zh_CN/.gitbook/assets/image (249).png new file mode 100644 index 0000000..41f0453 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (249).png differ diff --git a/zh_CN/.gitbook/assets/image (250).png b/zh_CN/.gitbook/assets/image (250).png new file mode 100644 index 0000000..cc42fb9 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (250).png differ diff --git a/zh_CN/.gitbook/assets/image (251).png b/zh_CN/.gitbook/assets/image (251).png new file mode 100644 index 0000000..cc42fb9 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (251).png differ diff --git a/zh_CN/.gitbook/assets/image (252).png b/zh_CN/.gitbook/assets/image (252).png new file mode 100644 index 0000000..0d55c03 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (252).png differ diff --git a/zh_CN/.gitbook/assets/image (253).png b/zh_CN/.gitbook/assets/image (253).png new file mode 100644 index 0000000..bc8261c Binary files /dev/null and b/zh_CN/.gitbook/assets/image (253).png differ diff --git a/zh_CN/.gitbook/assets/image (254).png b/zh_CN/.gitbook/assets/image (254).png new file mode 100644 index 0000000..a13f34c Binary files /dev/null and b/zh_CN/.gitbook/assets/image (254).png differ diff --git a/zh_CN/.gitbook/assets/image (255).png b/zh_CN/.gitbook/assets/image (255).png new file mode 100644 index 0000000..faff544 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (255).png differ diff --git a/zh_CN/.gitbook/assets/image (256).png b/zh_CN/.gitbook/assets/image (256).png new file mode 100644 index 0000000..f05a3bd Binary files /dev/null and b/zh_CN/.gitbook/assets/image (256).png differ diff --git a/zh_CN/.gitbook/assets/image (257).png b/zh_CN/.gitbook/assets/image (257).png new file mode 100644 index 0000000..3fc527a Binary files /dev/null and b/zh_CN/.gitbook/assets/image (257).png differ diff --git a/zh_CN/.gitbook/assets/image (258).png b/zh_CN/.gitbook/assets/image (258).png new file mode 100644 index 0000000..9aad12b Binary files /dev/null and b/zh_CN/.gitbook/assets/image (258).png differ diff --git a/zh_CN/.gitbook/assets/image (259).png b/zh_CN/.gitbook/assets/image (259).png new file mode 100644 index 0000000..4078ce3 Binary files /dev/null and b/zh_CN/.gitbook/assets/image (259).png differ diff --git a/zh_CN/guides/monitoring/integrate_external_ops_tools/README.md b/zh_CN/guides/monitoring/integrate_external_ops_tools/README.md index c7c5dfc..257bb3f 100644 --- a/zh_CN/guides/monitoring/integrate_external_ops_tools/README.md +++ b/zh_CN/guides/monitoring/integrate_external_ops_tools/README.md @@ -1,3 +1,2 @@ # 集成外部 Ops 工具 -🚧 等待维护中 diff --git a/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langfuse.md b/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langfuse.md index cfbd74f..6ff20c1 100644 --- a/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langfuse.md +++ b/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langfuse.md @@ -1,3 +1,53 @@ # 集成 LangFuse -🚧 等待维护中 +### 1 什么是 LangFuse + +Langfuse 是一个开源的 LLM 工程平台,可以帮助团队协作调试、分析和迭代他们的应用程序。 + +{% hint style="info" %} +Langfuse 官网介绍:[https://langfuse.com/](https://langfuse.com/) +{% endhint %} + +### 2 如何配置 LangFuse + +1. 登录[官网注册](https://langfuse.com/)并登录 Langfuse +2. 在 LangSmith 内创建项目,登录后在主页点击 **New** ,创建一个自己的项目,**项目**将用于与 Dify 内的**应用**关联进行数据监测。 + +

在 LangFuse 内创建项目

+ +为项目编辑一个名称。 + +

在 LangFuse 内创建项目

+ +3. 创建项目 API 凭据,在项目内左侧边栏中点击 **Settings** 打开设置 + +

创建一个项目 API 凭据

+ +在 Settings 内点击 **Create API Keys** 创建一个项目 API 凭据。 + +

创建一个项目 API 凭据

+ +复制并保存 **Secret Key** ,**Public Key,Host** + +

获取 API Key 配置

+ +4\. 在 Dify 内配置 LangFuse,打开需要监测的应用,在侧边菜单打开**监测**,在页面中选择**配置。** + +

配置 LangFuse

+ +点击配置后,将在 LangFuse 内创建的 **Secret Key, Public Key, Host** 粘贴到配置内并保存。 + +

配置 LangFuse

+ +成功保存后可以在当前页面查看到状态,显示已启动即正在监测。 + +

查看配置状态

+ +### 3 在 LangSmith 内查看监测数据 + +配置完成后, Dify 内应用的调试或生产数据可以在 LangSmith 查看监测数据 + +

在 Dify 内调试应用

+ +

在 LangFuse 内查看监控数据

+ diff --git a/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langsmith.md b/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langsmith.md index 78de64c..ccf99c8 100644 --- a/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langsmith.md +++ b/zh_CN/guides/monitoring/integrate_external_ops_tools/integrate_langsmith.md @@ -15,11 +15,11 @@ LangSmith 官网介绍:[https://www.langchain.com/langsmith](https://www.langc 1. 登录官网注册并登录 LangSmith:[https://www.langchain.com/langsmith](https://www.langchain.com/langsmith) 2. 在 LangSmith 内创建项目,登录后在主页点击 **New Project** 创建一个自己的项目,**项目**将用于与 Dify 内的**应用**关联进行数据监测。 -
+

在 LangSmith 内创建项目

创建完成之后在 Projects 内可以查看到所有已创建的项目。 -
+

在 LangSmith 内查看已创建项目

3. 创建项目凭据,在左侧边栏内找到项目设置 **Settings**。