Skip to content

Commit

Permalink
fix: ValueError returned when calling map_data on blobs and embeddings (
Browse files Browse the repository at this point in the history
#373)

fix: ValueError returned when calling map_data on blobs and embeddings
  • Loading branch information
mcembalest authored Jan 22, 2025
1 parent 4dfc34c commit 2f860b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nomic/atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ def map_data(
modality = "text"

if blobs is not None:
if embeddings is not None:
raise ValueError(
"You cannot pass both `blobs` and `embeddings` to map_data(). To create a map of images, include `blobs` and not `embeddings`. To create a map of embeddings with images as metadata, include your images as a field in your `data` parameter."
)
# change this when we support other modalities
modality = "image"
indexed_field = "_blob_hash"
Expand Down

0 comments on commit 2f860b4

Please sign in to comment.