nomic 3.1.3__tar.gz → 3.3.0__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.1.3
3
+ Version: 3.3.0
4
4
  Summary: The official Nomic python client.
5
5
  Home-page: https://github.com/nomic-ai/nomic
6
6
  Author: nomic.ai
@@ -115,5 +115,9 @@ class NomicEmbedOptions(BaseModel):
115
115
  """
116
116
 
117
117
  model: Literal[
118
- "nomic-embed-text-v1", "nomic-embed-vision-v1", "nomic-embed-text-v1.5", "nomic-embed-vision-v1.5"
118
+ "nomic-embed-text-v1",
119
+ "nomic-embed-vision-v1",
120
+ "nomic-embed-text-v1.5",
121
+ "nomic-embed-vision-v1.5",
122
+ "gte-multilingual-base",
119
123
  ] = "nomic-embed-text-v1.5"
@@ -140,6 +140,9 @@ class AtlasClass(object):
140
140
  if organization["user_id"] == user["sub"] and organization["access_role"] == "OWNER":
141
141
  return organization
142
142
 
143
+ for organization in user["organizations"]:
144
+ if organization["user_id"] == user["sub"]:
145
+ return organization
143
146
  return {}
144
147
 
145
148
  def _delete_project_by_id(self, project_id):
@@ -213,6 +216,9 @@ class AtlasClass(object):
213
216
  headers=self.header,
214
217
  )
215
218
 
219
+ if response.status_code == 403:
220
+ raise ValueError(response.json()["detail"])
221
+
216
222
  if response.status_code != 200:
217
223
  return None
218
224
 
@@ -827,6 +833,9 @@ class AtlasDataset(AtlasClass):
827
833
  organization_id = self._get_organization_by_slug(slug=identifier)
828
834
  project_slug = identifier.split("/")[1]
829
835
 
836
+ if "/" in identifier:
837
+ org_name = identifier.split("/")[0]
838
+ logger.info(f"Organization name: `{org_name}`")
830
839
  # supported_modalities = ['text', 'embedding']
831
840
  # if modality not in supported_modalities:
832
841
  # msg = 'Tried to create dataset with modality: {}, but Atlas only supports: {}'.format(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nomic
3
- Version: 3.1.3
3
+ Version: 3.3.0
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.1.3",
11
+ version="3.3.0",
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
File without changes