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

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,
@@ -5994,6 +6028,26 @@ var buildRAGGroundingProviderOverviewPresentation = (input) => {
5994
6028
  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
6029
  };
5996
6030
  };
6031
+ var buildRAGQualityOverviewPresentation = (input) => ({
6032
+ rows: [
6033
+ ...buildRAGRetrievalComparisonOverviewPresentation(input.retrievalComparison).rows,
6034
+ ...buildRAGRerankerComparisonOverviewPresentation(input.rerankerComparison).rows,
6035
+ {
6036
+ label: "Grounding",
6037
+ value: formatGroundingHistorySummaryValue(input.groundingEvaluation)
6038
+ },
6039
+ ...input.groundingProviderOverview?.rows ?? [
6040
+ {
6041
+ label: "Grounding providers",
6042
+ value: "Configure an AI provider to compare grounded answers."
6043
+ }
6044
+ ]
6045
+ ],
6046
+ insights: [
6047
+ "The example should answer three questions quickly: which strategy wins, whether grounding is stable, and whether the result regressed.",
6048
+ "Detailed case-by-case evidence stays behind collapsible sections so the page reads like a product surface instead of a console buffer."
6049
+ ]
6050
+ });
5997
6051
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
5998
6052
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
5999
6053
  return {
@@ -12050,8 +12104,11 @@ export {
12050
12104
  buildRAGSourceSummaries,
12051
12105
  buildRAGSourceGroups,
12052
12106
  buildRAGRetrievalTracePresentation,
12107
+ buildRAGRetrievalComparisonOverviewPresentation,
12053
12108
  buildRAGRetrievalComparisonCardPresentations,
12109
+ buildRAGRerankerComparisonOverviewPresentation,
12054
12110
  buildRAGRerankerComparisonCardPresentations,
12111
+ buildRAGQualityOverviewPresentation,
12055
12112
  buildRAGLexicalHaystack,
12056
12113
  buildRAGGroundingReferences,
12057
12114
  buildRAGGroundingProviderOverviewPresentation,
@@ -12085,5 +12142,5 @@ export {
12085
12142
  aiChat
12086
12143
  };
12087
12144
 
12088
- //# debugId=BE389F9A171F073C64756E2164756E21
12145
+ //# debugId=E0498D47AC99E3D364756E2164756E21
12089
12146
  //# sourceMappingURL=index.js.map