Skip to content

Commit

Permalink
1 less print
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindy Long committed Dec 11, 2024
1 parent b0e1fb5 commit df40cab
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion letta/orm/sqlite_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ def cosine_distance(embedding1, embedding2, expected_dim=MAX_EMBEDDING_DIM):
vec1 = validate_and_transform_embedding(embedding1, expected_dim)
vec2 = validate_and_transform_embedding(embedding2, expected_dim)
except ValueError as e:
print(f"Embedding validation failed: {str(e)}")
return 0.0

similarity = np.dot(vec1, vec2) / (np.linalg.norm(vec1) * np.linalg.norm(vec2))
Expand Down

0 comments on commit df40cab

Please sign in to comment.