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

使用多个RAG,向量数据库查询只有第一个有返回值 #384

Open
lanyanhua opened this issue Jan 21, 2025 · 2 comments
Open

Comments

@lanyanhua
Copy link

我要实现Text-to-Sql,分了两个RAG实例,一个数据库表结构的,一个是查询示例
现在是两个只有一个查询有数据。是我的用法不对吗?我看源码里面是addLIst,断点向量数据库是有查询两次,但是第二次的参数不对带上了第一次的userTextAdvise。日志也没看到查询的相关参数

Image
@yuluo-yx
Copy link
Collaborator

@shryan-bin
Copy link

shryan-bin commented Jan 22, 2025

框架现在不支持,需要你自己实现CallAroundAdvisor, StreamAroundAdvisor这2个接口以支持多知识库的查询。 可以参考DocumentRetrievalAdvisor这个类的实现逻辑,接收一个List, 然后你改写一下before方法,并行执行List里面的Retriver把得到的List 合并就可以了。

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

No branches or pull requests

3 participants