langchain/libs/community/langchain_community
Oleksii Pokotylo 98c0b093bb
community[patch]: Extend AzureSearch with maximal_marginal_relevance, from_embeddings (#21065)
**Description:**
- Extend AzureSearch with `maximal_marginal_relevance` (for vector and
hybrid search)
- Add construction `from_embeddings` - if the user has already embedded
the texts
- Add `add_embeddings` 
- Refactor common parts (`_simple_search`, `_results_to_documents`,
`_reorder_results_with_maximal_marginal_relevance`)
- Add `vector_search_dimensions` as a parameter to the constructor to
avoid extra calls to `embed_query` (most of the time the user applies
the same model and knows the dimension)

**Issue:** none
**Dependencies:** none

- [x] **Add tests and docs**: The docstrings have been added to the new
functions, and unified for the existing ones. The example notebook is
great in illustrating the main usage of AzureSearch, adding the new
methods would only dilute the main content.
- [x] **Lint and test**

---------

Co-authored-by: Oleksii Pokotylo <oleksii.pokotylo@pwc.com>
Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
Co-authored-by: Bagatur <baskaryan@gmail.com>
2024-05-22 13:36:06 -07:00
..
adapters community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
agent_toolkits community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
callbacks community[patch]: Update UpTrain Callback Handler to support the new UpTrain evaluation schema (#21656) 2024-05-20 17:06:00 -07:00
chains langchain[minor]: Add PebbloRetrievalQA chain with Identity & Semantic Enforcement support (#20641) 2024-05-15 13:14:52 +00:00
chat_loaders community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
chat_message_histories community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
chat_models community[patch]: Add unit test to verify that init is correctly defined (#22030) 2024-05-22 17:19:00 +00:00
cross_encoders multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
docstore community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
document_compressors langchain: add RankLLM Reranker (#21171) 2024-05-22 20:12:55 +00:00
document_loaders community: Fix CSVLoader columns is None (#20701) 2024-05-22 12:57:46 -07:00
document_transformers community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
embeddings community[patch]: fix public interface for embeddings module (#21650) 2024-05-22 11:42:15 -04:00
example_selectors docs: added community modules descriptions (#17827) 2024-02-21 16:18:36 -08:00
graphs community[patch]: Add unit test to verify that init is correctly defined (#22030) 2024-05-22 17:19:00 +00:00
indexes community[patch]: upgrade to recent version of mypy (#21616) 2024-05-13 14:55:07 -04:00
llms community[patch]: Fix MLX LLM Stream (#20575) 2024-05-20 17:17:08 -07:00
memory langchain[patch],community[minor]: Migrate memory implementations to community (#20845) 2024-05-02 10:46:50 -04:00
output_parsers langchain[patch], community[minor]: move output_parsers.ernie_functions (#16057) 2024-01-17 10:06:18 -08:00
query_constructors multiple: langchain 0.2 in master (#21191) 2024-05-08 16:46:52 -04:00
retrievers community[minor]: allow enabling proxy in aiohttp session in AsyncHTML (#19499) 2024-05-22 18:25:06 +00:00
storage community[patch]: Fix remaining __inits__ in community (#22037) 2024-05-22 17:42:17 +00:00
tools community[patch]: Add unit test to verify that init is correctly defined (#22030) 2024-05-22 17:19:00 +00:00
utilities community[patch]: Add unit test to verify that init is correctly defined (#22030) 2024-05-22 17:19:00 +00:00
utils community[patch]: docstrings update (#20301) 2024-04-11 16:23:27 -04:00
vectorstores community[patch]: Extend AzureSearch with maximal_marginal_relevance, from_embeddings (#21065) 2024-05-22 13:36:06 -07:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
cache.py community: init signature revision for Cassandra LLM cache classes + small maintenance (#17765) 2024-05-16 17:22:24 +00:00
py.typed community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00