@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.
package/dist/ai/rag/ui.js CHANGED
@@ -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,
@@ -2554,5 +2554,5 @@ export {
2554
2554
  buildRAGAdminActionPresentation
2555
2555
  };
2556
2556
 
2557
- //# debugId=731B1F9EA877A62664756E2164756E21
2557
+ //# debugId=8233B694066F8EAC64756E2164756E21
2558
2558
  //# sourceMappingURL=ui.js.map