diff --git a/lotus/vector_store/weaviate_vs.py b/lotus/vector_store/weaviate_vs.py index 9f18ce0..e12f34e 100644 --- a/lotus/vector_store/weaviate_vs.py +++ b/lotus/vector_store/weaviate_vs.py @@ -9,6 +9,7 @@ from lotus.vector_store.vs import VS try: + import uuid from uuid import uuid4 import weaviate @@ -122,7 +123,7 @@ def __call__(self, distances.append(1 - distance) # Convert distance to similarity # Pad results if fewer than K matches while len(indices) < K: - indices.append(-1) + indices.append(uuid.UUID(0)) distances.append(0.0) all_distances.append(distances)