community[minor]: Add OpenVINO rerank model support (#19791)

@eaidova @AlexKoff88 Could you help to review, thanks

---------

Co-authored-by: Bagatur <baskaryan@gmail.com>
This commit is contained in:
Ethan Yang
2024-04-02 02:27:23 +08:00
committed by GitHub
parent 4fbdc2a7ee
commit 48f84e253e
6 changed files with 827 additions and 5 deletions

View File

@@ -16,8 +16,6 @@ DEFAULT_QUERY_BGE_INSTRUCTION_ZH = "为这个句子生成表示以用于检索
class OpenVINOEmbeddings(BaseModel, Embeddings):
"""OpenVINO embedding models.
To use, you should have the ``sentence_transformers`` python package installed.
Example:
.. code-block:: python