langchain/libs/community
Mohammad Mohtashim d1b7a934aa
[Community]: HuggingFaceCrossEncoder score accounting for <not-relevant score,relevant score> pairs. (#22578)
- **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)
2024-06-14 08:28:24 -07:00
..
langchain_community [Community]: HuggingFaceCrossEncoder score accounting for <not-relevant score,relevant score> pairs. (#22578) 2024-06-14 08:28:24 -07:00
scripts ci: Add script to check for pickle usage in community (#22863) 2024-06-13 16:13:15 -04:00
tests community[minor]: add chat model llamacpp (#22589) 2024-06-14 14:51:43 +00:00
extended_testing_deps.txt community[minor]: Add UpstashRatelimitHandler (#21885) 2024-06-07 21:02:06 +00:00
Makefile ci: Add script to check for pickle usage in community (#22863) 2024-06-13 16:13:15 -04:00
poetry.lock ci: add testing with Python 3.12 (#22813) 2024-06-12 16:31:36 -04:00
pyproject.toml ci: add testing with Python 3.12 (#22813) 2024-06-12 16:31:36 -04:00
README.md Batch update of alt text and title attributes for images in md/mdx files across repo (#15357) 2024-01-12 14:37:48 -08:00

🦜🧑‍🤝‍🧑 LangChain Community

Downloads License: MIT

Quick Install

pip install langchain-community

What is it?

LangChain Community contains third-party integrations that implement the base interfaces defined in LangChain Core, making them ready-to-use in any LangChain application.

For full documentation see the API reference.

Diagram outlining the hierarchical organization of the LangChain framework, displaying the interconnected parts across multiple layers.

📕 Releases & Versioning

langchain-community is currently on version 0.0.x

All changes will be accompanied by a patch version increase.

💁 Contributing

As an open-source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infrastructure, or better documentation.

For detailed information on how to contribute, see the Contributing Guide.