@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.
@@ -5265,10 +5265,10 @@ var buildRAGSectionRetrievalDiagnostics = (sources, trace) => {
5265
5265
  const vectorHits = channels.includes("vector") ? 1 : 0;
5266
5266
  const lexicalHits = channels.includes("lexical") ? 1 : 0;
5267
5267
  const hybridHits = isHybrid ? 1 : 0;
5268
- const queryOrigin = source.metadata?.retrievalQueryOrigin;
5269
- const primaryHits = queryOrigin === "primary" ? 1 : 0;
5270
- const transformedHits = queryOrigin === "transformed" ? 1 : 0;
5271
- const variantHits = queryOrigin === "variant" ? 1 : 0;
5268
+ 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] : [];
5269
+ const primaryHits = queryOrigins.includes("primary") ? 1 : 0;
5270
+ const transformedHits = queryOrigins.includes("transformed") ? 1 : 0;
5271
+ const variantHits = queryOrigins.includes("variant") ? 1 : 0;
5272
5272
  if (!existing) {
5273
5273
  sections.set(key, {
5274
5274
  bestScore: source.score,
@@ -7436,5 +7436,5 @@ export {
7436
7436
  buildRAGEvaluationLeaderboard
7437
7437
  };
7438
7438
 
7439
- //# debugId=7134089E98D0712964756E2164756E21
7439
+ //# debugId=52CF728A813C7B1B64756E2164756E21
7440
7440
  //# sourceMappingURL=index.js.map