@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,
@@ -8191,5 +8191,5 @@ export {
8191
8191
  AIStreamKey
8192
8192
  };
8193
8193
 
8194
- //# debugId=B01D3BA3D00EF09B64756E2164756E21
8194
+ //# debugId=3A1711476AAA495C64756E2164756E21
8195
8195
  //# sourceMappingURL=index.js.map