mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 03:26:17 +00:00
community[patch]: AzureSearch dont overwrite default async (#21989)
This commit is contained in:
@@ -21,10 +21,7 @@ from typing import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from langchain_core.callbacks import (
|
from langchain_core.callbacks import CallbackManagerForRetrieverRun
|
||||||
AsyncCallbackManagerForRetrieverRun,
|
|
||||||
CallbackManagerForRetrieverRun,
|
|
||||||
)
|
|
||||||
from langchain_core.documents import Document
|
from langchain_core.documents import Document
|
||||||
from langchain_core.embeddings import Embeddings
|
from langchain_core.embeddings import Embeddings
|
||||||
from langchain_core.pydantic_v1 import root_validator
|
from langchain_core.pydantic_v1 import root_validator
|
||||||
@@ -802,13 +799,3 @@ class AzureSearchVectorStoreRetriever(BaseRetriever):
|
|||||||
else:
|
else:
|
||||||
raise ValueError(f"search_type of {self.search_type} not allowed.")
|
raise ValueError(f"search_type of {self.search_type} not allowed.")
|
||||||
return docs
|
return docs
|
||||||
|
|
||||||
async def _aget_relevant_documents(
|
|
||||||
self,
|
|
||||||
query: str,
|
|
||||||
*,
|
|
||||||
run_manager: AsyncCallbackManagerForRetrieverRun,
|
|
||||||
) -> List[Document]:
|
|
||||||
raise NotImplementedError(
|
|
||||||
"AzureSearchVectorStoreRetriever does not support async"
|
|
||||||
)
|
|
||||||
|
Reference in New Issue
Block a user