@absolutejs/absolute 0.19.0-beta.613 → 0.19.0-beta.614

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.
@@ -1486,10 +1486,10 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
1486
1486
  const vectorHits = channels.includes("vector") ? 1 : 0;
1487
1487
  const lexicalHits = channels.includes("lexical") ? 1 : 0;
1488
1488
  const hybridHits = isHybrid ? 1 : 0;
1489
- const queryOrigin = source.metadata?.retrievalQueryOrigin;
1490
- const primaryHits = queryOrigin === "primary" ? 1 : 0;
1491
- const transformedHits = queryOrigin === "transformed" ? 1 : 0;
1492
- const variantHits = queryOrigin === "variant" ? 1 : 0;
1489
+ const queryOrigins = Array.isArray(source.metadata?.retrievalQueryOrigins) ? source.metadata.retrievalQueryOrigins.filter((value) => value === "primary" || value === "transformed" || value === "variant") : source.metadata?.retrievalQueryOrigin === "primary" || source.metadata?.retrievalQueryOrigin === "transformed" || source.metadata?.retrievalQueryOrigin === "variant" ? [source.metadata.retrievalQueryOrigin] : [];
1490
+ const primaryHits = queryOrigins.includes("primary") ? 1 : 0;
1491
+ const transformedHits = queryOrigins.includes("transformed") ? 1 : 0;
1492
+ const variantHits = queryOrigins.includes("variant") ? 1 : 0;
1493
1493
  if (!existing) {
1494
1494
  sections.set(key, {
1495
1495
  bestScore: source.score,
@@ -2523,5 +2523,5 @@ export {
2523
2523
  buildRAGAnswerWorkflowState
2524
2524
  };
2525
2525
 
2526
- //# debugId=9E9A29574772A56C64756E2164756E21
2526
+ //# debugId=7DA33B7CEC58778C64756E2164756E21
2527
2527
  //# sourceMappingURL=ui.js.map