@absolutejs/absolute 0.19.0-beta.550 → 0.19.0-beta.552

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.
@@ -338,6 +338,7 @@ export type RAGHybridFusionMode = 'rrf' | 'max';
338
338
  export type RAGHybridSearchOptions = {
339
339
  mode?: RAGHybridRetrievalMode;
340
340
  lexicalTopK?: number;
341
+ maxResultsPerSource?: number;
341
342
  fusion?: RAGHybridFusionMode;
342
343
  fusionConstant?: number;
343
344
  lexicalWeight?: number;
@@ -480,7 +481,7 @@ export type RAGCollectionSearchParams = {
480
481
  model?: string;
481
482
  signal?: AbortSignal;
482
483
  };
483
- export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'score_filter' | 'finalize';
484
+ export type RAGRetrievalTraceStage = 'input' | 'query_transform' | 'embed' | 'vector_search' | 'lexical_search' | 'fusion' | 'rerank' | 'source_balance' | 'score_filter' | 'finalize';
484
485
  export type RAGRetrievalTraceStep = {
485
486
  stage: RAGRetrievalTraceStage;
486
487
  label: string;
@@ -495,6 +496,7 @@ export type RAGRetrievalTrace = {
495
496
  topK: number;
496
497
  candidateTopK: number;
497
498
  lexicalTopK: number;
499
+ maxResultsPerSource?: number;
498
500
  mode: RAGHybridRetrievalMode;
499
501
  runVector: boolean;
500
502
  runLexical: boolean;
@@ -1395,6 +1397,9 @@ export type RAGGroundingProviderOverviewPresentation = {
1395
1397
  export type RAGQualityOverviewPresentation = {
1396
1398
  rows: RAGLabelValueRow[];
1397
1399
  };
1400
+ export type RAGGroundingOverviewPresentation = {
1401
+ rows: RAGLabelValueRow[];
1402
+ };
1398
1403
  export type RAGGroundingProviderCaseComparisonPresentation = {
1399
1404
  caseId: string;
1400
1405
  label: string;
@@ -2847,10 +2847,14 @@ var buildRAGGroundingProviderOverviewPresentation = (input) => {
2847
2847
  summary: 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"
2848
2848
  };
2849
2849
  };
2850
- var buildRAGQualityOverviewPresentation = (input) => ({
2850
+ var buildRAGRetrievalOverviewPresentation = (comparison) => ({
2851
+ rows: buildRAGRetrievalComparisonOverviewPresentation(comparison).rows
2852
+ });
2853
+ var buildRAGRerankerOverviewPresentation = (comparison) => ({
2854
+ rows: buildRAGRerankerComparisonOverviewPresentation(comparison).rows
2855
+ });
2856
+ var buildRAGGroundingOverviewPresentation = (input) => ({
2851
2857
  rows: [
2852
- ...buildRAGRetrievalComparisonOverviewPresentation(input.retrievalComparison).rows,
2853
- ...buildRAGRerankerComparisonOverviewPresentation(input.rerankerComparison).rows,
2854
2858
  {
2855
2859
  label: "Grounding",
2856
2860
  value: formatGroundingHistorySummaryValue(input.groundingEvaluation)
@@ -2863,6 +2867,16 @@ var buildRAGQualityOverviewPresentation = (input) => ({
2863
2867
  ]
2864
2868
  ]
2865
2869
  });
2870
+ var buildRAGQualityOverviewPresentation = (input) => ({
2871
+ rows: [
2872
+ ...buildRAGRetrievalOverviewPresentation(input.retrievalComparison).rows,
2873
+ ...buildRAGRerankerOverviewPresentation(input.rerankerComparison).rows,
2874
+ ...buildRAGGroundingOverviewPresentation({
2875
+ groundingEvaluation: input.groundingEvaluation,
2876
+ groundingProviderOverview: input.groundingProviderOverview
2877
+ }).rows
2878
+ ]
2879
+ });
2866
2880
  var buildRAGGroundingProviderCaseComparisonPresentations = (comparisons) => comparisons.map((comparison) => {
2867
2881
  const resolveLabel = (key) => comparison.entries.find((entry) => entry.providerKey === key)?.label ?? key ?? "n/a";
2868
2882
  return {
@@ -4461,5 +4475,5 @@ export {
4461
4475
  AIStreamKey
4462
4476
  };
4463
4477
 
4464
- //# debugId=A2EBD5654A45197164756E2164756E21
4478
+ //# debugId=BCFCEA2080243A1864756E2164756E21
4465
4479
  //# sourceMappingURL=index.js.map