ragaai-catalyst 2.2.3b3__py3-none-any.whl → 2.2.3b5__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.
- ragaai_catalyst/ragaai_catalyst.py +4 -9
- ragaai_catalyst/tracers/tracer.py +4 -1
- {ragaai_catalyst-2.2.3b3.dist-info → ragaai_catalyst-2.2.3b5.dist-info}/METADATA +1 -1
- {ragaai_catalyst-2.2.3b3.dist-info → ragaai_catalyst-2.2.3b5.dist-info}/RECORD +7 -7
- {ragaai_catalyst-2.2.3b3.dist-info → ragaai_catalyst-2.2.3b5.dist-info}/WHEEL +0 -0
- {ragaai_catalyst-2.2.3b3.dist-info → ragaai_catalyst-2.2.3b5.dist-info}/licenses/LICENSE +0 -0
- {ragaai_catalyst-2.2.3b3.dist-info → ragaai_catalyst-2.2.3b5.dist-info}/top_level.txt +0 -0
@@ -48,9 +48,6 @@ class RagaAICatalyst:
|
|
48
48
|
logger.error(
|
49
49
|
"RAGAAI_CATALYST_ACCESS_KEY and RAGAAI_CATALYST_SECRET_KEY environment variables must be set"
|
50
50
|
)
|
51
|
-
raise ValueError(
|
52
|
-
"RAGAAI_CATALYST_ACCESS_KEY and RAGAAI_CATALYST_SECRET_KEY environment variables must be set"
|
53
|
-
)
|
54
51
|
|
55
52
|
RagaAICatalyst.access_key, RagaAICatalyst.secret_key = (
|
56
53
|
self._set_access_key_secret_key(access_key, secret_key)
|
@@ -79,9 +76,7 @@ class RagaAICatalyst:
|
|
79
76
|
os.environ["RAGAAI_CATALYST_BASE_URL"] = RagaAICatalyst.BASE_URL
|
80
77
|
RagaAICatalyst.get_token(force_refresh=True)
|
81
78
|
except requests.exceptions.RequestException:
|
82
|
-
|
83
|
-
"The provided base_url is not accessible. Please re-check the base_url."
|
84
|
-
)
|
79
|
+
logger.error("The provided base_url is not accessible. Please re-check the base_url.")
|
85
80
|
else:
|
86
81
|
# Get the token from the server
|
87
82
|
RagaAICatalyst.get_token(force_refresh=True)
|
@@ -264,7 +259,7 @@ class RagaAICatalyst:
|
|
264
259
|
if response.status_code == 400:
|
265
260
|
token_response = response.json()
|
266
261
|
if token_response.get("message") == "Please enter valid credentials":
|
267
|
-
|
262
|
+
logger.error(
|
268
263
|
"Authentication failed. Invalid credentials provided. Please check your Access key and Secret key. \nTo view or create new keys, navigate to Settings -> Authenticate in the RagaAI Catalyst dashboard."
|
269
264
|
)
|
270
265
|
|
@@ -379,13 +374,13 @@ class RagaAICatalyst:
|
|
379
374
|
# Check if the project already exists
|
380
375
|
existing_projects = self.list_projects()
|
381
376
|
if project_name in existing_projects:
|
382
|
-
|
377
|
+
logger.error(
|
383
378
|
f"Project name '{project_name}' already exists. Please choose a different name."
|
384
379
|
)
|
385
380
|
|
386
381
|
usecase_list = self.project_use_cases()
|
387
382
|
if usecase not in usecase_list:
|
388
|
-
|
383
|
+
logger.error(f"Select a valid usecase from {usecase_list}")
|
389
384
|
|
390
385
|
json_data = {"name": project_name, "type": type, "usecase": usecase}
|
391
386
|
headers = {
|
@@ -365,6 +365,8 @@ class Tracer(AgenticTracing):
|
|
365
365
|
"output_cost_per_million_token": 2.40
|
366
366
|
})
|
367
367
|
"""
|
368
|
+
logger.info("DEPRECATED: The set_model_cost method is deprecated and will be removed in a future version. Custom model costs can now be configured directly through the RagaAI Catalyst Platform")
|
369
|
+
print("DEPRECATED: The set_model_cost method is deprecated and will be removed in a future version. Custom model costs can now be configured directly through the RagaAI Catalyst Platform")
|
368
370
|
# if not isinstance(cost_config, dict):
|
369
371
|
# logger.error("cost_config must be a dictionary")
|
370
372
|
|
@@ -418,7 +420,8 @@ class Tracer(AgenticTracing):
|
|
418
420
|
'telemetry.sdk.language','service.name', 'llm.model_name',
|
419
421
|
'llm.invocation_parameters', 'metadata', 'openinference.span.kind',
|
420
422
|
'llm.token_count.prompt', 'llm.token_count.completion', 'llm.token_count.total',
|
421
|
-
"input_cost", "output_cost", "total_cost", "status_code"
|
423
|
+
"input_cost", "output_cost", "total_cost", "status_code", "output.mime_type",
|
424
|
+
"span_id", "trace_id"
|
422
425
|
}
|
423
426
|
# Apply masking only if the key is NOT in the excluded list
|
424
427
|
if parent_key and parent_key.lower() not in excluded_keys:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: ragaai_catalyst
|
3
|
-
Version: 2.2.
|
3
|
+
Version: 2.2.3b5
|
4
4
|
Summary: RAGA AI CATALYST
|
5
5
|
Author-email: Kiran Scaria <kiran.scaria@raga.ai>, Kedar Gaikwad <kedar.gaikwad@raga.ai>, Dushyant Mahajan <dushyant.mahajan@raga.ai>, Siddhartha Kosti <siddhartha.kosti@raga.ai>, Ritika Goel <ritika.goel@raga.ai>, Vijay Chaurasia <vijay.chaurasia@raga.ai>, Tushar Kumar <tushar.kumar@raga.ai>, Rishabh Pandey <rishabh.pandey@raga.ai>, Jyotsana C G <jyotsana@raga.ai>
|
6
6
|
Requires-Python: <=3.13.2,>=3.10
|
@@ -8,7 +8,7 @@ ragaai_catalyst/guardrails_manager.py,sha256=_VrARJ1udmCF8TklNKy7XTQUaM8ATDhTOAG
|
|
8
8
|
ragaai_catalyst/internal_api_completion.py,sha256=DdICI5yfEudiOAIC8L4oxH0Qz7kX-BZCdo9IWsi2gNo,2965
|
9
9
|
ragaai_catalyst/prompt_manager.py,sha256=W8ypramzOprrJ7-22d5vkBXIuIQ8v9XAzKDGxKsTK28,16550
|
10
10
|
ragaai_catalyst/proxy_call.py,sha256=CHxldeceZUaLU-to_hs_Kf1z_b2vHMssLS_cOBedu78,5499
|
11
|
-
ragaai_catalyst/ragaai_catalyst.py,sha256=
|
11
|
+
ragaai_catalyst/ragaai_catalyst.py,sha256=ZlcpOgJA9lVRi51YFy4dVfsxU0I79LJu0MnVI5BIL-c,25201
|
12
12
|
ragaai_catalyst/redteaming_old.py,sha256=W2d89Ok8W-C8g7TBM3fDIFLof3q9FuYSr0jcryH2XQo,7097
|
13
13
|
ragaai_catalyst/synthetic_data_generation.py,sha256=7lIWa3nwgW2-FlJrDaGxTN6OE4-dbbhLtKNOBQufhho,37952
|
14
14
|
ragaai_catalyst/utils.py,sha256=TlhEFwLyRU690HvANbyoRycR3nQ67lxVUQoUOfTPYQ0,3772
|
@@ -31,7 +31,7 @@ ragaai_catalyst/tracers/distributed.py,sha256=CGPuOh4CsgEk428PPibieLaAG2Tt3BVygF
|
|
31
31
|
ragaai_catalyst/tracers/langchain_callback.py,sha256=CB75zzG3-DkYTELj0vI1MOHQTY0MuQJfoHIXz9Cl8S8,34568
|
32
32
|
ragaai_catalyst/tracers/llamaindex_callback.py,sha256=ZY0BJrrlz-P9Mg2dX-ZkVKG3gSvzwqBtk7JL_05MiYA,14028
|
33
33
|
ragaai_catalyst/tracers/llamaindex_instrumentation.py,sha256=Ys_jLkvVqo12bKgXDmkp4TxJu9HkBATrFE8cIcTYxWw,14329
|
34
|
-
ragaai_catalyst/tracers/tracer.py,sha256=
|
34
|
+
ragaai_catalyst/tracers/tracer.py,sha256=a_7iYRrHVUtep6WfyLNJSkNGJX4AljlCf6UEkXnYFTU,42642
|
35
35
|
ragaai_catalyst/tracers/upload_traces.py,sha256=w1clGGfdOMpStUJX40NAlxe6dcFdN4pwcezyII0bGYA,6994
|
36
36
|
ragaai_catalyst/tracers/agentic_tracing/README.md,sha256=X4QwLb7-Jg7GQMIXj-SerZIgDETfw-7VgYlczOR8ZeQ,4508
|
37
37
|
ragaai_catalyst/tracers/agentic_tracing/__init__.py,sha256=yf6SKvOPSpH-9LiKaoLKXwqj5sez8F_5wkOb91yp0oE,260
|
@@ -88,8 +88,8 @@ ragaai_catalyst/tracers/utils/rag_extraction_logic_final.py,sha256=3ygkRT__lLDRf
|
|
88
88
|
ragaai_catalyst/tracers/utils/rag_trace_json_converter.py,sha256=54IEZO-YRjUAahV5nw8KClXqTF1LhfDry_TsZ4KGow4,20467
|
89
89
|
ragaai_catalyst/tracers/utils/trace_json_converter.py,sha256=pds1wuTv9VtwEXiMg-TWBtrK5-XReTcWQbJzWU9t3wE,11497
|
90
90
|
ragaai_catalyst/tracers/utils/utils.py,sha256=o-p9n2ZuophdrV0wrixu-BqRHCkovup_klc3mS8mU8g,2374
|
91
|
-
ragaai_catalyst-2.2.
|
92
|
-
ragaai_catalyst-2.2.
|
93
|
-
ragaai_catalyst-2.2.
|
94
|
-
ragaai_catalyst-2.2.
|
95
|
-
ragaai_catalyst-2.2.
|
91
|
+
ragaai_catalyst-2.2.3b5.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
92
|
+
ragaai_catalyst-2.2.3b5.dist-info/METADATA,sha256=KSZtiFblykWe7fgzM9xllpXYYFfE4MC6Dor_EejaSNM,17679
|
93
|
+
ragaai_catalyst-2.2.3b5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
94
|
+
ragaai_catalyst-2.2.3b5.dist-info/top_level.txt,sha256=HpgsdRgEJMk8nqrU6qdCYk3di7MJkDL0B19lkc7dLfM,16
|
95
|
+
ragaai_catalyst-2.2.3b5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|