mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-23 12:21:08 +00:00
fix: aembed_query type error (#2441)
This commit is contained in:
parent
150f33bd26
commit
dc5b1f79aa
@ -26,7 +26,8 @@ class RemoteEmbeddings(Embeddings):
|
||||
|
||||
async def aembed_query(self, text: str) -> List[float]:
|
||||
"""Asynchronous Embed query text."""
|
||||
return await self.aembed_documents([text])[0]
|
||||
result = await self.aembed_documents([text])
|
||||
return result[0]
|
||||
|
||||
|
||||
class RemoteRerankEmbeddings(RerankEmbeddings):
|
||||
|
Loading…
Reference in New Issue
Block a user