nomic 3.0.39__tar.gz → 3.0.40__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nomic might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nomic
3
- Version: 3.0.39
3
+ Version: 3.0.40
4
4
  Summary: The official Nomic python client.
5
5
  Home-page: https://github.com/nomic-ai/nomic
6
6
  Author: nomic.ai
@@ -1086,6 +1086,9 @@ class AtlasDataset(AtlasClass):
1086
1086
  else:
1087
1087
  embedding_model = NomicEmbedOptions()
1088
1088
 
1089
+ if modality is None:
1090
+ modality = self.meta["modality"]
1091
+
1089
1092
  colorable_fields = []
1090
1093
 
1091
1094
  for field in self.dataset_fields:
@@ -1093,7 +1096,7 @@ class AtlasDataset(AtlasClass):
1093
1096
  colorable_fields.append(field)
1094
1097
 
1095
1098
  build_template = {}
1096
- if self.modality == "embedding":
1099
+ if modality == "embedding":
1097
1100
  if topic_model.topic_label_field is None:
1098
1101
  logger.warning(
1099
1102
  "You did not specify the `topic_label_field` option in your topic_model, your dataset will not contain auto-labeled topics."
@@ -1135,7 +1138,7 @@ class AtlasDataset(AtlasClass):
1135
1138
  ),
1136
1139
  }
1137
1140
 
1138
- elif self.modality == "text" or self.modality == "image":
1141
+ elif modality == "text" or modality == "image":
1139
1142
  # find the index id of the index with name reuse_embeddings_from_index
1140
1143
  reuse_embedding_from_index_id = None
1141
1144
  indices = self.indices
@@ -1149,10 +1152,10 @@ class AtlasDataset(AtlasClass):
1149
1152
  f"Could not find the index '{reuse_embeddings_from_index}' to re-use from. Possible options are {[index.name for index in indices]}"
1150
1153
  )
1151
1154
 
1152
- if indexed_field is None and self.modality == "text":
1155
+ if indexed_field is None and modality == "text":
1153
1156
  raise Exception("You did not specify a field to index. Specify an 'indexed_field'.")
1154
1157
 
1155
- if self.modality == "image":
1158
+ if modality == "image":
1156
1159
  indexed_field = "_blob_hash"
1157
1160
  if indexed_field is not None:
1158
1161
  logger.warning("Ignoring indexed_field for image datasets. Only _blob_hash is supported.")
@@ -1160,7 +1163,7 @@ class AtlasDataset(AtlasClass):
1160
1163
  if indexed_field not in self.dataset_fields:
1161
1164
  raise Exception(f"Indexing on {indexed_field} not allowed. Valid options are: {self.dataset_fields}")
1162
1165
 
1163
- if self.modality == "image":
1166
+ if modality == "image":
1164
1167
  if topic_model.topic_label_field is None:
1165
1168
  print(
1166
1169
  "You did not specify the `topic_label_field` option in your topic_model, your dataset will not contain auto-labeled topics."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nomic
3
- Version: 3.0.39
3
+ Version: 3.0.40
4
4
  Summary: The official Nomic python client.
5
5
  Home-page: https://github.com/nomic-ai/nomic
6
6
  Author: nomic.ai
@@ -8,7 +8,7 @@ description = "The official Nomic python client."
8
8
 
9
9
  setup(
10
10
  name="nomic",
11
- version="3.0.39",
11
+ version="3.0.40",
12
12
  url="https://github.com/nomic-ai/nomic",
13
13
  description=description,
14
14
  long_description=description,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes