mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +00:00
d1b7a934aa
- **Description:** Some of the Cross-Encoder models provide scores in pairs, i.e., <not-relevant score (higher means the document is less relevant to the query), relevant score (higher means the document is more relevant to the query)>. However, the `HuggingFaceCrossEncoder` `score` method does not currently take into account the pair situation. This PR addresses this issue by modifying the method to consider only the relevant score if score is being provided in pair. The reason for focusing on the relevant score is that the compressors select the top-n documents based on relevance. - **Issue:** #22556 - Please also refer to this [comment](https://github.com/UKPLab/sentence-transformers/issues/568#issuecomment-729153075) |
||
---|---|---|
.. | ||
__init__.py | ||
base.py | ||
fake.py | ||
huggingface.py | ||
sagemaker_endpoint.py |