Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions vicinity/vicinity.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from vicinity import Metric
from vicinity.backends import AbstractBackend, BasicBackend, BasicVectorStore, get_backend_class
from vicinity.datatypes import Backend, PathLike, QueryResult
from vicinity.datatypes import Backend, PathLike, SimilarityResult

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -115,7 +115,7 @@ def query(
self,
vectors: npt.NDArray,
k: int = 10,
) -> list[QueryResult]:
) -> SimilarityResult:
"""
Find the nearest neighbors to some arbitrary vector.

Expand All @@ -142,7 +142,7 @@ def query_threshold(
vectors: npt.NDArray,
threshold: float = 0.5,
max_k: int = 100,
) -> list[QueryResult]:
) -> SimilarityResult:
"""
Find the nearest neighbors to some arbitrary vector with some threshold. Note: the output is not sorted.

Expand Down