Skip to content

Commit

Permalink
made changes to weaviate file
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoghTantradi committed Jan 16, 2025
1 parent 89bf974 commit a76adb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lotus/vector_store/weaviate_vs.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from lotus.vector_store.vs import VS

try:
import uuid
from uuid import uuid4

import weaviate
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a76adb7

Please sign in to comment.