@absolutejs/absolute 0.19.0-beta.541 → 0.19.0-beta.542

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.
package/dist/ai/index.js CHANGED
@@ -5967,6 +5967,33 @@ var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry
5967
5967
  id: entry.providerKey,
5968
5968
  label: entry.label
5969
5969
  }));
5970
+ var buildRAGGroundingProviderOverviewPresentation = (input) => {
5971
+ const resolveLabel = (key) => input.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
5972
+ const winnerLabel = resolveLabel(input.summary.bestByPassingRate);
5973
+ const winnerEntry = input.entries.find((entry) => entry.providerKey === input.summary.bestByPassingRate);
5974
+ return {
5975
+ rows: [
5976
+ {
5977
+ label: "Best passing rate",
5978
+ value: resolveLabel(input.summary.bestByPassingRate)
5979
+ },
5980
+ {
5981
+ label: "Best citation F1",
5982
+ value: resolveLabel(input.summary.bestByAverageCitationF1)
5983
+ },
5984
+ {
5985
+ label: "Best resolved citations",
5986
+ value: resolveLabel(input.summary.bestByResolvedCitationRate)
5987
+ },
5988
+ {
5989
+ label: "Fastest",
5990
+ value: resolveLabel(input.summary.fastest)
5991
+ }
5992
+ ],
5993
+ winnerLabel,
5994
+ winnerSummary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 citation f1 ${winnerEntry.response.summary.averageCitationF1.toFixed(3)} \xB7 resolved ${formatEvaluationPassingRate(winnerEntry.response.summary.averageResolvedCitationRate)}` : "Stored workflow evaluation"
5995
+ };
5996
+ };
5970
5997
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
5971
5998
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
5972
5999
  return {
@@ -12027,6 +12054,7 @@ export {
12027
12054
  buildRAGRerankerComparisonCardPresentations,
12028
12055
  buildRAGLexicalHaystack,
12029
12056
  buildRAGGroundingReferences,
12057
+ buildRAGGroundingProviderOverviewPresentation,
12030
12058
  buildRAGGroundingProviderCaseComparisonPresentations,
12031
12059
  buildRAGGroundingProviderCardPresentations,
12032
12060
  buildRAGGroundedAnswer,
@@ -12057,5 +12085,5 @@ export {
12057
12085
  aiChat
12058
12086
  };
12059
12087
 
12060
- //# debugId=1456B2D1F196B2B664756E2164756E21
12088
+ //# debugId=BE389F9A171F073C64756E2164756E21
12061
12089
  //# sourceMappingURL=index.js.map