print("Failed to query route: " + str(e))
        return embeddings
[docs]    def embed_documents(self, texts: List[str]) -> List[List[float]]:
        return self._query(texts)
[docs]    def embed_query(self, text: str) -> List[float]:
        return self._query([text])[0]
[docs]    async def aembed_documents(self, texts: List[str]) -> List[List[float]]:
        return await self._aquery(texts)
[docs]    async def aembed_query(self, text: str) -> List[float]:
        result = await self._aquery([text])
        return result[0]