ragaai-catalyst 2.2.3b1__py3-none-any.whl → 2.2.3b3__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.
@@ -506,13 +506,6 @@ class Evaluation:
506
506
  response_text = parse_response()
507
507
  if response_text:
508
508
  df = pd.read_csv(io.StringIO(response_text))
509
-
510
- column_list = df.columns.to_list()
511
- # Remove unwanted columns
512
- column_list = [col for col in column_list if not col.startswith('_')]
513
- column_list = [col for col in column_list if '.' not in col]
514
- # Remove _claims_ columns
515
- column_list = [col for col in column_list if '_claims_' not in col]
516
- return df[column_list]
509
+ return df
517
510
  else:
518
511
  return pd.DataFrame()
@@ -365,20 +365,21 @@ class Tracer(AgenticTracing):
365
365
  "output_cost_per_million_token": 2.40
366
366
  })
367
367
  """
368
- if not isinstance(cost_config, dict):
369
- logger.error("cost_config must be a dictionary")
370
-
371
- required_keys = {"model_name", "input_cost_per_million_token", "output_cost_per_million_token"}
372
- if not all(key in cost_config for key in required_keys):
373
- logger.error(f"cost_config must contain all required keys: {required_keys}")
374
-
375
- model_name = cost_config["model_name"]
376
- self.model_custom_cost[model_name] = {
377
- "input_cost_per_token": float(cost_config["input_cost_per_million_token"])/ 1000000,
378
- "output_cost_per_token": float(cost_config["output_cost_per_million_token"]) /1000000
379
- }
380
- self.dynamic_exporter.custom_model_cost = self.model_custom_cost
381
- logger.info(f"Updated custom model cost for {model_name}: {self.model_custom_cost[model_name]}")
368
+ # if not isinstance(cost_config, dict):
369
+ # logger.error("cost_config must be a dictionary")
370
+
371
+ # required_keys = {"model_name", "input_cost_per_million_token", "output_cost_per_million_token"}
372
+ # if not all(key in cost_config for key in required_keys):
373
+ # logger.error(f"cost_config must contain all required keys: {required_keys}")
374
+
375
+ # model_name = cost_config["model_name"]
376
+ # self.model_custom_cost[model_name] = {
377
+ # "input_cost_per_token": float(cost_config["input_cost_per_million_token"])/ 1000000,
378
+ # "output_cost_per_token": float(cost_config["output_cost_per_million_token"]) /1000000
379
+ # }
380
+ # self.dynamic_exporter.custom_model_cost = self.model_custom_cost
381
+ # logger.info(f"Updated custom model cost for {model_name}: {self.model_custom_cost[model_name]}")
382
+ return None
382
383
 
383
384
 
384
385
  def register_masking_function(self, masking_func):