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

【feat】多路召回框架与es召回 #17

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

ZWJason
Copy link
Collaborator

@ZWJason ZWJason commented Jan 10, 2025

采用策略模式的多路召回框架和es召回策略实现,策略模式横向扩展召回路数,组合容器收集召回结果,并在内部实现粗筛,解耦召回与粗筛逻辑。

src/main/java/com/search/docsearch/multirecall/recall/MultiSearchContext.java 多路召回上下文,执行已经注册的召回策略,并以容器返回结果
src/main/java/com/search/docsearch/multirecall/recall/SearchStrategy.java 召回策略接口类
src/main/java/com/search/docsearch/multirecall/recall/cstrategy/EsSearchStrategy.java es召回具体实现
src/main/java/com/search/docsearch/multirecall/recall/cstrategy/GSearchStrategy.java google召回具体实现(待补充)
src/test/java/com/search/docsearch/EsSearchStrategyTest.java es召回测试类
src/test/java/com/search/docsearch/SearchContextTest.java 召回上下文测试类
src/test/java/com/search/docsearch/strategy/ErrorSearchStrategy.java 错误召回测试类,返回null结果,用于测试n路召回中任意一路召回失败时场景
src/test/java/com/search/docsearch/strategy/TestSearchStrategy.java 正常召回测试类,正常返回结果

@ZWJason ZWJason requested a review from GeorgeCao-hw January 10, 2025 01:27
@shishupei
Copy link

开始门禁检查,等门禁检查通过后可以合入

Copy link
Contributor

@GeorgeCao-hw GeorgeCao-hw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@shishupei
Copy link

检查项 状态 日志
Check代码检查 查看日志
敏感信息扫描 查看日志
安全编码扫描 查看日志
流水线链接 点击跳转

@GeorgeCao-hw GeorgeCao-hw merged commit 5c01d99 into release/multiRecall Jan 10, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants