def embed_documents(self, texts: List[str]) -> List[List[float]]:
        """Return consistent embeddings for each text seen so far."""
        out_vectors = []
        for text in texts:
            if text not in self.known_texts:
                self.known_texts.append(text)
            vector = [float(1.0)] * (self.dimensionality - 1) + [
                float(self.known_texts.index(text) + 1)
            ]
            out_vectors.append(vector)
        return out_vectors
Return consistent embeddings for each text seen so far.
test_elasticsearch/test_server/test_vectorstore/__init__.py