def METHOD_NAME(
    self,
    query_input_ids,
    title_input_ids,
    query_token_type_ids=None,
    query_position_ids=None,
    query_attention_mask=None,
    title_token_type_ids=None,
    title_position_ids=None,
    title_attention_mask=None,
    with_pooler=True,
):
    query_cls_embedding = self.get_pooled_embedding(
        query_input_ids, query_token_type_ids, query_position_ids, query_attention_mask, with_pooler=with_pooler
    )
    title_cls_embedding = self.get_pooled_embedding(
        title_input_ids, title_token_type_ids, title_position_ids, title_attention_mask, with_pooler=with_pooler
    )
    METHOD_NAME = paddle.sum(query_cls_embedding * title_cls_embedding, axis=-1)
    return METHOD_NAME