mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
community[patch]: Fixed 'coroutine' object is not subscriptable error (#15986)
- **Description:** Added parenthesis in return statement of aembed_query() funtion to fix 'coroutine' object is not subscriptable error. - **Dependencies:** NA Co-authored-by: H161961 <Raunak.Raunak@Honeywell.com>
This commit is contained in:
parent
14244bd7e5
commit
c0773ab329
@ -144,5 +144,5 @@ class HuggingFaceHubEmbeddings(BaseModel, Embeddings):
|
|||||||
Returns:
|
Returns:
|
||||||
Embeddings for the text.
|
Embeddings for the text.
|
||||||
"""
|
"""
|
||||||
response = await self.aembed_documents([text])[0]
|
response = (await self.aembed_documents([text]))[0]
|
||||||
return response
|
return response
|
||||||
|
Loading…
Reference in New Issue
Block a user