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

如何在langchain和llama_index中集成使用reranker呢? #4

Open
zhangjiekui opened this issue Jan 12, 2024 · 2 comments
Open

Comments

@zhangjiekui
Copy link

目前的readme中只是在langchain和llama_index中使用了embedding

@shenlei1020
Copy link
Collaborator

shenlei1020 commented Jan 12, 2024

感谢您的反馈:
1、llama_index可以集成reranker,具体可以参考:https://github.com/netease-youdao/BCEmbedding/blob/master/BCEmbedding/tools/eval_rag/eval_llamaindex_multiple_domains.py
后面我们会提供使用reranker的demo。
2、langchain目前还不是很好用local reranker模型,后续看一下怎么支持。

如果模型在您的项目中有提升,还希望您更多反馈和建议,比如您目标领域的语种和场景类型(目标是后续版本争取提升该场景效果)~~

@shenlei1020
Copy link
Collaborator

BCEmbedding>=0.1.2提供EmbeddingMode和RerankerModel集成进langchain和llamaIndex的接口,很方便。
demo代码详见:https://github.com/netease-youdao/BCEmbedding?tab=readme-ov-file#embedding-and-reranker-integrations-for-rag-frameworks

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

2 participants