crewplus 0.2.0__tar.gz → 0.2.2__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.
- {crewplus-0.2.0 → crewplus-0.2.2}/PKG-INFO +2 -2
- {crewplus-0.2.0 → crewplus-0.2.2}/README.md +1 -1
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/vectorstores/milvus/vdb_service.py +16 -11
- {crewplus-0.2.0 → crewplus-0.2.2}/pyproject.toml +1 -1
- crewplus-0.2.0/tests/models_config.json +0 -77
- {crewplus-0.2.0 → crewplus-0.2.2}/LICENSE +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/__init__.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/services/__init__.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/services/gemini_chat_model.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/services/init_services.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/services/model_load_balancer.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/utils/schema_action.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/utils/schema_document_updater.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/vectorstores/milvus/__init__.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
- {crewplus-0.2.0 → crewplus-0.2.2}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: crewplus
|
|
3
|
-
Version: 0.2.
|
|
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:**
|
|
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
|
|
@@ -25,7 +25,7 @@ CrewPlus is designed as a modular and extensible ecosystem of packages. This all
|
|
|
25
25
|
|
|
26
26
|
- **Chat Services:** A unified interface for interacting with various chat models (e.g., `GeminiChatModel`).
|
|
27
27
|
- **Model Load Balancer:** Intelligently distribute requests across multiple LLM endpoints.
|
|
28
|
-
- **Vector DB Services:**
|
|
28
|
+
- **Vector DB Services:** working with popular vector stores (e.g. Milvus, Zilliz Cloud) for retrieval-augmented generation (RAG) and agent memory.
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
## Documentation
|
|
@@ -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
|
-
|
|
276
|
-
self.logger.info("
|
|
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
|
-
|
|
296
|
-
self.logger.info("
|
|
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
|
|
333
|
+
""" Delete data by filter
|
|
330
334
|
|
|
331
335
|
Args:
|
|
332
|
-
collection_name (str):
|
|
336
|
+
collection_name (str): collection_name
|
|
337
|
+
filter (str): filter
|
|
333
338
|
"""
|
|
334
|
-
self.logger.info(f"
|
|
339
|
+
self.logger.info(f"Delete data by filter:{filter}")
|
|
335
340
|
|
|
336
341
|
try:
|
|
337
342
|
client=self.get_vector_client()
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"models": [
|
|
3
|
-
{
|
|
4
|
-
"id": 1,
|
|
5
|
-
"provider": "azure-openai",
|
|
6
|
-
"type": "inference",
|
|
7
|
-
"deployment_name": "gpt-o3mini-eastus2-RPM25",
|
|
8
|
-
"api_version": "2024-12-01-preview",
|
|
9
|
-
"api_base": "https://crewplus-eastus2.openai.azure.com",
|
|
10
|
-
"api_key": "c67cb5d0d8ae4aef81d7f42aeae274b6"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"id": 2,
|
|
14
|
-
"provider": "azure-openai",
|
|
15
|
-
"type": "ingestion",
|
|
16
|
-
"deployment_name": "gpt-4o",
|
|
17
|
-
"api_version": "2025-01-01-preview",
|
|
18
|
-
"api_base": "https://crewplus-eastus2.openai.azure.com",
|
|
19
|
-
"api_key": "c67cb5d0d8ae4aef81d7f42aeae274b6",
|
|
20
|
-
"temperature": 0.0
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"id": 3,
|
|
24
|
-
"provider": "azure-openai",
|
|
25
|
-
"type": "inference",
|
|
26
|
-
"deployment_name": "gpt-4.1",
|
|
27
|
-
"api_version": "2025-01-01-preview",
|
|
28
|
-
"api_base": "https://crewplus-eastus2.openai.azure.com",
|
|
29
|
-
"api_key": "c67cb5d0d8ae4aef81d7f42aeae274b6",
|
|
30
|
-
"temperature": 0.0
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"id": 4,
|
|
34
|
-
"provider": "azure-openai",
|
|
35
|
-
"type": "ingestion",
|
|
36
|
-
"deployment_name": "cpai-gpt4o-westus",
|
|
37
|
-
"api_version": "2025-01-01-preview",
|
|
38
|
-
"api_base": "https://crewplus-westus.openai.azure.com",
|
|
39
|
-
"api_key": "b93bc4d2ef8e4298bd8390002922d084",
|
|
40
|
-
"temperature": 0.0
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"id": 5,
|
|
44
|
-
"provider": "azure-openai-embeddings",
|
|
45
|
-
"type": "embedding",
|
|
46
|
-
"deployment_name": "cpai-text-embedding-ada-002-westus",
|
|
47
|
-
"api_version": "2024-02-01",
|
|
48
|
-
"api_base": "https://crewplus-westus.openai.azure.com",
|
|
49
|
-
"api_key": "b93bc4d2ef8e4298bd8390002922d084"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"id": 6,
|
|
53
|
-
"provider": "azure-openai-embeddings",
|
|
54
|
-
"type": "embedding-large",
|
|
55
|
-
"deployment_name": "cpai-text-embedding-3-large-eastus2",
|
|
56
|
-
"api_version": "1",
|
|
57
|
-
"api_base": "https://crewplus-eastus2.openai.azure.com",
|
|
58
|
-
"api_key": "c67cb5d0d8ae4aef81d7f42aeae274b6"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"id": 7,
|
|
62
|
-
"provider": "google-genai",
|
|
63
|
-
"type": "inference",
|
|
64
|
-
"deployment_name": "gemini-2.5-flash",
|
|
65
|
-
"api_key": "AIzaSyDkZbcGcV7SB6OyN4XkK_sF2mzO2E-nKQk",
|
|
66
|
-
"temperature": 0.0
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"id": 8,
|
|
70
|
-
"provider": "google-genai",
|
|
71
|
-
"type": "ingestion",
|
|
72
|
-
"deployment_name": "gemini-2.5-pro",
|
|
73
|
-
"api_key": "AIzaSyDkZbcGcV7SB6OyN4XkK_sF2mzO2E-nKQk",
|
|
74
|
-
"temperature": 0.0
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
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
|