# 嵌入 \`input 必须少于 8192 个 token\` 的警告与 discourse ai

**URL:** <https://meta.discourse.org/t/warning-of-embedding-input-must-have-less-than-8192-tokens-with-discourse-ai/387332>\
**Category:** Support\
**Tags:** ai\
**Created:** [2025 年11 月 1 日 01:53 UTC](https://meta.discourse.org/t/warning-of-embedding-input-must-have-less-than-8192-tokens-with-discourse-ai/387332 "2025-11-01T01:53:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
发布日期： [2025 年11 月 1 日 03:39 UTC](https://meta.discourse.org/t/warning-of-embedding-input-must-have-less-than-8192-tokens-with-discourse-ai/387332/2 "2025-11-01T03:39:58Z")

</div>

如果您自行托管相同的模型，最多可容纳 32k 个 token。

如果这不可行，那么您需要配置嵌入模型，将输入限制在您的提供商允许的最大值内。这样，我们的 AI Bot RAG 将把上传的文件分割成块，而“相关主题/搜索”将只取每个主题的前 8192 个 token。

---

_[View the full topic](https://meta.discourse.org/t/warning-of-embedding-input-must-have-less-than-8192-tokens-with-discourse-ai/387332)._
