Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] 最新版本中召回示例获取不到动态示例 #1978

Open
yanghp-max opened this issue Dec 26, 2024 · 5 comments
Open

[question] 最新版本中召回示例获取不到动态示例 #1978

yanghp-max opened this issue Dec 26, 2024 · 5 comments
Labels
question Further information is requested

Comments

@yanghp-max
Copy link

Describe your question

在解析之后,few-shot获取到的永远是初始化文件中加载的静态示例,跟踪了一下addDynamicExemplars这个方法,在获取动态示例示例的时候,没找到有从记忆中获取相关动态示例的代码,只看到从持久或路径获取动态示例的代码,这样没有持久化路径的时候,memory_agentId这个key获取到的动态示例永远是空的,在最后解析的时候补充的静态实例。也可能找的地方不对,希望能解答一下,万分感谢!

Your organization

暂不方便

@yanghp-max yanghp-max added the question Further information is requested label Dec 26, 2024
@zzccctv
Copy link

zzccctv commented Dec 26, 2024

#1912 已经修复了,自编译合并这个pr就行了

@yanghp-max
Copy link
Author

这个问题前面已经合并了,但是仍然没啥用

@zzccctv
Copy link

zzccctv commented Dec 26, 2024

在记忆管理中,选择正确+启用,就生效了。那召回会随机选取,我这边改了一下源码,优先选取记忆管理中启用的

@yanghp-max
Copy link
Author

image
已经更新完全部代码,开启了几个记忆,然后问相同的问题,还是和之前一样。这里获取某个助理的召回,永远都没有

@zzccctv
Copy link

zzccctv commented Dec 26, 2024

MemoryServiceImpl类,updateMemory访法,看看你在进行召回保存时有没有enableMemory成功。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants