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

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
@@ -5859,6 +5859,28 @@ var formatTraceStageSummary = (stageCounts) => {
5859
5859
  };
5860
5860
  var formatTraceRatio = (count, total) => `${count}/${total}`;
5861
5861
  var formatTraceCountDelta = (value) => `${value >= 0 ? "+" : ""}${value}`;
5862
+ var buildComparisonOverviewPresentation = (input) => {
5863
+ const winnerLabel = input.resolveLabel(input.summary.bestByPassingRate);
5864
+ const winnerEntry = input.resolveEntry(input.summary.bestByPassingRate);
5865
+ return {
5866
+ rows: [
5867
+ {
5868
+ label: "Best passing rate",
5869
+ value: input.resolveLabel(input.summary.bestByPassingRate)
5870
+ },
5871
+ {
5872
+ label: "Best average F1",
5873
+ value: input.resolveLabel(input.summary.bestByAverageF1)
5874
+ },
5875
+ {
5876
+ label: "Fastest",
5877
+ value: input.resolveLabel(input.summary.fastest)
5878
+ }
5879
+ ],
5880
+ winnerLabel,
5881
+ winnerSummary: winnerEntry ? `passing ${formatEvaluationPassingRate(winnerEntry.response.passingRate)} \xB7 f1 ${winnerEntry.response.summary.averageF1.toFixed(3)} \xB7 latency ${winnerEntry.response.summary.averageLatencyMs.toFixed(1)}ms` : "Stored benchmark comparison"
5882
+ };
5883
+ };
5862
5884
  var buildRAGComparisonTraceSummaryRows = (entry) => {
5863
5885
  const trace = entry.traceSummary;
5864
5886
  if (!trace) {
@@ -5945,6 +5967,12 @@ var buildRAGRetrievalComparisonCardPresentations = (comparison) => {
5945
5967
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
5946
5968
  }));
5947
5969
  };
5970
+ var buildRAGRetrievalComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
5971
+ entries: comparison.entries,
5972
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.retrievalId === id),
5973
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.retrievalId === id)?.label ?? id ?? "n/a",
5974
+ summary: comparison.summary
5975
+ });
5948
5976
  var buildRAGRerankerComparisonCardPresentations = (comparison) => {
5949
5977
  const leader = comparison.entries[0];
5950
5978
  return comparison.entries.map((entry) => ({
@@ -5956,6 +5984,12 @@ var buildRAGRerankerComparisonCardPresentations = (comparison) => {
5956
5984
  traceSummaryRows: buildRAGComparisonTraceSummaryRows(entry)
5957
5985
  }));
5958
5986
  };
5987
+ var buildRAGRerankerComparisonOverviewPresentation = (comparison) => buildComparisonOverviewPresentation({
5988
+ entries: comparison.entries,
5989
+ resolveEntry: (id) => comparison.entries.find((entry) => entry.rerankerId === id),
5990
+ resolveLabel: (id) => comparison.entries.find((entry) => entry.rerankerId === id)?.label ?? id ?? "n/a",
5991
+ summary: comparison.summary
5992
+ });
5959
5993
  var buildRAGGroundingProviderCardPresentations = (entries) => entries.map((entry) => ({
5960
5994
  headline: [
5961
5995
  entry.label,
@@ -12050,7 +12084,9 @@ export {
12050
12084
  buildRAGSourceSummaries,
12051
12085
  buildRAGSourceGroups,
12052
12086
  buildRAGRetrievalTracePresentation,
12087
+ buildRAGRetrievalComparisonOverviewPresentation,
12053
12088
  buildRAGRetrievalComparisonCardPresentations,
12089
+ buildRAGRerankerComparisonOverviewPresentation,
12054
12090
  buildRAGRerankerComparisonCardPresentations,
12055
12091
  buildRAGLexicalHaystack,
12056
12092
  buildRAGGroundingReferences,
@@ -12085,5 +12121,5 @@ export {
12085
12121
  aiChat
12086
12122
  };
12087
12123
 
12088
- //# debugId=BE389F9A171F073C64756E2164756E21
12124
+ //# debugId=3C2A786B1639044464756E2164756E21
12089
12125
  //# sourceMappingURL=index.js.map