netease-youdao / BCEmbedding

Netease Youdao's open-source embedding and reranker models for RAG products.
Apache License 2.0
1.35k stars 90 forks source link

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

Open zhangjiekui opened 8 months ago

zhangjiekui commented 8 months ago

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

shenlei1020 commented 8 months ago

感谢您的反馈: 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 commented 7 months ago

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