Update Cohere Reranker (#4180)

The forward ref annotations don't get updated if we only iimport with
type checking

---------

Co-authored-by: Abhinav Verma <abhinav_win12@yahoo.co.in>
This commit is contained in:
Zander Chase
2023-05-05 09:11:37 -07:00
committed by GitHub
parent d84bb02881
commit 84cfa76e00
2 changed files with 23 additions and 2 deletions
@@ -0,0 +1,8 @@
"""Test the cohere reranker."""
from langchain.retrievers.document_compressors.cohere_rerank import CohereRerank
def test_cohere_reranker_init() -> None:
"""Test the cohere reranker initializes correctly."""
CohereRerank()