diff --git a/docs.json b/docs.json index 7f178c19..9e7720df 100644 --- a/docs.json +++ b/docs.json @@ -12,7 +12,6 @@ "light": "https://assets-docs.dify.ai/2025/05/d05cfc6ebe48f725d171dc71c64a5d16.svg", "dark": "https://assets-docs.dify.ai/2025/05/c51f1cda47c1d9a4a162d7736f6e4c53.svg" }, - "navigation": { "versions": [ { diff --git a/en/development/models-integration/truefoundry.mdx b/en/development/models-integration/truefoundry.mdx index 426a6e42..bc3c2308 100644 --- a/en/development/models-integration/truefoundry.mdx +++ b/en/development/models-integration/truefoundry.mdx @@ -64,3 +64,13 @@ Fill in the following configuration: Your Dify workspace is now integrated with TrueFoundry's AI Gateway and ready for building AI applications, workflows, and agents. +{/* +Contributing Section +DO NOT edit this section! +It will be automatically generated by the script. +*/} + +--- + +[Edit this page](https://github.com/langgenius/dify-docs/edit/main/en/development/models-integration/truefoundry.mdx) | [Report an issue](https://github.com/langgenius/dify-docs/issues/new?template=docs.yml) + diff --git a/zh-hans/guides/workflow/node/agent.mdx b/zh-hans/guides/workflow/node/agent.mdx index cfef0c60..8919ede9 100644 --- a/zh-hans/guides/workflow/node/agent.mdx +++ b/zh-hans/guides/workflow/node/agent.mdx @@ -116,7 +116,6 @@ Agent 节点执行过程中将生成详细日志。显示节点执行的总体 * 将 `numResults` 固定为 5,控制每次返回结果数量。 * 其他如过滤条件参数也可固定,以保证结果一致性。 - {/* Contributing Section DO NOT edit this section! diff --git a/zh-hans/learn-more/use-cases/build-an-notion-ai-assistant.mdx b/zh-hans/learn-more/use-cases/build-an-notion-ai-assistant.mdx index 4231f4a7..c6c456bb 100644 --- a/zh-hans/learn-more/use-cases/build-an-notion-ai-assistant.mdx +++ b/zh-hans/learn-more/use-cases/build-an-notion-ai-assistant.mdx @@ -49,31 +49,31 @@ Notion 是一个强大的知识管理工具。它的灵活性和可扩展性使 选择你要和 Dify 同步的页面,然后点击“允许访问”按钮。 -![connect-with-notion-4](https://pan.wsyfin.com/f/M8Xtz/connect-with-notion-4.png) +![](https://assets-docs.dify.ai/2025/03/fe00306264fa0334c6f96ba049460d08.png) #### 4. 开始训练 指定需要让 AI 学习的页面,使其能够理解 Notion 中这个部分的内容。然后点击 "下一步" 按钮。 -![train-1](https://pan.wsyfin.com/f/Nkjuj/train-1.png) +![](https://assets-docs.dify.ai/2025/03/4e86d66f5ce46b2043f0eb9165a73572.png) 我们建议选择 "自动" 和 "高质量" 的选项来训练你的 AI 助手。然后点击 "保存并处理" 按钮。 -![train-2](https://pan.wsyfin.com/f/OYoCv/train-2.png) +![](https://assets-docs.dify.ai/2025/03/21184bca8647509abc58c75ad3002582.png) 等待几秒钟,embedding 处理进程完成。 -![train-3](https://pan.wsyfin.com/f/PN9F3/train-3.png) +![](https://assets-docs.dify.ai/2025/03/73cddadbf3b34edda974f8f47165d988.png) #### 5. 创建你自己的 AI 应用程序[​](https://wsyfin.com/notion-dify#5-create-your-own-ai-application) 你需要创建一个AI应用,然后连接刚刚创建的知识库。返回到仪表板,然后点击“创建新应用”按钮。建议直接使用聊天应用。 -![create-app-1](https://pan.wsyfin.com/f/QWRHo/create-app-1.png) +![](https://assets-docs.dify.ai/2025/03/8e91ce29dd346b3edd0f26a261e27ad2.png) 选择“Prompt Eng.”并在“context”中添加你的 Notion 知识库。 -![create-app-2](https://pan.wsyfin.com/f/R6DT5/create-app-2.png) +![](https://assets-docs.dify.ai/2025/03/853c348bfc86a2f845a7698fe715f6f1.png) 我建议在你的 AI 应用程序中添加一个「预设提示」。就像咒语对于哈利·波特来说是必不可少的一样,某些工具或功能可以极大地增强 AI 应用程序的能力。 @@ -81,15 +81,15 @@ Notion 是一个强大的知识管理工具。它的灵活性和可扩展性使 > 我希望你能在我的 Notion 工作区中扮演一个 IT 专家的角色,利用你对计算机科学、网络基础设施、Notion 笔记和 IT 安全的知识来解决问题。 -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/zh_CN/learn-more/use-cases/27f353c0cc454912205d0acdc1aed51f.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/f5a5e95e1120906669b3c1ad4e186dea.png) 建议初始时启用 AI 主动提供用户一个起始句子,给出可以询问的线索。此外,激活「语音转文字」功能可以让用户通过语音与你的 AI 助手进行互动。 -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/zh_CN/learn-more/use-cases/cf3649fe8bffaa76a86d71daa8ec0afb.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/ffa36d0313dba8ac4255424c4f880191.png) 现在你可以在“概览”中单击公共 URL 聊天与你自己的 AI 助手! -![](https://assets-docs.dify.ai/dify-enterprise-mintlify/zh_CN/learn-more/use-cases/3830bbae27580f32cc415340984cb4e9.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/1f8c6f7d7f3d61a1928d25ab85f7b1ff.png) ### 通过API集成到你的项目中​ @@ -99,27 +99,27 @@ Notion 是一个强大的知识管理工具。它的灵活性和可扩展性使 在概览页面上点击「API 参考」按钮。你可以将其作为你应用程序的 API 文档参考。 -![using-api-1](https://pan.wsyfin.com/f/wp0Cy/using-api-1.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/4062ac40525d573f14a8059a6605688a.png) #### 1. 生成 API 密钥 为了安全起见,建议生成 API 密钥以访问你的 AI 应用。 -![using-api-2](https://pan.wsyfin.com/f/xk2Fx/using-api-2.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/b2546aa50caff4316798edc0b950661d.png) #### 2.检索会话ID 与 AI 应用程序聊天后,你可以从“Logs & Ann.”页面检索会话 ID。 -![using-api-3](https://pan.wsyfin.com/f/yPXHL/using-api-3.png) +![](https://assets-docs.dify.ai/dify-enterprise-mintlify/en/learn-more/use-cases/6feec1081814299c574b5fb4af3f2bb8.png) #### 3. 调用API 你可以在API文档上运行示例请求代码来调用终端中的AI应用程序。 -记住替换代码中的SECRET KEY和conversation\_id。 +记住替换代码中的SECRET KEY和conversation_id。 -你可以在第一次输入空的conversation\_id,在收到包含conversation\_id的响应后将其替换。 +你可以在第一次输入空的conversation_id,在收到包含conversation_id的响应后将其替换。 ``` curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \ @@ -136,7 +136,7 @@ curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \ 在终端中发送请求,你将获得成功的响应。 -![using-api-4](https://pan.wsyfin.com/f/zpnI4/using-api-4.png) +![](https://assets-docs.dify.ai/2025/03/fb57e6a8fdb61fbc7b3c3d42f32d2ca5.png) 如果你想继续此聊天,请将请求代码的`conversation_id`替换为你从响应中获得的`conversation_id`。 @@ -146,6 +146,8 @@ curl --location --request POST 'https://api.dify.ai/v1/chat-messages' \ 如果你的 Notion 页面更新了,你可以定期与 Dify 同步,让你的人工智能助手保持最新状态。你的人工智能助手将从新内容中学习并回答新问题。 +![](https://assets-docs.dify.ai/2025/03/5a2b362a900401b85f1ba69414edf076.png) + ### 总结 在本教程中,我们不仅学会了如何将你的 Notion 数据导入到 Dify 中,还学会了如何使用 API 将其与你的项目集成。