community[mionr]: add Jina Reranker in retrievers module (#19406)

- **Description:** Adapt JinaEmbeddings to run with the new Jina AI
Rerank API
- **Twitter handle:** https://twitter.com/JinaAI_


- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.


- [ ] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/

---------

Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
Joan Fontanals
2024-04-25 19:27:10 +02:00
committed by GitHub
parent 92969d49cb
commit baefbfb14e
4 changed files with 384 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
from langchain_community.document_compressors import __all__, _module_lookup
EXPECTED_ALL = ["LLMLinguaCompressor", "OpenVINOReranker"]
EXPECTED_ALL = ["LLMLinguaCompressor", "OpenVINOReranker", "JinaRerank"]
def test_all_imports() -> None: