@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.
@@ -4668,10 +4668,10 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
4668
4668
  const vectorHits = channels.includes("vector") ? 1 : 0;
4669
4669
  const lexicalHits = channels.includes("lexical") ? 1 : 0;
4670
4670
  const hybridHits = isHybrid ? 1 : 0;
4671
- const queryOrigin = source.metadata?.retrievalQueryOrigin;
4672
- const primaryHits = queryOrigin === "primary" ? 1 : 0;
4673
- const transformedHits = queryOrigin === "transformed" ? 1 : 0;
4674
- const variantHits = queryOrigin === "variant" ? 1 : 0;
4671
+ 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] : [];
4672
+ const primaryHits = queryOrigins.includes("primary") ? 1 : 0;
4673
+ const transformedHits = queryOrigins.includes("transformed") ? 1 : 0;
4674
+ const variantHits = queryOrigins.includes("variant") ? 1 : 0;
4675
4675
  if (!existing) {
4676
4676
  sections.set(key, {
4677
4677
  bestScore: source.score,
@@ -8421,5 +8421,5 @@ export {
8421
8421
  AIStreamProvider
8422
8422
  };
8423
8423
 
8424
- //# debugId=FC96CC181261E23D64756E2164756E21
8424
+ //# debugId=ED01DB0E2BDC2F9D64756E2164756E21
8425
8425
  //# sourceMappingURL=index.js.map