The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
community[patch]: AzureSearch dont overwrite default async (#21989)
Bagatur72d4a8eeed8e
diff --git a/libs/community/langchain_community/vectorstores/azuresearch.py b/libs/community/langchain_community/vectorstores/azuresearch.pyindex 75d30e9cb3..a49bf03984 100644--- a/libs/community/langchain_community/vectorstores/azuresearch.py+++ b/libs/community/langchain_community/vectorstores/azuresearch.py@@ -21,10 +21,7 @@ from typing import ()import numpy as np-from langchain_core.callbacks import (- AsyncCallbackManagerForRetrieverRun,- CallbackManagerForRetrieverRun,-)+from langchain_core.callbacks import CallbackManagerForRetrieverRunfrom langchain_core.documents import Documentfrom langchain_core.embeddings import Embeddingsfrom langchain_core.pydantic_v1 import root_validator@@ -802,13 +799,3 @@ class AzureSearchVectorStoreRetriever(BaseRetriever):else:raise ValueError(f"search_type of {self.search_type} not allowed.")return docs-- async def _aget_relevant_documents(- self,- query: str,- *,- run_manager: AsyncCallbackManagerForRetrieverRun,- ) -> List[Document]:- raise NotImplementedError(- "AzureSearchVectorStoreRetriever does not support async"- )