)
        return values
[docs]    def embed_documents(self, texts: List[str]) -> List[List[float]]:
        """Embed a list of documents using NLP Cloud.
        Args:
            texts: The list of texts to embed.
        Returns:
            List of embeddings, one for each text.
        """
        return self.client.embeddings(texts)["embeddings"]
[docs]    def embed_query(self, text: str) -> List[float]:
        """Embed a query using NLP Cloud.
        Args:
            text: The text to embed.
        Returns:
            Embeddings for the text.
        """
        return self.client.embeddings([text])["embeddings"][0]