@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,
@@ -8220,5 +8220,5 @@ export {
8220
8220
  createAIStream
8221
8221
  };
8222
8222
 
8223
- //# debugId=6D07F2B76E9A078764756E2164756E21
8223
+ //# debugId=C6968126E498A97164756E2164756E21
8224
8224
  //# sourceMappingURL=index.js.map