cross_encoders#

Cross encoders are wrappers around cross encoder models from different APIs and

services.

Cross encoder models can be LLMs or not.

Class hierarchy:

BaseCrossEncoder --> <name>CrossEncoder  # Examples: SagemakerEndpointCrossEncoder

Classes

cross_encoders.fake.FakeCrossEncoder

Fake cross encoder model.

cross_encoders.huggingface.HuggingFaceCrossEncoder

HuggingFace cross encoder models.

cross_encoders.sagemaker_endpoint.CrossEncoderContentHandler()

Content handler for CrossEncoder class.

cross_encoders.sagemaker_endpoint.SagemakerEndpointCrossEncoder

SageMaker Inference CrossEncoder endpoint.