Skip to content

fix(knowledge): align citations with context budget - #1491

Open
AbelTomato wants to merge 2 commits into
TencentCloud:developfrom
AbelTomato:fix/knowledge-citation-budget
Open

AbelTomato wants to merge 2 commits into
TencentCloud:developfrom
AbelTomato:fix/knowledge-citation-budget

Conversation

@AbelTomato

Copy link
Copy Markdown

Summary

Fixes #1490

When the knowledge retrieval context is truncated by char_budget, citation markers could include ranked documents whose content was not injected into the context

Target branch

  • Base is develop (feature / fix — default)
  • Base is main (release/* or hotfix/* only)

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation
  • Refactor / chore
  • Release / hotfix

Test plan

  • make all passes locally
  • Added/updated tests

Checklist

  • Updated CHANGELOG.md (if user-facing)
  • README / docs updated (if needed)

@dangzitou dangzitou left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

本地核验通过:PR 分支 3 个用例全绿;新用例拷回 develop 红(develop 上引用 marker 确实包含未注入上下文的文档)。continue 跳过的空文本 chunk 也一并不再被引用,CHANGELOG 已补。

非阻塞:CHANGELOG.md 与 develop 有冲突,合入前需要 rebase 一下。代码内容未发现其他问题。

@AbelTomato
AbelTomato marked this pull request as ready for review October 4, 2026 03:59

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants