Skip to content

这里s06Context Compact 的第一层micro_compact还是有些简单粗暴的,后面会压缩重要信息导致模型出现幻觉问题 #274

@letmedrink

Description

@letmedrink

使用的问题示例是:Read every Python file in the agents/ directory one by one。
第一层压缩会把前面的非read_file类型的tool result 替换为占位符,而有个bash result是find到的待read文件列表,这个result被压缩之前还能按顺序走loop依次读取文件,但是压缩后下一个模型读取的文件就是/agents/s03_errors.py,这个文件完全不存在,无疑是模型幻觉了
不过这里应该只是考虑到教学,简化了压缩的逻辑,感觉实际使用的时候还要用到更有效的压缩策略。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions