🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
📝 docs: Upgrade some pages in documents (#16189)
Sui_Fengaefce3df3adc
diff --git a/docs/self-hosting/advanced/model-list.mdx b/docs/self-hosting/advanced/model-list.mdxindex aa514a1558d..d706bcfdd4f 100644--- a/docs/self-hosting/advanced/model-list.mdx+++ b/docs/self-hosting/advanced/model-list.mdx@@ -66,6 +66,7 @@ Currently supported extension capabilities are:| `imageOutput` | Image Generation || `reasoning` | Support Reasoning || `search` | Support Web Search |+| `video` | Video Comprehension || `file` | File Upload (a bit hacky, not recommended for daily use) |## Provider-Specific Examplesdiff --git a/docs/self-hosting/advanced/model-list.zh-CN.mdx b/docs/self-hosting/advanced/model-list.zh-CN.mdxindex e3cd41f2c6d..3f02f637769 100644--- a/docs/self-hosting/advanced/model-list.zh-CN.mdx+++ b/docs/self-hosting/advanced/model-list.zh-CN.mdx@@ -65,6 +65,7 @@ id->deploymentName=displayName<maxToken:vision:reasoning:search:fc:file:imageOut| `imageOutput` | 图像生成 || `reasoning` | 支持推理 || `search` | 支持联网搜索 |+| `video` | 视频理解 || `file` | 文件上传(比较 hack,不建议日常使用) |## 提供商专属示例diff --git a/docs/self-hosting/advanced/observability/langfuse.mdx b/docs/self-hosting/advanced/observability/langfuse.mdxdeleted file mode 100644index 0d0993d6d2e..00000000000--- a/docs/self-hosting/advanced/observability/langfuse.mdx+++ /dev/null@@ -1,75 +0,0 @@-----title: Observability and Tracing for LobeHub-description: >-- Enhance your LobeHub applications with open-source observability and tracing- using Langfuse. Automatically capture detailed traces and metrics for every- request to optimize and debug your chats.-tags:- - Observability- - Tracing- - Langfuse------# Monitor your LobeHub application with Langfuse--## What is Langfuse?--[Langfuse](https://langfuse.com/) an **open-source LLM Observability platform**. By enabling the Langfuse integration, you can trace your application data to develop, monitor, and improve the use of LobeHub, including:--- Application [traces](https://langfuse.com/docs/tracing)-- Usage patterns-- Cost data by user and model-- [Evaluations](https://langfuse.com/docs/scores/overview)--## Get Started--<Steps>- ### Set up Langfuse-- Get your Langfuse API key by signing up for [Langfuse Cloud](https://cloud.langfuse.com) or [self-hosting](https://langfuse.com/docs/deployment/self-host) Langfuse.-- ### Set up LobeHub-- There are multiple ways to [self-host LobeHub](https://lobehub.com/docs/self-hosting/start). For this example, we will use the Docker Desktop deployment.-- <Tabs items={["Environment Variables", "Example in Docker Desktop"]}>- <Tab>- Before deploying LobeHub, set the following four environment variables with the Langfuse API keys you created in the previous step.-- ```sh- ENABLE_LANGFUSE = '1'- LANGFUSE_SECRET_KEY = 'sk-lf...'- LANGFUSE_PUBLIC_KEY = 'pk-lf...'- LANGFUSE_HOST = 'https://cloud.langfuse.com'- ```- </Tab>-- <Tab>- Before running the Docker container, set the environment variables in the Docker Desktop with the Langfuse API keys you created in the previous step.-- <Image alt={'Environment Variables in Docker Desktop'} src={'https://langfuse.com/images/docs/LobeHub-docker-desktop-env.png'} />- </Tab>- </Tabs>-- ### Activate Analytics in Settings-- Once you have LobeHub running, navigate to the **About** tab in the **Settings** and activate analytics. This is necessary for traces to be sent to Langfuse.-- <Image alt={'LobeHub Settings'} src={'https://langfuse.com/images/docs/LobeHub-settings.png'} />-- ### See Chat Traces in Langfuse-- After setting your LLM model key, you can start interacting with your LobeHub application.-- <Image alt={'LobeHub Conversation'} src={'https://langfuse.com/images/docs/LobeHub-converstation.png'} />-- All conversations in the chat are automatically traced and sent to Langfuse. You can view the traces in the [Traces section](https://langfuse.com/docs/tracing) in the Langfuse UI.-- <Image alt={'LobeHub Example Trace'} src={'https://langfuse.com/images/docs/LobeHub-example-trace.png'} />-- *[Example trace in the Langfuse UI](https://cloud.langfuse.com/project/cloramnkj0002jz088vzn1ja4/traces/63e9246d-3f22-4e45-936d-b0c4ccf55a1e?timestamp=2024-11-26T17%3A00%3A02.028Z\&observation=7ea75a0c-d9d1-425c-9b88-27561c63b413)*-</Steps>--## Feedback--If you have any feedback or requests, please create a GitHub [Issue](https://langfuse.com/issue) or share your work with the Langfuse community on [Discord](https://discord.langfuse.com/).diff --git a/docs/self-hosting/advanced/observability/langfuse.zh-CN.mdx b/docs/self-hosting/advanced/observability/langfuse.zh-CN.mdxdeleted file mode 100644index 15b678e4255..00000000000--- a/docs/self-hosting/advanced/observability/langfuse.zh-CN.mdx+++ /dev/null@@ -1,70 +0,0 @@-----title: LobeHub 的可观测性和追踪-description: 使用 Langfuse 为你的 LobeHub 应用增强开源可观测性和追踪功能。自动捕获每个请求的详细追踪和指标,以优化和调试你的对话。-tags:- - 可观测性- - 追踪- - Langfuse------# 使用 Langfuse 监控你的 LobeHub 应用--## 什么是 Langfuse?--[Langfuse](https://langfuse.com/) 是一个 **开源的 LLM 可观测性平台**。启用 Langfuse 集成后,你可以追踪应用数据,以开发、监控和优化 LobeHub 的使用,包括:--- 应用 [追踪](https://langfuse.com/docs/tracing)-- 使用模式-- 按用户和模型的成本数据-- [评估](https://langfuse.com/docs/scores/overview)--## 快速开始--<Steps>- ### 设置 Langfuse-- 通过注册 [Langfuse Cloud](https://cloud.langfuse.com) 或 [自托管](https://langfuse.com/docs/deployment/self-host) Langfuse 来获取你的 Langfuse API 密钥。-- ### 设置 LobeHub-- 有多种方式可以 [自托管 LobeHub](https://lobehub.com/docs/self-hosting/start)。在本示例中,我们将使用 Docker Desktop 部署。-- <Tabs items={["环境变量", "Docker Desktop 示例"]}>- <Tab>- 在部署 LobeHub 之前,使用你在上一步创建的 Langfuse API 密钥设置以下四个环境变量。-- ```sh- ENABLE_LANGFUSE = '1'- LANGFUSE_SECRET_KEY = 'sk-lf...'- LANGFUSE_PUBLIC_KEY = 'pk-lf...'- LANGFUSE_HOST = 'https://cloud.langfuse.com'- ```- </Tab>-- <Tab>- 在运行 Docker 容器之前,在 Docker Desktop 中设置环境变量,并填入你在上一步创建的 Langfuse API 密钥。-- <Image alt={'Docker Desktop 中的环境变量'} src={'https://langfuse.com/images/docs/LobeHub-docker-desktop-env.png'} />- </Tab>- </Tabs>-- ### 在设置中启用分析功能-- 当 LobeHub 运行后,进入 **设置** 中的 **关于** 选项卡,并启用分析功能。这是将追踪数据发送到 Langfuse 所必需的。-- <Image alt={'LobeHub 设置'} src={'https://langfuse.com/images/docs/LobeHub-settings.png'} />-- ### 在 Langfuse 中查看聊天追踪-- 设置好 LLM 模型密钥后,你就可以开始与 LobeHub 进行交互。-- <Image alt={'LobeHub 对话'} src={'https://langfuse.com/images/docs/LobeHub-converstation.png'} />-- 所有对话都会被自动追踪并发送到 Langfuse。你可以在 Langfuse UI 的 [追踪部分](https://langfuse.com/docs/tracing) 查看这些数据。-- <Image alt={'LobeHub Trace 示例'} src={'https://langfuse.com/images/docs/LobeHub-example-trace.png'} />-</Steps>--## 反馈--如果你有任何反馈或需求,请在 GitHub 上创建 [Issue](https://langfuse.com/issue),或在 [Discord](https://discord.langfuse.com/) 上与 Langfuse 社区分享你的想法。diff --git a/docs/self-hosting/environment-variables/basic.mdx b/docs/self-hosting/environment-variables/basic.mdxindex 0999d636bc8..37b90ec5d95 100644--- a/docs/self-hosting/environment-variables/basic.mdx+++ b/docs/self-hosting/environment-variables/basic.mdx@@ -97,8 +97,11 @@ Available system agents and their functions:| Translation | `translation` | Handles text translation between multiple languages || Metadata Generation | `agentMeta` | Generates descriptive information and metadata for assistants || History Compression | `historyCompress` | Compresses and organizes history for long conversations, optimizing context management |-| Thread Management | `thread` | Handles the creation and management of conversation threads |-+| Branch Conversation | `thread` | Automatically generate titles for branch conversations |+| Image Generation Naming | `generationTopic` | AI image automatic topic naming |+| Input Auto-completion | `inputCompletion` | Input auto-completion suggestions (similar to GitHub Copilot ghost text) |+| Prompt Rewrite | `promptRewrite` | Optimize prompts before generation |+| Image Generation Naming | `generationTopic` | AI image automatic topic naming |### `FEATURE_FLAGS`- Type: Optional@@ -124,6 +127,13 @@ Business builds enable Gateway Mode automatically. Self-hosted deployments can s- Default: -- Example: `https://agent-gateway.example.com`+### `AGENT_GATEWAY_SERVICE_TOKEN`++- Type: Optional+- Description: Agent Gateway authentication token, used for authentication between Gateway Mode and self-deployed Agent Gateway+- Default: -+- Example: `dev-secret`+### `PROXY_URL`- Type: Optionaldiff --git a/docs/self-hosting/environment-variables/basic.zh-CN.mdx b/docs/self-hosting/environment-variables/basic.zh-CN.mdxindex d04ea3b3508..cda8100f767 100644--- a/docs/self-hosting/environment-variables/basic.zh-CN.mdx+++ b/docs/self-hosting/environment-variables/basic.zh-CN.mdx@@ -94,7 +94,11 @@ LobeHub 在部署时提供了一些额外的配置项,你可以使用环境变| 翻译 | `translation` | 文本翻译使用的助手 || 元数据生成 | `agentMeta` | 为助手生成描述性信息和元数据 || 历史记录压缩 | `historyCompress` | 压缩和整理长对话的历史记录,优化上下文管理 |-| 分支对话 | `thread` | 自定生成分支对话的标题 |+| 分支对话 | `thread` | 自动生成分支对话的标题 |+| 图片生成命名 | `generationTopic` | AI 图片自动命名话题 |+| 输入自动补全 | `inputCompletion` | 输入自动补全建议(类似 GitHub Copilot 幽灵文本) |+| 提示词重写 | `promptRewrite` | 生成前优化提示词 |+| 图片生成命名 | `generationTopic` | AI 图片自动命名话题 |### `FEATURE_FLAGS`@@ -121,6 +125,13 @@ LobeHub 在部署时提供了一些额外的配置项,你可以使用环境变- 默认值:-- 示例:`https://agent-gateway.example.com`+### `AGENT_GATEWAY_SERVICE_TOKEN`++- 类型:可选+- 描述:Agent Gateway 验证Token,用于 Gateway Mode 与自部署 Agent Gateway 的鉴权+- 默认值:-+- 示例:`dev-secret`+### `PROXY_URL`- 类型:可选diff --git a/docs/self-hosting/platform/docker.mdx b/docs/self-hosting/platform/docker.mdxindex 1da21f333f1..6063ac6cfec 100644--- a/docs/self-hosting/platform/docker.mdx+++ b/docs/self-hosting/platform/docker.mdx@@ -40,14 +40,16 @@ Here is the process for deploying the LobeHub server database version on a Linux```shdocker network create pg- docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17+ docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17 -c shared_preload_libraries=pg_search```- The above command will create a PG instance named `my-postgres` on the network `pg`, where `paradedb/paradedb:latest-pg17` is a Postgres 17 image with pgvector and pg\_search plugins installed by default.+ The above command will create a Postgres instance named `my-postgres` with the network set to `pg`, where `paradedb/paradedb:latest-pg17` is a Postgres 17 image with the `pgvector` and `pg_search` extensions installed and enabled by default.<Callout type="info">The ParadeDB image includes pgvector (vector search) and pg\_search (full-text search) plugins, which are importantcomponents for LobeHub to implement RAG and knowledge base search.++ It should be noted that the new version of ParadeDB requires explicitly enabling the pg_search extension in order to be used by LobeHub. Here we explicitly enable pg_search.</Callout><Callout type="warning">diff --git a/docs/self-hosting/platform/docker.zh-CN.mdx b/docs/self-hosting/platform/docker.zh-CN.mdxindex b7e5e740005..ede391bfc52 100644--- a/docs/self-hosting/platform/docker.zh-CN.mdx+++ b/docs/self-hosting/platform/docker.zh-CN.mdx@@ -38,10 +38,10 @@ tags:```shdocker network create pg- docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17+ docker run --name my-postgres --network pg -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d paradedb/paradedb:latest-pg17 -c shared_preload_libraries=pg_search```- 上述指令会创建一个名为 `my-postgres`,并且网络为 `pg` 的 PG 实例,其中 `paradedb/paradedb:latest-pg17` 是一个 Postgres 17 的镜像,且默认安装了 pgvector 和 pg\_search 插件。+ 上述指令会创建一个名为 `my-postgres`,并且网络为 `pg` 的 Postgres 实例,其中 `paradedb/paradedb:latest-pg17` 是一个 Postgres 17 的镜像,且默认安装并启用了 `pgvector` 和 `pg_search` 插件。<Callout type="info">ParadeDB 镜像包含了 pgvector(向量搜索)和 pg\_search(全文搜索)插件,是 LobeHub 实现 RAG 和知识库搜索的重要构件。