mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
31 lines
792 B
Python
31 lines
792 B
Python
|
"""**Cross encoders** are wrappers around cross encoder models from different APIs and
|
||
|
services.
|
||
|
|
||
|
**Cross encoder models** can be LLMs or not.
|
||
|
|
||
|
**Class hierarchy:**
|
||
|
|
||
|
.. code-block::
|
||
|
|
||
|
BaseCrossEncoder --> <name>CrossEncoder # Examples: SagemakerEndpointCrossEncoder
|
||
|
"""
|
||
|
|
||
|
|
||
|
import logging
|
||
|
|
||
|
from langchain_community.cross_encoders.base import BaseCrossEncoder
|
||
|
from langchain_community.cross_encoders.fake import FakeCrossEncoder
|
||
|
from langchain_community.cross_encoders.huggingface import HuggingFaceCrossEncoder
|
||
|
from langchain_community.cross_encoders.sagemaker_endpoint import (
|
||
|
SagemakerEndpointCrossEncoder,
|
||
|
)
|
||
|
|
||
|
logger = logging.getLogger(__name__)
|
||
|
|
||
|
__all__ = [
|
||
|
"BaseCrossEncoder",
|
||
|
"FakeCrossEncoder",
|
||
|
"HuggingFaceCrossEncoder",
|
||
|
"SagemakerEndpointCrossEncoder",
|
||
|
]
|