Skip to content

Commit

Permalink
emb
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw committed Apr 11, 2024
1 parent 6c254b2 commit 0a22fd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/langsmith/_internal/_embedding_distance.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
from typing import (
TYPE_CHECKING,
Any,
Callable,
List,
Literal,
Expand All @@ -21,7 +22,7 @@

logger = logging.getLogger(__name__)

Matrix = Union[List[List[float]], List[np.ndarray], np.ndarray]
Matrix = Union[List[List[float]], List[Any], Any]


def cosine_similarity(X: Matrix, Y: Matrix) -> np.ndarray:
Expand Down

0 comments on commit 0a22fd4

Please sign in to comment.