Repository navigation
Conversation
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.
What this PR does / why we need it?
重排节点的
is_hit_handling_method_list当前会为每一个满足直接回答条件的分段,加入整个重排结果列表,形成嵌套列表,并携带不满足条件的分段。下游工作流引用该字段时无法按单个分段读取内容和元数据。例如重排结果为
[A, B, C],仅 A、C 满足条件时,当前输出为[[A, B, C], [A, B, C]];修复后输出为[A, C]。Summary of your change
row,保留重排顺序与元数据。result_list和result保持原值。验证方案与实测结果
execute方法和真实 LangChainDocument;Django 节点基类、结果容器和模型服务在导入边界使用替身。未运行完整 Django、数据库或真实模型端到端测试。Please indicate you've done the following:
文档影响:修复已有字段的数据结构,无新增操作步骤或配置。
AI 辅助说明:使用 Codex 协助定位、编写修复和运行回归验证。