# 所有人工智能功能正常工作，但人工智能搜索出现500错误

**URL:** <https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888>\
**Category:** Support\
**Tags:** ai\
**Created:** [2025年二月12日 13:28 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888 "2025-02-12T13:28:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [2025年二月12日 13:28 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/1 "2025-02-12T13:28:05Z")

</div>

当我的所有 AI 设置和个性化设置都正常后。  
我可以在新的消息撰写中测试/使用 AI，校对文本等。但是当我通过右上角的搜索框进行搜索时：

 ![一张显示带文本输入的搜索栏和社交媒体搜索提示中与 AI 相关主题的截图。(由 AI 题注)](https://global.discourse-cdn.com/meta/original/4X/3/f/8/3f8733581e436beae9b93768844828f2f451f6b6.png)

我会收到“500”错误：

 ![图片显示一个弹出消息，显示“500 error”错误，并带有一个“OK”按钮。(由 AI 题注)](https://global.discourse-cdn.com/meta/original/4X/3/5/2/3525f20be30cd958ee8d33ade039d886a1071e1e.png)

我应该检查或诊断什么？

---

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [2025年二月12日 14:23 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/2 "2025-02-12T14:23:14Z")

</div>

仅用于显示 AI 设置和 API 密钥等均正常：

 ![此图像显示了一个弹出窗口，其中包含在网站 favoritetopunjabi（URL 部分可见）上对文本拼写提出的建议编辑，内容与最喜欢的旁遮普语谚语和名言相关。（由 AI 题注）](https://global.discourse-cdn.com/meta/original/4X/2/2/d/22d6c6e7ade1c23b0fceaf79438541758e5a3230.png)

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2025年二月12日 14:57 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/3 "2025-02-12T14:57:20Z")

</div>

它不起作用，至少在自托管上是这样。最好禁用您之前启用的隐藏设置（如果我没记错的话，您不是 CDCK 客户）。

---

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [2025年二月13日 04:56 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/4 "2025-02-13T04:56:35Z")

</div>

谢谢 @Jagster

是的，你说得对。我是自托管的。  
我尝试在主界面（右上角）搜索框中找到“关闭”AI辅助搜索的选项，但没有找到，也无法搜索到该选项（无论是在“管理员设置”中，还是在“AI设置”中）。  
如果你能指导一下，那个选项可能在什么地方。

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2025年二月13日 05:38 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/5 "2025-02-13T05:38:18Z")

</div>

```plaintext
cd /var/discourse
./launcher enter app
rails c
SiteSetting.ai_embeddings_semantic_quick_search_enabled = false
exit
exit

```

它曾经是一个公开的设置，但后来移到了隐藏设置中。

---

<div class="post-metadata">

**Author:** ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)\
**Post date:** [2025年二月13日 05:44 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/6 "2025-02-13T05:44:02Z")

</div>

> [@Jagster](#):
>
> 它曾经是公开的，但后来被设为隐藏了。

如果你没有加上引用的那一行，至少对我来说，答案会显得不完整（我可能会抓耳挠腮好几个小时 😄 😄 😄 ）

祝好！

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2025年三月15日 05:44 UTC](https://meta.discourse.org/t/all-ai-functions-are-working-ok-but-ai-search-gives-500-error/351888/7 "2025-03-15T05:44:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
