The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
[Integration Tests] Cast fake embeddings to ALL float values (#1102)
Noah Gundotra8c5fbab72d91
diff --git a/tests/integration_tests/vectorstores/fake_embeddings.py b/tests/integration_tests/vectorstores/fake_embeddings.pyindex c7b571e803..e5a5fcd3b4 100644--- a/tests/integration_tests/vectorstores/fake_embeddings.py+++ b/tests/integration_tests/vectorstores/fake_embeddings.py@@ -11,8 +11,8 @@ class FakeEmbeddings(Embeddings):def embed_documents(self, texts: List[str]) -> List[List[float]]:"""Return simple embeddings."""- return [[1.0] * 9 + [i] for i in range(len(texts))]+ return [[float(1.0)] * 9 + [float(i)] for i in range(len(texts))]def embed_query(self, text: str) -> List[float]:"""Return simple embeddings."""- return [1.0] * 9 + [0.0]+ return [float(1.0)] * 9 + [float(0.0)]