crewplus 0.2.11__tar.gz → 0.2.13__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 crewplus might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crewplus
3
- Version: 0.2.11
3
+ Version: 0.2.13
4
4
  Summary: Base services for CrewPlus AI applications
5
5
  Author-Email: Tim Liu <tim@opsmateai.com>
6
6
  License: MIT
@@ -113,6 +113,9 @@ class MilvusSchemaManager:
113
113
  auto_id = field_info.get('auto_id', False)
114
114
  nullable = field_info.get('nullable', False)
115
115
  schema.add_field(field_name=field_name, datatype=DataType.INT64, is_primary=is_primary, auto_id=auto_id, nullable=nullable)
116
+ elif field_type == "FLOAT":
117
+ nullable = field_info.get('nullable', True)
118
+ schema.add_field(field_name=field_name, datatype=DataType.FLOAT, nullable=nullable)
116
119
  elif field_type == "ARRAY":
117
120
  self._add_array_field(schema, field_name, field_info)
118
121
  elif field_type == "FLOAT_VECTOR":
@@ -272,8 +272,8 @@ class VDBService(object):
272
272
  if not schema_milvus.create_collection():
273
273
  raise RuntimeError(f"SchemaMilvus failed to create collection '{collection_name}'.")
274
274
  except Exception as e:
275
- self.logger.error(f"An error occurred while ensuring collection '{collection_name}' exists: {e}")
276
- raise RuntimeError(f"Failed to ensure collection '{collection_name}' exists.") from e
275
+ self.logger.error(f"An error occurred while ensuring collection '{collection_name}' : {e}")
276
+ raise RuntimeError(f"Failed to ensure collection '{collection_name}' .") from e
277
277
 
278
278
  def get_vector_store(self, collection_name: str, embeddings: Embeddings = None, metric_type: str = "L2") -> Zilliz:
279
279
  """
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "crewplus"
9
- version = "0.2.11"
9
+ version = "0.2.13"
10
10
  description = "Base services for CrewPlus AI applications"
11
11
  authors = [
12
12
  { name = "Tim Liu", email = "tim@opsmateai.com" },
@@ -37,3 +37,6 @@ includes = [
37
37
  "crewplus/",
38
38
  "docs/",
39
39
  ]
40
+
41
+ [tool.poetry.group.dev.dependencies]
42
+ twine = "^6.1.0"
File without changes
File without changes
File without changes
File without changes