crewplus 0.2.1__py3-none-any.whl → 0.2.2__py3-none-any.whl

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.

@@ -257,14 +257,16 @@ class VDBService(object):
257
257
 
258
258
  return vdb
259
259
 
260
- def delete_old_indexes(self, url: str = None, vdb: Zilliz = None) -> None:
260
+ def delete_old_indexes(self, url: str = None, vdb: Zilliz = None) -> (bool | None):
261
261
  """ Delete old indexes of the same source_url
262
262
 
263
263
  Args:
264
264
  url (str): source url
265
265
  """
266
+ self.logger.info(f"Delete old indexes of the same source_url:{url}")
267
+
266
268
  if url is None or vdb is None:
267
- return
269
+ return None
268
270
 
269
271
  # Delete indexes of the same source_url
270
272
  expr = "source in [\"" + url + "\"]"
@@ -272,10 +274,11 @@ class VDBService(object):
272
274
 
273
275
  # Delete entities by pks
274
276
  if pks is not None and len(pks) > 0 :
275
- old_items = vdb.delete(pks)
276
- self.logger.info("ingesting document -- delete old indexes -- " + str(old_items))
277
+ res = vdb.delete(pks)
278
+ self.logger.info("Deleted old indexes result: " + str(res))
279
+ return res
277
280
 
278
- def delete_old_indexes_by_id(self, id: str = None, vdb: Zilliz = None) -> None:
281
+ def delete_old_indexes_by_id(self, id: str = None, vdb: Zilliz = None) -> (bool | None):
279
282
  """ Delete old indexes of the same source_id
280
283
 
281
284
  Args:
@@ -284,7 +287,7 @@ class VDBService(object):
284
287
  self.logger.info(f"Delete old indexes of the same source_id:{id}")
285
288
 
286
289
  if id is None or vdb is None:
287
- return
290
+ return None
288
291
 
289
292
  # Delete indexes of the same source_id
290
293
  expr = "source_id in [\"" + id + "\"]"
@@ -292,8 +295,9 @@ class VDBService(object):
292
295
 
293
296
  # Delete entities by pks
294
297
  if pks is not None and len(pks) > 0 :
295
- old_items = vdb.delete(pks)
296
- self.logger.info("ingesting document -- delete old indexes -- " + str(old_items))
298
+ res = vdb.delete(pks)
299
+ self.logger.info("Deleted old indexes result: " + str(res))
300
+ return res
297
301
 
298
302
  def drop_collection(self, collection_name: str) -> None:
299
303
  """
@@ -326,12 +330,13 @@ class VDBService(object):
326
330
  self.logger.info(f"Removed '{collection_name}' from instance cache.")
327
331
 
328
332
  def delete_data_by_filter(self, collection_name: str = None, filter: str = None) -> None:
329
- """ Delete a collection
333
+ """ Delete data by filter
330
334
 
331
335
  Args:
332
- collection_name (str): scollection_name
336
+ collection_name (str): collection_name
337
+ filter (str): filter
333
338
  """
334
- self.logger.info(f"drop a collection by name:{collection_name}")
339
+ self.logger.info(f"Delete data by filter:{filter}")
335
340
 
336
341
  try:
337
342
  client=self.get_vector_client()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: crewplus
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Base services for CrewPlus AI applications
5
5
  Author-Email: Tim Liu <tim@opsmateai.com>
6
6
  License: MIT
@@ -45,7 +45,7 @@ CrewPlus is designed as a modular and extensible ecosystem of packages. This all
45
45
 
46
46
  - **Chat Services:** A unified interface for interacting with various chat models (e.g., `GeminiChatModel`).
47
47
  - **Model Load Balancer:** Intelligently distribute requests across multiple LLM endpoints.
48
- - **Vector DB Services:** Abstractions for working with popular vector stores for retrieval-augmented generation (RAG).
48
+ - **Vector DB Services:** working with popular vector stores (e.g. Milvus, Zilliz Cloud) for retrieval-augmented generation (RAG) and agent memory.
49
49
 
50
50
 
51
51
  ## Documentation
@@ -1,7 +1,7 @@
1
- crewplus-0.2.1.dist-info/METADATA,sha256=IKVh7qW2mV9NfYXs66enxgcBOk_GTP9xeU3kwI6lysc,4881
2
- crewplus-0.2.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- crewplus-0.2.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- crewplus-0.2.1.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
1
+ crewplus-0.2.2.dist-info/METADATA,sha256=HDMXrtxk0z3R13fno8IVVGUErJjRq2gINuilhmcGOQE,4909
2
+ crewplus-0.2.2.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ crewplus-0.2.2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ crewplus-0.2.2.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
5
5
  crewplus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  crewplus/services/__init__.py,sha256=MmH2v3N0ZMsuqFNAupkXENjUqvgf5ehQ99H6EzPqLZU,48
7
7
  crewplus/services/gemini_chat_model.py,sha256=i9p5KvSJYaHSUBLPKM_bpyGVLWCDQoNeah_WjQVJRXs,26227
@@ -12,5 +12,5 @@ crewplus/utils/schema_document_updater.py,sha256=frvffxn2vbi71fHFPoGb9hq7gH2azmm
12
12
  crewplus/vectorstores/milvus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
13
  crewplus/vectorstores/milvus/milvus_schema_manager.py,sha256=qHMVIM0NS3rLfACb8d3-tQS9hJo6_7_YP8AxVx4t1Cc,9019
14
14
  crewplus/vectorstores/milvus/schema_milvus.py,sha256=GhHTtCH5HsIJc3RHa25RXl3aZdkS3Rba5KeuUk_Hi0k,11425
15
- crewplus/vectorstores/milvus/vdb_service.py,sha256=KiGuHWU9oz2QCCaxGECtN-F69m8ZOwjzPO0umk6ZjzA,14592
16
- crewplus-0.2.1.dist-info/RECORD,,
15
+ crewplus/vectorstores/milvus/vdb_service.py,sha256=M5HdLAvjDeVAqIoI48miXaa_OAjW8ixru04DuVX93w8,14714
16
+ crewplus-0.2.2.dist-info/RECORD,,