mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
langchain: add RankLLM Reranker (#21171)
Integrate RankLLM reranker (https://github.com/castorini/rank_llm) into LangChain An example notebook is given in `docs/docs/integrations/retrievers/rankllm-reranker.ipynb` --------- Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"""Test document compressor integrations."""
|
@@ -0,0 +1,8 @@
|
||||
"""Test rankllm reranker."""
|
||||
|
||||
from langchain_community.document_compressors.rankllm_rerank import RankLLMRerank
|
||||
|
||||
|
||||
def test_rankllm_reranker_init() -> None:
|
||||
"""Test the RankLLM reranker initializes correctly."""
|
||||
RankLLMRerank()
|
@@ -4,6 +4,7 @@ EXPECTED_ALL = [
|
||||
"LLMLinguaCompressor",
|
||||
"OpenVINOReranker",
|
||||
"JinaRerank",
|
||||
"RankLLMRerank",
|
||||
"FlashrankRerank",
|
||||
]
|
||||
|
||||
|
Reference in New Issue
Block a user