Skip to content

Commit

Permalink
typecheck passes for weaviate?
Browse files Browse the repository at this point in the history
  • Loading branch information
AmoghTantradi committed Jan 15, 2025
1 parent 3c8a742 commit b53d8a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lotus/vector_store/weaviate_vs.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __call__(self,
for obj in objects:
indices.append(obj.properties.get('content'))
# Convert cosine distance to similarity score
distance:float = obj.metadata.distance
distance = obj.metadata.distance
distances.append(1 - distance) # Convert distance to similarity

# Pad results if fewer than K matches
Expand Down

0 comments on commit b53d8a2

Please sign in to comment.