Skip to content

Commit

Permalink
Fix vector search import (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivirshup authored Sep 26, 2024
1 parent dc4eb1f commit af68b5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import numpy as np
import numpy.typing as npt
import pandas as pd
import tiledb.vector_search as vs
import tiledbsoma as soma
from scipy import sparse

Expand Down Expand Up @@ -70,6 +69,8 @@ def find_nearest_obs(
The result of `get_embedding_metadata_by_name(embedding_name, organism, census_version)`.
Supplying this saves a network request for repeated searches.
"""
import tiledb.vector_search as vs

if embedding_metadata is None:
embedding_metadata = get_embedding_metadata_by_name(embedding_name, organism, census_version)
assert embedding_metadata["embedding_name"] == embedding_name
Expand Down

0 comments on commit af68b5e

Please sign in to comment.