Repository navigation
制度问询:检索条款时 groupBy 同带 granularity: "record",修复 os-4 检索全部报错 - #95
Merged
Merged
Conversation
问制度在 os-4 上用 Haiku 提问时,模型给 search_knowledge 补了 granularity: "chunk"(工具说明写它是默认值),与 groupBy: "clause_hash" 同发,平台按 #38726 起的规则拒绝,每次检索都出错。技能里明写 granularity: "record"(与只带 groupBy 结果一致),并说明不能传 chunk。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012dn2AeboKP5Y3u84Vxx2z6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by bob · project thread
问题
os-4 上「问制度」用 Fast · Claude Haiku 提问「病假什么政策?」,每次「在知识库中查找」都出错:
技能只写了
groupBy: "clause_hash",没写granularity;search_knowledge的参数说明写着chunk是默认值,Haiku 就把granularity: "chunk"也填上了,平台(objectstack 的检索参数校验)拒绝这个组合。改动
技能第 2 步检索条款时明写
granularity: "record",并说明带groupBy时不能传"chunk"。在 os-4 上用 MCP 直接核对过:只带
groupBy: "clause_hash"和同时带granularity: "record"返回的命中完全相同,所以这个改动不影响检索结果。上线
合并后需要
os deploy到 os-4,技能才会更新。Generated by Claude Code