Skip to content

Commit

Permalink
Address review comments and add example notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaosPapailiou committed Oct 14, 2024
1 parent 77ffa26 commit b0cfff7
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 0 deletions.
279 changes: 279 additions & 0 deletions apis/python/examples/object_api/multi_modal_pdf_search.ipynb

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ def load(self) -> None:
if self.device is None:
if torch.cuda.is_available() and torch.cuda.device_count() > 0:
self.device = "cuda"
elif torch.backends.mps.is_available():
self.device = "mps"
else:
self.device = "cpu"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ def create(
schema = tiledb.ArraySchema(
domain=external_ids_dom,
sparse=True,
capacity=metadata_tile_size,
attrs=object_reader.metadata_attributes(),
)
tiledb.Array.create(object_metadata_array_uri, schema)
Expand Down

0 comments on commit b0cfff7

Please sign in to comment.