CrossEncoderContentHandler#

class langchain_community.cross_encoders.sagemaker_endpoint.CrossEncoderContentHandler[source]#

Content handler for CrossEncoder class.

Attributes

accepts

content_type

Methods

transform_input(text_pairs)

transform_output(output)

transform_input(text_pairs: List[Tuple[str, str]]) bytes[source]#
Parameters:

text_pairs (List[Tuple[str, str]])

Return type:

bytes

transform_output(output: Any) List[float][source]#
Parameters:

output (Any)

Return type:

List[float]