community[patch]: AzureSearch dont overwrite default async (#21989)

This commit is contained in:
Bagatur 2024-05-21 11:01:28 -07:00 committed by GitHub
parent a983465694
commit 72d4a8eeed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -21,10 +21,7 @@ from typing import (
)
import numpy as np
from langchain_core.callbacks import (
AsyncCallbackManagerForRetrieverRun,
CallbackManagerForRetrieverRun,
)
from langchain_core.callbacks import CallbackManagerForRetrieverRun
from langchain_core.documents import Document
from langchain_core.embeddings import Embeddings
from 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"
)