Open
Conversation
1. 将 tasks 变量更正为 docs 变量,避免网页正文信息覆盖错误 2. 当模型要求再次搜索时,将模型生成的新搜索方向作为搜索词,而非重复使用用户原始输入 原逻辑会导致: - 短摘没有被网页正文覆盖(因循环的变量名误用了tasks) - 重复搜索相似内容(因未传递模型建议的新搜索词)
…议python端也以此来接收。不需要再alias别名了。
Author
|
如果想测进入二次loop的情况,可以先将配置autobots.autoagent.tool.deep_search.max_loop=2 并提问:“查询1990年西藏的房地产和当时的人们能不能买得起房子” 此类问题由于较难找到资料。故容易触发二次搜索。 |
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.
fix(deepsearch): 修复循环赋值变量错误及搜索词传递逻辑
原逻辑会导致:
-重复搜索相似内容(因未传递模型建议的新搜索词)
-没有await无法进行真正的reasoning判断
-调用方没有传参max_loop则无法启用二次搜索迭代,为了java端风格统一,同时python端该 deepsearch端点也无其他驼峰格式的参数,因此建议修改成max_loop。也就是去掉[alias="maxLoop"]即可