llumo 0.2.20__py3-none-any.whl → 0.2.22__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.
llumo/client.py CHANGED
@@ -397,7 +397,7 @@ class LlumoClient:
397
397
  outputColName=outputColName,
398
398
  ):
399
399
  print(
400
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results.Please rerun the experiment to see the results on playground."
400
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results.Please rerun the experiment to see the results on playground."
401
401
  )
402
402
  else:
403
403
  return dataframe
@@ -869,7 +869,7 @@ class LlumoClient:
869
869
  activePlayground= activePlayground
870
870
  ):
871
871
  print(
872
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
872
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
873
873
  )
874
874
  else:
875
875
  if getDataFrame:
@@ -934,7 +934,7 @@ class LlumoClient:
934
934
  evalOutputMap=outputEvalMapping
935
935
  ):
936
936
  print(
937
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results.")
937
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results.")
938
938
  else:
939
939
  if getDataFrame == True and toEvaluate == True:
940
940
  return LlumoDataFrameResults(working_df, evals=self.evals, evalData=self.evalData,
@@ -1007,7 +1007,7 @@ class LlumoClient:
1007
1007
  # df = toolResponseDf.fillna("Some error occured")
1008
1008
  # if createPlayground(self.email, self.workspaceID, df,promptText=prompt_template,definationMapping=self.definationMapping):
1009
1009
  # print(
1010
- # "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
1010
+ # "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
1011
1011
  # )
1012
1012
  # else:
1013
1013
  # return toolResponseDf
@@ -1230,7 +1230,7 @@ class LlumoClient:
1230
1230
  evalOutputMap=outputEvalMapping
1231
1231
  ):
1232
1232
  print(
1233
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results.")
1233
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results.")
1234
1234
  else:
1235
1235
  if getDataFrame == True and toEvaluate == True:
1236
1236
  return LlumoDataFrameResults(working_df, evals=self.evals, evalData=self.evalData,
@@ -1467,7 +1467,7 @@ class LlumoClient:
1467
1467
  definationMapping=self.definationMapping,
1468
1468
  ):
1469
1469
  print(
1470
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results.")
1470
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results.")
1471
1471
  else:
1472
1472
  if getDataFrame:
1473
1473
  return working_df
@@ -1486,7 +1486,7 @@ class LlumoClient:
1486
1486
  flag = createPlayground(self.email, self.workspaceID, dataframe)
1487
1487
  if flag:
1488
1488
  print(
1489
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
1489
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
1490
1490
  )
1491
1491
  except Exception as e:
1492
1492
  raise "Some error ocuured please check your API key"
@@ -1526,7 +1526,7 @@ class LlumoClient:
1526
1526
  if createPlayground(self.email, self.workspaceID, df):
1527
1527
 
1528
1528
  print(
1529
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
1529
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
1530
1530
  )
1531
1531
 
1532
1532
  return True
@@ -1546,7 +1546,7 @@ class LlumoClient:
1546
1546
  self.validateApiKey()
1547
1547
  if createPlayground(self.email, self.workspaceID, dataframe):
1548
1548
  print(
1549
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
1549
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
1550
1550
  )
1551
1551
  return True
1552
1552
 
@@ -1606,7 +1606,7 @@ class LlumoClient:
1606
1606
  activePlayground= activePlayground
1607
1607
  ):
1608
1608
  print(
1609
- "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://llumo.ai/evallm to see the results."
1609
+ "LLUMO’s intuitive UI is ready—start exploring and experimenting with your logs now. Visit https://app.llumo.ai/evallm to see the results."
1610
1610
  )
1611
1611
 
1612
1612
  else:
llumo/helpingFuntions.py CHANGED
@@ -497,9 +497,16 @@ def getPlaygroundInsights(defination:str,uniqueClassesString: str, reasonList: l
497
497
 
498
498
  if responseGenerate.status_code == 200:
499
499
  responseJson = responseGenerate.json()
500
-
501
- filteredResponse = {key: value for key, value in responseJson.items() if key in ['analysis', 'nextStep']}
502
-
500
+ # print(responseJson)
501
+
502
+ # ✅ NEW: unwrap "data" if it exists, otherwise fall back to the old shape
503
+ payloadData = responseJson.get("data", responseJson)
504
+
505
+ # keep only the fields you care about
506
+ filteredResponse = {
507
+ key: payloadData[key] for key in ("analysis", "nextStep") if key in payloadData
508
+ }
509
+
503
510
  return filteredResponse
504
511
  except Exception as e:
505
512
  print(f"Exception occurred while generating insight: {e}")
@@ -529,7 +536,7 @@ def checkDependency(selectedEval:list = [], columns:list = [],tocheck=True,_retu
529
536
  'Context Utilization': ['output', 'context'],
530
537
  'Relevance Retention': ['context', 'query'],
531
538
  'Semantic Cohesion': ['context'],
532
- 'Final Task Alignment': ['messageHistory'],
539
+ 'Final Task Alignment': ['query','output'],
533
540
  'Tool Reliability': ['messageHistory'],
534
541
  'Response Correctness': ['output', 'query', 'context'],
535
542
  'Response Toxicity': ['output'],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: llumo
3
- Version: 0.2.20
3
+ Version: 0.2.22
4
4
  Summary: Python SDK for interacting with the Llumo ai API.
5
5
  Home-page: https://www.llumo.ai/
6
6
  Author: Llumo
@@ -1,16 +1,16 @@
1
1
  llumo/__init__.py,sha256=YVBkF1fiXFBd_zzySi9BDWgX8MJuLBJ-oF8538MrnDU,256
2
2
  llumo/chains.py,sha256=6lCgLseh04RUgc6SahhmvQj82quay2Mi1j8gPUlx8Es,2923
3
- llumo/client.py,sha256=oLFlVRUh6GIL9pcSuFE93P0uiUzpIvKEhXtYgGmzu24,63289
3
+ llumo/client.py,sha256=HuqYBLvqWfJA5HRkMqxpiEsTiLbVCv6mL4t6guRROWU,63329
4
4
  llumo/exceptions.py,sha256=Vp_MnanHbnd1Yjuoi6WLrKiwwZbJL3znCox2URMmGU4,2032
5
5
  llumo/execution.py,sha256=nWbJ7AvWuUPcOb6i-JzKRna_PvF-ewZTiK8skS-5n3w,1380
6
6
  llumo/functionCalling.py,sha256=D5jYapu1rIvdIJNUYPYMTyhQ1H-6nkwoOLMi6eekfUE,7241
7
7
  llumo/google.py,sha256=3S_aRtbtlctCXPGR0u4baLlkyFrsjd02vlUCkoRPA5U,2147
8
- llumo/helpingFuntions.py,sha256=ORBM5xPPMHc3ENnJOg4i3Enxtor4En5oDj1d0Zu1mLk,25284
8
+ llumo/helpingFuntions.py,sha256=DDvvr1LO57uMZQekncYrv8IpE4QDG2qf9pBP6DIvrLU,25523
9
9
  llumo/models.py,sha256=aVEZsOOoQx5LeNtwSyBxqvrINq0izH3QWu_YjsMPE6o,2910
10
10
  llumo/openai.py,sha256=DGhEwQIJIIycGpw3hYQnyxdj6RFVpZ-gay-fZGqtkhU,3013
11
11
  llumo/sockets.py,sha256=pBDo-U65hMIMwKMwZQl3iBkEjISEt-9BkXxZTWfSHF4,6116
12
- llumo-0.2.20.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
13
- llumo-0.2.20.dist-info/METADATA,sha256=1CIYg4KCZWpIqEHzr-6SXsgu4k-89n1xN2HWMrvzKsI,1558
14
- llumo-0.2.20.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
- llumo-0.2.20.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
16
- llumo-0.2.20.dist-info/RECORD,,
12
+ llumo-0.2.22.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
13
+ llumo-0.2.22.dist-info/METADATA,sha256=Xodp45eD66Ym9HGYaGahLGpaCQL1A-eDPZY0z7tXx38,1558
14
+ llumo-0.2.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
15
+ llumo-0.2.22.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
16
+ llumo-0.2.22.dist-info/RECORD,,
File without changes