it does RuntimeWarning: coroutine 'SearchClient.close' was never awaited
loop.run_until_complete(self.async_client.close())
Description
I'm trying to using from langchain_community.vectorstores.azuresearch import AzureSearch
I expected to see no error or warning.
Instead, it does RuntimeWarning: coroutine 'SearchClient.close' was never awaited
loop.run_until_complete(self.async_client.close())
Normally, It's okay and working correctly, but when i concurrent request to my endpoint, i got this warnnig.
Can i ignore this code or not?
System Info
System Information
OS: Linux
OS Version: #49~20.04.1-Ubuntu SMP Wed Jul 12 12:44:56 UTC 2023
Python Version: 3.11.9 (main, Apr 6 2024, 17:59:24) [GCC 9.4.0]
Package Information
langchain_core: 0.3.0
langchain: 0.3.0
langchain_community: 0.3.0
langsmith: 0.1.129
langchain_openai: 0.2.0
langchain_text_splitters: 0.3.0
langgraph: Installed. No version info available.
Checked other resources
Example Code
The following code:
Error Message and Stack Trace (if applicable)
it does RuntimeWarning: coroutine 'SearchClient.close' was never awaited loop.run_until_complete(self.async_client.close())
Description
I'm trying to using from langchain_community.vectorstores.azuresearch import AzureSearch
I expected to see no error or warning. Instead, it does RuntimeWarning: coroutine 'SearchClient.close' was never awaited loop.run_until_complete(self.async_client.close())
Normally, It's okay and working correctly, but when i concurrent request to my endpoint, i got this warnnig. Can i ignore this code or not?
System Info
System Information
Package Information
Optional packages not installed
Other Dependencies