@absolutejs/absolute 0.19.0-beta.632 → 0.19.0-beta.633
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/client/index.js +17 -3
- package/dist/ai/client/index.js.map +4 -4
- package/dist/ai/client/ui.js +17 -3
- package/dist/ai/client/ui.js.map +4 -4
- package/dist/ai/index.js +43 -7
- package/dist/ai/index.js.map +8 -8
- package/dist/ai/rag/quality.js +17 -3
- package/dist/ai/rag/quality.js.map +4 -4
- package/dist/ai/rag/ui.js +17 -3
- package/dist/ai/rag/ui.js.map +4 -4
- package/dist/angular/ai/index.js +17 -3
- package/dist/angular/ai/index.js.map +4 -4
- package/dist/react/ai/index.js +17 -3
- package/dist/react/ai/index.js.map +4 -4
- package/dist/src/react/ai/useRAG.d.ts +2 -0
- package/dist/src/svelte/ai/createRAG.d.ts +2 -0
- package/dist/src/vue/ai/useRAG.d.ts +16 -0
- package/dist/src/vue/ai/useRAGEvaluate.d.ts +8 -0
- package/dist/src/vue/ai/useRAGIndexAdmin.d.ts +4 -0
- package/dist/src/vue/ai/useRAGSearch.d.ts +2 -0
- package/dist/svelte/ai/index.js +17 -3
- package/dist/svelte/ai/index.js.map +4 -4
- package/dist/types/ai.d.ts +8 -0
- package/dist/vue/ai/index.js +17 -3
- package/dist/vue/ai/index.js.map +4 -4
- package/package.json +7 -7
package/dist/ai/index.js
CHANGED
|
@@ -749,7 +749,7 @@ var formatLeadMediaCueSummary = (input) => {
|
|
|
749
749
|
return parts.length > 0 ? parts.join(" \xB7 ") : "none";
|
|
750
750
|
};
|
|
751
751
|
var formatRAGTraceMetadataRow = (key, value) => ({
|
|
752
|
-
label: key === "sqliteQueryMode" ? "SQLite query mode" : key === "postgresQueryMode" ? "Postgres query mode" : key === "sqliteQueryPushdownMode" ? "SQLite pushdown mode" : key === "postgresQueryPushdownMode" ? "Postgres pushdown mode" : key === "sqliteQueryPushdownApplied" ? "SQLite pushdown applied" : key === "postgresQueryPushdownApplied" ? "Postgres pushdown applied" : key === "sqliteQueryPushdownClauseCount" ? "SQLite pushdown clauses" : key === "postgresQueryPushdownClauseCount" ? "Postgres pushdown clauses" : key === "sqliteQueryPushdownCoverageRatio" ? "SQLite pushdown coverage" : key === "postgresQueryPushdownCoverageRatio" ? "Postgres pushdown coverage" : key === "sqliteQueryTotalFilterClauseCount" ? "SQLite total filter clauses" : key === "postgresQueryTotalFilterClauseCount" ? "Postgres total filter clauses" : key === "sqliteQueryJsRemainderClauseCount" ? "SQLite JS remainder clauses" : key === "sqliteQueryMultiplierUsed" ? "SQLite query multiplier" : key === "postgresQueryJsRemainderClauseCount" ? "Postgres JS remainder clauses" : key === "postgresQueryMultiplierUsed" ? "Postgres query multiplier" : key === "sqliteQueryJsRemainderRatio" ? "SQLite JS remainder share" : key === "postgresQueryJsRemainderRatio" ? "Postgres JS remainder share" : key === "sqliteQueryFilteredCandidates" ? "SQLite filtered candidates" : key === "postgresQueryFilteredCandidates" ? "Postgres filtered candidates" : key === "sqliteQueryInitialSearchK" ? "SQLite initial searchK" : key === "postgresQueryInitialSearchK" ? "Postgres initial searchK" : key === "sqliteQueryFinalSearchK" ? "SQLite final searchK" : key === "postgresQueryFinalSearchK" ? "Postgres final searchK" : key === "sqliteQuerySearchExpansionRatio" ? "SQLite search expansion" : key === "postgresQuerySearchExpansionRatio" ? "Postgres search expansion" : key === "sqliteQueryBackfillCount" ? "SQLite backfill count" : key === "postgresQueryBackfillCount" ? "Postgres backfill count" : key === "sqliteQueryReturnedCount" ? "SQLite returned hits" : key === "postgresQueryReturnedCount" ? "Postgres returned hits" : key === "sqliteQueryCandidateYieldRatio" ? "SQLite candidate yield" : key === "postgresQueryCandidateYieldRatio" ? "Postgres candidate yield" : key === "sqliteQueryTopKFillRatio" ? "SQLite topK fill rate" : key === "postgresQueryTopKFillRatio" ? "Postgres topK fill rate" : key === "sqliteQueryUnderfilledTopK" ? "SQLite underfilled topK" : key === "postgresQueryUnderfilledTopK" ? "Postgres underfilled topK" : key === "sqliteQueryCandidateBudgetExhausted" ? "SQLite candidate budget exhausted" : key === "postgresQueryCandidateBudgetExhausted" ? "Postgres candidate budget exhausted" : key === "sqliteQueryCandidateCoverage" ? "SQLite candidate coverage" : key === "postgresQueryCandidateCoverage" ? "Postgres candidate coverage" : key === "leadSpeakerCue" ? "Lead speaker cue" : key === "leadSpeakerAttributionCue" ? "Lead speaker attribution" : key === "leadChannelAttributionCue" ? "Lead channel attribution" : key === "leadChannelCue" ? "Lead channel cue" : key === "leadContinuityCue" ? "Lead continuity cue" : key,
|
|
752
|
+
label: key === "sqliteQueryMode" ? "SQLite query mode" : key === "postgresQueryMode" ? "Postgres query mode" : key === "sqliteQueryPushdownMode" ? "SQLite pushdown mode" : key === "postgresQueryPushdownMode" ? "Postgres pushdown mode" : key === "sqliteQueryPushdownApplied" ? "SQLite pushdown applied" : key === "postgresQueryPushdownApplied" ? "Postgres pushdown applied" : key === "sqliteQueryPushdownClauseCount" ? "SQLite pushdown clauses" : key === "postgresQueryPushdownClauseCount" ? "Postgres pushdown clauses" : key === "sqliteQueryPushdownCoverageRatio" ? "SQLite pushdown coverage" : key === "postgresQueryPushdownCoverageRatio" ? "Postgres pushdown coverage" : key === "sqliteQueryTotalFilterClauseCount" ? "SQLite total filter clauses" : key === "postgresQueryTotalFilterClauseCount" ? "Postgres total filter clauses" : key === "sqliteQueryJsRemainderClauseCount" ? "SQLite JS remainder clauses" : key === "sqliteQueryMultiplierUsed" ? "SQLite query multiplier" : key === "sqliteQueryCandidateLimitUsed" ? "SQLite candidate limit" : key === "postgresQueryJsRemainderClauseCount" ? "Postgres JS remainder clauses" : key === "postgresQueryMultiplierUsed" ? "Postgres query multiplier" : key === "postgresQueryCandidateLimitUsed" ? "Postgres candidate limit" : key === "sqliteQueryJsRemainderRatio" ? "SQLite JS remainder share" : key === "postgresQueryJsRemainderRatio" ? "Postgres JS remainder share" : key === "sqliteQueryFilteredCandidates" ? "SQLite filtered candidates" : key === "postgresQueryFilteredCandidates" ? "Postgres filtered candidates" : key === "sqliteQueryInitialSearchK" ? "SQLite initial searchK" : key === "postgresQueryInitialSearchK" ? "Postgres initial searchK" : key === "sqliteQueryFinalSearchK" ? "SQLite final searchK" : key === "postgresQueryFinalSearchK" ? "Postgres final searchK" : key === "sqliteQuerySearchExpansionRatio" ? "SQLite search expansion" : key === "postgresQuerySearchExpansionRatio" ? "Postgres search expansion" : key === "sqliteQueryBackfillCount" ? "SQLite backfill count" : key === "postgresQueryBackfillCount" ? "Postgres backfill count" : key === "sqliteQueryReturnedCount" ? "SQLite returned hits" : key === "postgresQueryReturnedCount" ? "Postgres returned hits" : key === "sqliteQueryCandidateYieldRatio" ? "SQLite candidate yield" : key === "postgresQueryCandidateYieldRatio" ? "Postgres candidate yield" : key === "sqliteQueryTopKFillRatio" ? "SQLite topK fill rate" : key === "postgresQueryTopKFillRatio" ? "Postgres topK fill rate" : key === "sqliteQueryUnderfilledTopK" ? "SQLite underfilled topK" : key === "postgresQueryUnderfilledTopK" ? "Postgres underfilled topK" : key === "sqliteQueryCandidateBudgetExhausted" ? "SQLite candidate budget exhausted" : key === "postgresQueryCandidateBudgetExhausted" ? "Postgres candidate budget exhausted" : key === "sqliteQueryCandidateCoverage" ? "SQLite candidate coverage" : key === "postgresQueryCandidateCoverage" ? "Postgres candidate coverage" : key === "leadSpeakerCue" ? "Lead speaker cue" : key === "leadSpeakerAttributionCue" ? "Lead speaker attribution" : key === "leadChannelAttributionCue" ? "Lead channel attribution" : key === "leadChannelCue" ? "Lead channel cue" : key === "leadContinuityCue" ? "Lead continuity cue" : key,
|
|
753
753
|
value: key === "sourceAwareChunkReason" ? formatSourceAwareChunkReason(value) ?? formatRAGTraceValue(value) : key === "leadSpeakerAttributionCue" ? formatLeadSpeakerAttributionCue(value) ?? formatRAGTraceValue(value) : key === "leadChannelAttributionCue" ? formatLeadChannelAttributionCue(value) ?? formatRAGTraceValue(value) : key === "leadContinuityCue" ? formatLeadContinuityCue(value) ?? formatRAGTraceValue(value) : formatRAGTraceValue(value)
|
|
754
754
|
});
|
|
755
755
|
var buildRAGRetrievalTracePresentation = (trace) => {
|
|
@@ -2522,6 +2522,7 @@ var formatSQLitePlannerCueSummary = (input) => {
|
|
|
2522
2522
|
typeof input?.sqliteQueryPushdownCoverageRatio === "number" ? `pushdown ${(input.sqliteQueryPushdownCoverageRatio * 100).toFixed(0)}%` : undefined,
|
|
2523
2523
|
typeof input?.sqliteQueryJsRemainderClauseCount === "number" ? `js remainder ${input.sqliteQueryJsRemainderClauseCount}` : undefined,
|
|
2524
2524
|
typeof input?.sqliteQueryMultiplierUsed === "number" ? `x${input.sqliteQueryMultiplierUsed}` : undefined,
|
|
2525
|
+
typeof input?.sqliteQueryCandidateLimitUsed === "number" ? `cap ${input.sqliteQueryCandidateLimitUsed}` : undefined,
|
|
2525
2526
|
typeof input?.sqliteQueryJsRemainderRatio === "number" ? `js ${(input.sqliteQueryJsRemainderRatio * 100).toFixed(0)}%` : undefined,
|
|
2526
2527
|
typeof input?.sqliteQueryTotalFilterClauseCount === "number" ? `total clauses ${input.sqliteQueryTotalFilterClauseCount}` : undefined,
|
|
2527
2528
|
typeof input?.sqliteQueryFilteredCandidates === "number" ? `filtered ${input.sqliteQueryFilteredCandidates}` : undefined,
|
|
@@ -2548,6 +2549,7 @@ var formatPostgresPlannerCueSummary = (input) => {
|
|
|
2548
2549
|
typeof input?.postgresQueryPushdownCoverageRatio === "number" ? `pushdown ${(input.postgresQueryPushdownCoverageRatio * 100).toFixed(0)}%` : undefined,
|
|
2549
2550
|
typeof input?.postgresQueryJsRemainderClauseCount === "number" ? `js remainder ${input.postgresQueryJsRemainderClauseCount}` : undefined,
|
|
2550
2551
|
typeof input?.postgresQueryMultiplierUsed === "number" ? `x${input.postgresQueryMultiplierUsed}` : undefined,
|
|
2552
|
+
typeof input?.postgresQueryCandidateLimitUsed === "number" ? `cap ${input.postgresQueryCandidateLimitUsed}` : undefined,
|
|
2551
2553
|
typeof input?.postgresQueryJsRemainderRatio === "number" ? `js ${(input.postgresQueryJsRemainderRatio * 100).toFixed(0)}%` : undefined,
|
|
2552
2554
|
typeof input?.postgresQueryTotalFilterClauseCount === "number" ? `total clauses ${input.postgresQueryTotalFilterClauseCount}` : undefined,
|
|
2553
2555
|
typeof input?.postgresQueryFilteredCandidates === "number" ? `filtered ${input.postgresQueryFilteredCandidates}` : undefined,
|
|
@@ -2574,6 +2576,7 @@ var formatComparisonSQLitePlannerCueSummary = (entry) => {
|
|
|
2574
2576
|
sqliteQueryInitialSearchK: snapshot.sqliteQueryInitialSearchK,
|
|
2575
2577
|
sqliteQuerySearchExpansionRatio: snapshot.sqliteQuerySearchExpansionRatio,
|
|
2576
2578
|
sqliteQueryJsRemainderClauseCount: snapshot.sqliteQueryJsRemainderClauseCount,
|
|
2579
|
+
sqliteQueryCandidateLimitUsed: snapshot.sqliteQueryCandidateLimitUsed,
|
|
2577
2580
|
sqliteQueryMode: snapshot.sqliteQueryMode,
|
|
2578
2581
|
sqliteQueryPushdownApplied: snapshot.sqliteQueryPushdownApplied,
|
|
2579
2582
|
sqliteQueryPushdownClauseCount: snapshot.sqliteQueryPushdownClauseCount,
|
|
@@ -2598,6 +2601,7 @@ var formatComparisonPostgresPlannerCueSummary = (entry) => {
|
|
|
2598
2601
|
postgresQueryInitialSearchK: snapshot.postgresQueryInitialSearchK,
|
|
2599
2602
|
postgresQuerySearchExpansionRatio: snapshot.postgresQuerySearchExpansionRatio,
|
|
2600
2603
|
postgresQueryJsRemainderClauseCount: snapshot.postgresQueryJsRemainderClauseCount,
|
|
2604
|
+
postgresQueryCandidateLimitUsed: snapshot.postgresQueryCandidateLimitUsed,
|
|
2601
2605
|
postgresQueryMultiplierUsed: snapshot.postgresQueryMultiplierUsed,
|
|
2602
2606
|
postgresQueryMode: snapshot.postgresQueryMode,
|
|
2603
2607
|
postgresQueryPushdownApplied: snapshot.postgresQueryPushdownApplied,
|
|
@@ -2763,6 +2767,7 @@ var formatHistorySQLitePlannerShift = (history) => {
|
|
|
2763
2767
|
sqliteQueryInitialSearchK: entry.previousSqliteQueryInitialSearchK,
|
|
2764
2768
|
sqliteQuerySearchExpansionRatio: entry.previousSqliteQuerySearchExpansionRatio,
|
|
2765
2769
|
sqliteQueryJsRemainderClauseCount: entry.previousSqliteQueryJsRemainderClauseCount,
|
|
2770
|
+
sqliteQueryCandidateLimitUsed: entry.previousSqliteQueryCandidateLimitUsed,
|
|
2766
2771
|
sqliteQueryMode: entry.previousSqliteQueryMode,
|
|
2767
2772
|
sqliteQueryPushdownApplied: entry.previousSqliteQueryPushdownApplied,
|
|
2768
2773
|
sqliteQueryPushdownClauseCount: entry.previousSqliteQueryPushdownClauseCount,
|
|
@@ -2797,6 +2802,7 @@ var formatHistoryPostgresPlannerShift = (history) => {
|
|
|
2797
2802
|
postgresQueryInitialSearchK: entry.previousPostgresQueryInitialSearchK,
|
|
2798
2803
|
postgresQuerySearchExpansionRatio: entry.previousPostgresQuerySearchExpansionRatio,
|
|
2799
2804
|
postgresQueryJsRemainderClauseCount: entry.previousPostgresQueryJsRemainderClauseCount,
|
|
2805
|
+
postgresQueryCandidateLimitUsed: entry.previousPostgresQueryCandidateLimitUsed,
|
|
2800
2806
|
postgresQueryMultiplierUsed: entry.previousPostgresQueryMultiplierUsed,
|
|
2801
2807
|
postgresQueryMode: entry.previousPostgresQueryMode,
|
|
2802
2808
|
postgresQueryPushdownApplied: entry.previousPostgresQueryPushdownApplied,
|
|
@@ -3861,6 +3867,7 @@ var buildEvaluationSQLiteQueryPlanSnapshot = (trace) => {
|
|
|
3861
3867
|
sqliteQueryTotalFilterClauseCount: typeof metadata.sqliteQueryTotalFilterClauseCount === "number" ? metadata.sqliteQueryTotalFilterClauseCount : undefined,
|
|
3862
3868
|
sqliteQueryJsRemainderClauseCount: typeof metadata.sqliteQueryJsRemainderClauseCount === "number" ? metadata.sqliteQueryJsRemainderClauseCount : undefined,
|
|
3863
3869
|
sqliteQueryMultiplierUsed: typeof metadata.sqliteQueryMultiplierUsed === "number" ? metadata.sqliteQueryMultiplierUsed : undefined,
|
|
3870
|
+
sqliteQueryCandidateLimitUsed: typeof metadata.sqliteQueryCandidateLimitUsed === "number" ? metadata.sqliteQueryCandidateLimitUsed : undefined,
|
|
3864
3871
|
sqliteQueryPushdownCoverageRatio: typeof metadata.sqliteQueryPushdownCoverageRatio === "number" ? metadata.sqliteQueryPushdownCoverageRatio : undefined,
|
|
3865
3872
|
sqliteQueryJsRemainderRatio: typeof metadata.sqliteQueryJsRemainderRatio === "number" ? metadata.sqliteQueryJsRemainderRatio : undefined,
|
|
3866
3873
|
sqliteQueryReturnedCount: typeof metadata.sqliteQueryReturnedCount === "number" ? metadata.sqliteQueryReturnedCount : undefined,
|
|
@@ -3887,6 +3894,7 @@ var buildEvaluationPostgresQueryPlanSnapshot = (trace) => {
|
|
|
3887
3894
|
postgresQueryTotalFilterClauseCount: typeof metadata.postgresQueryTotalFilterClauseCount === "number" ? metadata.postgresQueryTotalFilterClauseCount : undefined,
|
|
3888
3895
|
postgresQueryJsRemainderClauseCount: typeof metadata.postgresQueryJsRemainderClauseCount === "number" ? metadata.postgresQueryJsRemainderClauseCount : undefined,
|
|
3889
3896
|
postgresQueryMultiplierUsed: typeof metadata.postgresQueryMultiplierUsed === "number" ? metadata.postgresQueryMultiplierUsed : undefined,
|
|
3897
|
+
postgresQueryCandidateLimitUsed: typeof metadata.postgresQueryCandidateLimitUsed === "number" ? metadata.postgresQueryCandidateLimitUsed : undefined,
|
|
3890
3898
|
postgresQueryPushdownCoverageRatio: typeof metadata.postgresQueryPushdownCoverageRatio === "number" ? metadata.postgresQueryPushdownCoverageRatio : undefined,
|
|
3891
3899
|
postgresQueryJsRemainderRatio: typeof metadata.postgresQueryJsRemainderRatio === "number" ? metadata.postgresQueryJsRemainderRatio : undefined,
|
|
3892
3900
|
postgresQueryReturnedCount: typeof metadata.postgresQueryReturnedCount === "number" ? metadata.postgresQueryReturnedCount : undefined,
|
|
@@ -5142,6 +5150,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5142
5150
|
const sqliteQueryTotalFilterClauseCount = currentSQLiteQueryPlanSnapshot.sqliteQueryTotalFilterClauseCount ?? currentSnapshot?.sqliteQueryTotalFilterClauseCount;
|
|
5143
5151
|
const sqliteQueryJsRemainderClauseCount = currentSQLiteQueryPlanSnapshot.sqliteQueryJsRemainderClauseCount ?? currentSnapshot?.sqliteQueryJsRemainderClauseCount;
|
|
5144
5152
|
const sqliteQueryMultiplierUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryMultiplierUsed ?? currentSnapshot?.sqliteQueryMultiplierUsed;
|
|
5153
|
+
const sqliteQueryCandidateLimitUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryCandidateLimitUsed ?? currentSnapshot?.sqliteQueryCandidateLimitUsed;
|
|
5145
5154
|
const sqliteQueryPushdownCoverageRatio = currentSQLiteQueryPlanSnapshot.sqliteQueryPushdownCoverageRatio ?? currentSnapshot?.sqliteQueryPushdownCoverageRatio;
|
|
5146
5155
|
const sqliteQueryJsRemainderRatio = currentSQLiteQueryPlanSnapshot.sqliteQueryJsRemainderRatio ?? currentSnapshot?.sqliteQueryJsRemainderRatio;
|
|
5147
5156
|
const sqliteQueryFilteredCandidates = currentSQLiteQueryPlanSnapshot.sqliteQueryFilteredCandidates ?? currentSnapshot?.sqliteQueryFilteredCandidates;
|
|
@@ -5162,6 +5171,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5162
5171
|
const postgresQueryTotalFilterClauseCount = currentPostgresQueryPlanSnapshot.postgresQueryTotalFilterClauseCount ?? currentSnapshot?.postgresQueryTotalFilterClauseCount;
|
|
5163
5172
|
const postgresQueryJsRemainderClauseCount = currentPostgresQueryPlanSnapshot.postgresQueryJsRemainderClauseCount ?? currentSnapshot?.postgresQueryJsRemainderClauseCount;
|
|
5164
5173
|
const postgresQueryMultiplierUsed = currentPostgresQueryPlanSnapshot.postgresQueryMultiplierUsed ?? currentSnapshot?.postgresQueryMultiplierUsed;
|
|
5174
|
+
const postgresQueryCandidateLimitUsed = currentPostgresQueryPlanSnapshot.postgresQueryCandidateLimitUsed ?? currentSnapshot?.postgresQueryCandidateLimitUsed;
|
|
5165
5175
|
const postgresQueryPushdownCoverageRatio = currentPostgresQueryPlanSnapshot.postgresQueryPushdownCoverageRatio ?? currentSnapshot?.postgresQueryPushdownCoverageRatio;
|
|
5166
5176
|
const postgresQueryJsRemainderRatio = currentPostgresQueryPlanSnapshot.postgresQueryJsRemainderRatio ?? currentSnapshot?.postgresQueryJsRemainderRatio;
|
|
5167
5177
|
const postgresQueryFilteredCandidates = currentPostgresQueryPlanSnapshot.postgresQueryFilteredCandidates ?? currentSnapshot?.postgresQueryFilteredCandidates;
|
|
@@ -5179,7 +5189,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5179
5189
|
const previousFilterSignature = JSON.stringify(previousTrace?.inputFilter ?? undefined);
|
|
5180
5190
|
const currentRetrievalSignature = JSON.stringify(retrieval ?? undefined);
|
|
5181
5191
|
const previousRetrievalSignature = JSON.stringify(previousTrace?.inputRetrieval ?? undefined);
|
|
5182
|
-
const traceChange = !previousTrace ? currentTrace ? "new" : "unchanged" : previousTrace.traceMode !== currentTrace?.mode || previousFilterSignature !== currentFilterSignature || previousRetrievalSignature !== currentRetrievalSignature || previousTrace.sourceBalanceStrategy !== currentTrace?.sourceBalanceStrategy || previousTrace.transformedQuery !== (currentTrace?.transformedQuery || undefined) || previousTrace.variantQueries.join("|") !== (currentTrace?.variantQueries ?? []).join("|") || previousTrace.finalCount !== (currentTrace?.resultCounts.final ?? 0) || previousTrace.vectorCount !== (currentTrace?.resultCounts.vector ?? 0) || previousTrace.lexicalCount !== (currentTrace?.resultCounts.lexical ?? 0) || previousTrace.candidateTopK !== (currentTrace?.candidateTopK ?? 0) || previousTrace.lexicalTopK !== (currentTrace?.lexicalTopK ?? 0) || previousTrace.topContextLabel !== topContextLabel || previousTrace.topLocatorLabel !== topLocatorLabel || previousTrace.sourceAwareChunkReasonLabel !== sourceAwareChunkReasonLabel || previousTrace.sourceAwareUnitScopeLabel !== sourceAwareUnitScopeLabel || previousTrace.leadSpeakerCue !== leadSpeakerCue || previousTrace.leadSpeakerAttributionCue !== leadSpeakerAttributionCue || previousTrace.leadChannelCue !== leadChannelCue || previousTrace.leadChannelAttributionCue !== leadChannelAttributionCue || previousTrace.leadContinuityCue !== leadContinuityCue || previousTrace.sqliteQueryMode !== sqliteQueryMode || previousTrace.sqliteQueryPushdownMode !== sqliteQueryPushdownMode || previousTrace.sqliteQueryPushdownApplied !== sqliteQueryPushdownApplied || previousTrace.sqliteQueryPushdownClauseCount !== sqliteQueryPushdownClauseCount || previousTrace.sqliteQueryTotalFilterClauseCount !== sqliteQueryTotalFilterClauseCount || previousTrace.sqliteQueryJsRemainderClauseCount !== sqliteQueryJsRemainderClauseCount || previousTrace.sqliteQueryMultiplierUsed !== sqliteQueryMultiplierUsed || previousTrace.sqliteQueryPushdownCoverageRatio !== sqliteQueryPushdownCoverageRatio || previousTrace.sqliteQueryJsRemainderRatio !== sqliteQueryJsRemainderRatio || previousTrace.sqliteQueryFilteredCandidates !== sqliteQueryFilteredCandidates || previousTrace.sqliteQueryInitialSearchK !== sqliteQueryInitialSearchK || previousTrace.sqliteQueryFinalSearchK !== sqliteQueryFinalSearchK || previousTrace.sqliteQuerySearchExpansionRatio !== sqliteQuerySearchExpansionRatio || previousTrace.sqliteQueryBackfillCount !== sqliteQueryBackfillCount || previousTrace.sqliteQueryReturnedCount !== sqliteQueryReturnedCount || previousTrace.sqliteQueryCandidateYieldRatio !== sqliteQueryCandidateYieldRatio || previousTrace.sqliteQueryTopKFillRatio !== sqliteQueryTopKFillRatio || previousTrace.sqliteQueryUnderfilledTopK !== sqliteQueryUnderfilledTopK || previousTrace.sqliteQueryCandidateBudgetExhausted !== sqliteQueryCandidateBudgetExhausted || previousTrace.sqliteQueryCandidateCoverage !== sqliteQueryCandidateCoverage || previousTrace.postgresQueryMode !== postgresQueryMode || previousTrace.postgresQueryPushdownMode !== postgresQueryPushdownMode || previousTrace.postgresQueryPushdownApplied !== postgresQueryPushdownApplied || previousTrace.postgresQueryPushdownClauseCount !== postgresQueryPushdownClauseCount || previousTrace.postgresQueryTotalFilterClauseCount !== postgresQueryTotalFilterClauseCount || previousTrace.postgresQueryJsRemainderClauseCount !== postgresQueryJsRemainderClauseCount || previousTrace.postgresQueryMultiplierUsed !== postgresQueryMultiplierUsed || previousTrace.postgresQueryPushdownCoverageRatio !== postgresQueryPushdownCoverageRatio || previousTrace.postgresQueryJsRemainderRatio !== postgresQueryJsRemainderRatio || previousTrace.postgresQueryFilteredCandidates !== postgresQueryFilteredCandidates || previousTrace.postgresQueryInitialSearchK !== postgresQueryInitialSearchK || previousTrace.postgresQueryFinalSearchK !== postgresQueryFinalSearchK || previousTrace.postgresQuerySearchExpansionRatio !== postgresQuerySearchExpansionRatio || previousTrace.postgresQueryBackfillCount !== postgresQueryBackfillCount || previousTrace.postgresQueryReturnedCount !== postgresQueryReturnedCount || previousTrace.postgresQueryCandidateYieldRatio !== postgresQueryCandidateYieldRatio || previousTrace.postgresQueryTopKFillRatio !== postgresQueryTopKFillRatio || previousTrace.postgresQueryUnderfilledTopK !== postgresQueryUnderfilledTopK || previousTrace.postgresQueryCandidateBudgetExhausted !== postgresQueryCandidateBudgetExhausted || previousTrace.postgresQueryCandidateCoverage !== postgresQueryCandidateCoverage || !areStageCountsEqual(previousStageCounts, stageCounts) ? "changed" : "unchanged";
|
|
5192
|
+
const traceChange = !previousTrace ? currentTrace ? "new" : "unchanged" : previousTrace.traceMode !== currentTrace?.mode || previousFilterSignature !== currentFilterSignature || previousRetrievalSignature !== currentRetrievalSignature || previousTrace.sourceBalanceStrategy !== currentTrace?.sourceBalanceStrategy || previousTrace.transformedQuery !== (currentTrace?.transformedQuery || undefined) || previousTrace.variantQueries.join("|") !== (currentTrace?.variantQueries ?? []).join("|") || previousTrace.finalCount !== (currentTrace?.resultCounts.final ?? 0) || previousTrace.vectorCount !== (currentTrace?.resultCounts.vector ?? 0) || previousTrace.lexicalCount !== (currentTrace?.resultCounts.lexical ?? 0) || previousTrace.candidateTopK !== (currentTrace?.candidateTopK ?? 0) || previousTrace.lexicalTopK !== (currentTrace?.lexicalTopK ?? 0) || previousTrace.topContextLabel !== topContextLabel || previousTrace.topLocatorLabel !== topLocatorLabel || previousTrace.sourceAwareChunkReasonLabel !== sourceAwareChunkReasonLabel || previousTrace.sourceAwareUnitScopeLabel !== sourceAwareUnitScopeLabel || previousTrace.leadSpeakerCue !== leadSpeakerCue || previousTrace.leadSpeakerAttributionCue !== leadSpeakerAttributionCue || previousTrace.leadChannelCue !== leadChannelCue || previousTrace.leadChannelAttributionCue !== leadChannelAttributionCue || previousTrace.leadContinuityCue !== leadContinuityCue || previousTrace.sqliteQueryMode !== sqliteQueryMode || previousTrace.sqliteQueryPushdownMode !== sqliteQueryPushdownMode || previousTrace.sqliteQueryPushdownApplied !== sqliteQueryPushdownApplied || previousTrace.sqliteQueryPushdownClauseCount !== sqliteQueryPushdownClauseCount || previousTrace.sqliteQueryTotalFilterClauseCount !== sqliteQueryTotalFilterClauseCount || previousTrace.sqliteQueryJsRemainderClauseCount !== sqliteQueryJsRemainderClauseCount || previousTrace.sqliteQueryMultiplierUsed !== sqliteQueryMultiplierUsed || previousTrace.sqliteQueryCandidateLimitUsed !== sqliteQueryCandidateLimitUsed || previousTrace.sqliteQueryPushdownCoverageRatio !== sqliteQueryPushdownCoverageRatio || previousTrace.sqliteQueryJsRemainderRatio !== sqliteQueryJsRemainderRatio || previousTrace.sqliteQueryFilteredCandidates !== sqliteQueryFilteredCandidates || previousTrace.sqliteQueryInitialSearchK !== sqliteQueryInitialSearchK || previousTrace.sqliteQueryFinalSearchK !== sqliteQueryFinalSearchK || previousTrace.sqliteQuerySearchExpansionRatio !== sqliteQuerySearchExpansionRatio || previousTrace.sqliteQueryBackfillCount !== sqliteQueryBackfillCount || previousTrace.sqliteQueryReturnedCount !== sqliteQueryReturnedCount || previousTrace.sqliteQueryCandidateYieldRatio !== sqliteQueryCandidateYieldRatio || previousTrace.sqliteQueryTopKFillRatio !== sqliteQueryTopKFillRatio || previousTrace.sqliteQueryUnderfilledTopK !== sqliteQueryUnderfilledTopK || previousTrace.sqliteQueryCandidateBudgetExhausted !== sqliteQueryCandidateBudgetExhausted || previousTrace.sqliteQueryCandidateCoverage !== sqliteQueryCandidateCoverage || previousTrace.postgresQueryMode !== postgresQueryMode || previousTrace.postgresQueryPushdownMode !== postgresQueryPushdownMode || previousTrace.postgresQueryPushdownApplied !== postgresQueryPushdownApplied || previousTrace.postgresQueryPushdownClauseCount !== postgresQueryPushdownClauseCount || previousTrace.postgresQueryTotalFilterClauseCount !== postgresQueryTotalFilterClauseCount || previousTrace.postgresQueryJsRemainderClauseCount !== postgresQueryJsRemainderClauseCount || previousTrace.postgresQueryMultiplierUsed !== postgresQueryMultiplierUsed || previousTrace.postgresQueryCandidateLimitUsed !== postgresQueryCandidateLimitUsed || previousTrace.postgresQueryPushdownCoverageRatio !== postgresQueryPushdownCoverageRatio || previousTrace.postgresQueryJsRemainderRatio !== postgresQueryJsRemainderRatio || previousTrace.postgresQueryFilteredCandidates !== postgresQueryFilteredCandidates || previousTrace.postgresQueryInitialSearchK !== postgresQueryInitialSearchK || previousTrace.postgresQueryFinalSearchK !== postgresQueryFinalSearchK || previousTrace.postgresQuerySearchExpansionRatio !== postgresQuerySearchExpansionRatio || previousTrace.postgresQueryBackfillCount !== postgresQueryBackfillCount || previousTrace.postgresQueryReturnedCount !== postgresQueryReturnedCount || previousTrace.postgresQueryCandidateYieldRatio !== postgresQueryCandidateYieldRatio || previousTrace.postgresQueryTopKFillRatio !== postgresQueryTopKFillRatio || previousTrace.postgresQueryUnderfilledTopK !== postgresQueryUnderfilledTopK || previousTrace.postgresQueryCandidateBudgetExhausted !== postgresQueryCandidateBudgetExhausted || previousTrace.postgresQueryCandidateCoverage !== postgresQueryCandidateCoverage || !areStageCountsEqual(previousStageCounts, stageCounts) ? "changed" : "unchanged";
|
|
5183
5193
|
return {
|
|
5184
5194
|
candidateTopK: currentTrace?.candidateTopK ?? 0,
|
|
5185
5195
|
caseId: caseResult.caseId,
|
|
@@ -5215,6 +5225,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5215
5225
|
previousSqliteQueryTotalFilterClauseCount: previousTrace?.sqliteQueryTotalFilterClauseCount,
|
|
5216
5226
|
previousSqliteQueryJsRemainderClauseCount: previousTrace?.sqliteQueryJsRemainderClauseCount,
|
|
5217
5227
|
previousSqliteQueryMultiplierUsed: previousTrace?.sqliteQueryMultiplierUsed,
|
|
5228
|
+
previousSqliteQueryCandidateLimitUsed: previousTrace?.sqliteQueryCandidateLimitUsed,
|
|
5218
5229
|
previousSqliteQueryPushdownCoverageRatio: previousTrace?.sqliteQueryPushdownCoverageRatio,
|
|
5219
5230
|
previousSqliteQueryJsRemainderRatio: previousTrace?.sqliteQueryJsRemainderRatio,
|
|
5220
5231
|
previousSqliteQueryReturnedCount: previousTrace?.sqliteQueryReturnedCount,
|
|
@@ -5235,6 +5246,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5235
5246
|
previousPostgresQueryTotalFilterClauseCount: previousTrace?.postgresQueryTotalFilterClauseCount,
|
|
5236
5247
|
previousPostgresQueryJsRemainderClauseCount: previousTrace?.postgresQueryJsRemainderClauseCount,
|
|
5237
5248
|
previousPostgresQueryMultiplierUsed: previousTrace?.postgresQueryMultiplierUsed,
|
|
5249
|
+
previousPostgresQueryCandidateLimitUsed: previousTrace?.postgresQueryCandidateLimitUsed,
|
|
5238
5250
|
previousPostgresQueryPushdownCoverageRatio: previousTrace?.postgresQueryPushdownCoverageRatio,
|
|
5239
5251
|
previousPostgresQueryJsRemainderRatio: previousTrace?.postgresQueryJsRemainderRatio,
|
|
5240
5252
|
previousPostgresQueryReturnedCount: previousTrace?.postgresQueryReturnedCount,
|
|
@@ -5271,6 +5283,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5271
5283
|
sqliteQueryTotalFilterClauseCount,
|
|
5272
5284
|
sqliteQueryJsRemainderClauseCount,
|
|
5273
5285
|
sqliteQueryMultiplierUsed,
|
|
5286
|
+
sqliteQueryCandidateLimitUsed,
|
|
5274
5287
|
sqliteQueryPushdownCoverageRatio,
|
|
5275
5288
|
sqliteQueryJsRemainderRatio,
|
|
5276
5289
|
sqliteQueryReturnedCount,
|
|
@@ -5291,6 +5304,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5291
5304
|
postgresQueryTotalFilterClauseCount,
|
|
5292
5305
|
postgresQueryJsRemainderClauseCount,
|
|
5293
5306
|
postgresQueryMultiplierUsed,
|
|
5307
|
+
postgresQueryCandidateLimitUsed,
|
|
5294
5308
|
postgresQueryPushdownCoverageRatio,
|
|
5295
5309
|
postgresQueryJsRemainderRatio,
|
|
5296
5310
|
postgresQueryReturnedCount,
|
|
@@ -16907,6 +16921,7 @@ var buildStoreQueryPlanTraceMetadata = (store) => {
|
|
|
16907
16921
|
sqliteQueryTotalFilterClauseCount: sqliteNativePlan.totalFilterClauseCount,
|
|
16908
16922
|
sqliteQueryJsRemainderClauseCount: sqliteNativePlan.jsRemainderClauseCount,
|
|
16909
16923
|
sqliteQueryMultiplierUsed: sqliteNativePlan.queryMultiplierUsed ?? null,
|
|
16924
|
+
sqliteQueryCandidateLimitUsed: sqliteNativePlan.candidateLimitUsed ?? null,
|
|
16910
16925
|
sqliteQueryJsRemainderRatio: sqliteNativePlan.jsRemainderRatio ?? null,
|
|
16911
16926
|
sqliteQueryCandidateYieldRatio: sqliteNativePlan.candidateYieldRatio ?? null,
|
|
16912
16927
|
sqliteQueryReturnedCount: sqliteNativePlan.returnedCount ?? null,
|
|
@@ -16934,6 +16949,7 @@ var buildStoreQueryPlanTraceMetadata = (store) => {
|
|
|
16934
16949
|
postgresQueryTotalFilterClauseCount: postgresNativePlan.totalFilterClauseCount,
|
|
16935
16950
|
postgresQueryJsRemainderClauseCount: postgresNativePlan.jsRemainderClauseCount,
|
|
16936
16951
|
postgresQueryMultiplierUsed: postgresNativePlan.queryMultiplierUsed ?? null,
|
|
16952
|
+
postgresQueryCandidateLimitUsed: postgresNativePlan.candidateLimitUsed ?? null,
|
|
16937
16953
|
postgresQueryJsRemainderRatio: postgresNativePlan.jsRemainderRatio ?? null,
|
|
16938
16954
|
postgresQueryCandidateYieldRatio: postgresNativePlan.candidateYieldRatio ?? null,
|
|
16939
16955
|
postgresQueryReturnedCount: postgresNativePlan.returnedCount ?? null,
|
|
@@ -17065,6 +17081,7 @@ var createRAGCollection = (options) => {
|
|
|
17065
17081
|
text: query
|
|
17066
17082
|
}, "query").then((nextQueryVector) => options.store.query({
|
|
17067
17083
|
filter: input.filter,
|
|
17084
|
+
candidateLimit: input.nativeCandidateLimit,
|
|
17068
17085
|
queryMultiplier: input.nativeQueryMultiplier,
|
|
17069
17086
|
queryVector: nextQueryVector,
|
|
17070
17087
|
topK: candidateTopK
|
|
@@ -22055,6 +22072,7 @@ var ragChat = (config) => {
|
|
|
22055
22072
|
}
|
|
22056
22073
|
const input = {
|
|
22057
22074
|
filter: getObjectProperty(body, "filter"),
|
|
22075
|
+
nativeCandidateLimit: typeof body.nativeCandidateLimit === "number" ? body.nativeCandidateLimit : undefined,
|
|
22058
22076
|
nativeQueryMultiplier: typeof body.nativeQueryMultiplier === "number" ? body.nativeQueryMultiplier : undefined,
|
|
22059
22077
|
retrieval: undefined,
|
|
22060
22078
|
model: getStringProperty(body, "model"),
|
|
@@ -28993,6 +29011,12 @@ var normalizeQueryMultiplier = (value) => {
|
|
|
28993
29011
|
}
|
|
28994
29012
|
return Math.min(MAX_QUERY_MULTIPLIER, Math.max(1, Math.floor(value)));
|
|
28995
29013
|
};
|
|
29014
|
+
var normalizeCandidateLimit = (value) => {
|
|
29015
|
+
if (value === undefined || !Number.isFinite(value)) {
|
|
29016
|
+
return RAG_NATIVE_QUERY_CANDIDATE_LIMIT;
|
|
29017
|
+
}
|
|
29018
|
+
return Math.min(RAG_NATIVE_QUERY_CANDIDATE_LIMIT, Math.max(1, Math.floor(value)));
|
|
29019
|
+
};
|
|
28996
29020
|
var toQualifiedTableName = (schemaName, tableName) => `${schemaName}.${tableName}`;
|
|
28997
29021
|
var toVectorLiteral = (vector) => `[${vector.join(",")}]`;
|
|
28998
29022
|
var parseMetadata = (value) => {
|
|
@@ -29080,6 +29104,7 @@ var updatePostgresLastQueryPlan = (input) => {
|
|
|
29080
29104
|
finalSearchK: input.finalSearchK,
|
|
29081
29105
|
initialSearchK: input.initialSearchK,
|
|
29082
29106
|
searchExpansionRatio: typeof input.initialSearchK === "number" && typeof input.finalSearchK === "number" && input.initialSearchK > 0 ? input.finalSearchK / input.initialSearchK : undefined,
|
|
29107
|
+
candidateLimitUsed: input.candidateLimitUsed,
|
|
29083
29108
|
jsRemainderClauseCount: pushdown.jsRemainderClauseCount,
|
|
29084
29109
|
queryMultiplierUsed: input.queryMultiplierUsed,
|
|
29085
29110
|
jsRemainderRatio: pushdown.jsRemainderRatio,
|
|
@@ -29172,6 +29197,7 @@ var createPostgresRAGStore = (options = {}) => {
|
|
|
29172
29197
|
await init();
|
|
29173
29198
|
const queryVector = normalizeVector(input.queryVector);
|
|
29174
29199
|
const queryMultiplier2 = normalizeQueryMultiplier(input.queryMultiplier ?? options.queryMultiplier);
|
|
29200
|
+
const candidateLimit = normalizeCandidateLimit(input.candidateLimit);
|
|
29175
29201
|
const queryVectorLiteral = toVectorLiteral(queryVector);
|
|
29176
29202
|
const pushdownFilter = buildPostgresPushdownFilter(input.filter);
|
|
29177
29203
|
const countFilterPlan = buildPostgresFilterPlan(pushdownFilter);
|
|
@@ -29189,7 +29215,7 @@ var createPostgresRAGStore = (options = {}) => {
|
|
|
29189
29215
|
const hasPushdownFilter = Boolean(pushdownFilter);
|
|
29190
29216
|
const plannedFilteredCandidateCount = hasPushdownFilter && totalRows === 0 ? undefined : totalRows;
|
|
29191
29217
|
const initialSearchK = planNativeCandidateSearchK({
|
|
29192
|
-
candidateLimit
|
|
29218
|
+
candidateLimit,
|
|
29193
29219
|
filteredCandidateCount: plannedFilteredCandidateCount,
|
|
29194
29220
|
queryMultiplier: queryMultiplier2,
|
|
29195
29221
|
topK: input.topK
|
|
@@ -29233,7 +29259,7 @@ var createPostgresRAGStore = (options = {}) => {
|
|
|
29233
29259
|
break;
|
|
29234
29260
|
}
|
|
29235
29261
|
const nextSearchK = planNativeCandidateSearchBackfillK({
|
|
29236
|
-
candidateLimit
|
|
29262
|
+
candidateLimit,
|
|
29237
29263
|
currentSearchK,
|
|
29238
29264
|
filteredCandidateCount: effectiveFilteredCandidateCount
|
|
29239
29265
|
});
|
|
@@ -29249,6 +29275,7 @@ var createPostgresRAGStore = (options = {}) => {
|
|
|
29249
29275
|
updatePostgresLastQueryPlan({
|
|
29250
29276
|
backfillCount,
|
|
29251
29277
|
candidateBudgetExhausted,
|
|
29278
|
+
candidateLimitUsed: candidateLimit,
|
|
29252
29279
|
filter: input.filter,
|
|
29253
29280
|
pushdownFilter,
|
|
29254
29281
|
queryMultiplierUsed: queryMultiplier2,
|
|
@@ -29463,6 +29490,12 @@ var normalizeQueryMultiplier2 = (value) => {
|
|
|
29463
29490
|
const minMultiplier = Math.max(1, Math.floor(value));
|
|
29464
29491
|
return Math.min(minMultiplier, MAX_QUERY_MULTIPLIER2);
|
|
29465
29492
|
};
|
|
29493
|
+
var normalizeCandidateLimit2 = (value) => {
|
|
29494
|
+
if (value === undefined || !Number.isFinite(value)) {
|
|
29495
|
+
return RAG_NATIVE_QUERY_CANDIDATE_LIMIT;
|
|
29496
|
+
}
|
|
29497
|
+
return Math.min(RAG_NATIVE_QUERY_CANDIDATE_LIMIT, Math.max(1, Math.floor(value)));
|
|
29498
|
+
};
|
|
29466
29499
|
var toJSONString = (metadata) => metadata === undefined ? null : JSON.stringify(metadata);
|
|
29467
29500
|
var parseMetadata2 = (value) => {
|
|
29468
29501
|
if (value === null) {
|
|
@@ -30040,6 +30073,7 @@ var updateSQLiteLastQueryPlan = (input) => {
|
|
|
30040
30073
|
initialSearchK: input.initialSearchK,
|
|
30041
30074
|
searchExpansionRatio: typeof input.initialSearchK === "number" && typeof input.finalSearchK === "number" && input.initialSearchK > 0 ? input.finalSearchK / input.initialSearchK : undefined,
|
|
30042
30075
|
jsRemainderClauseCount: pushdown.jsRemainderClauseCount,
|
|
30076
|
+
candidateLimitUsed: input.candidateLimitUsed,
|
|
30043
30077
|
queryMultiplierUsed: input.queryMultiplierUsed,
|
|
30044
30078
|
jsRemainderRatio: pushdown.jsRemainderRatio,
|
|
30045
30079
|
pushdownApplied: pushdown.pushdownClauseCount > 0,
|
|
@@ -30206,6 +30240,7 @@ var createSQLiteRAGStore = (options = {}) => {
|
|
|
30206
30240
|
throw new Error("Native vector backend is not available");
|
|
30207
30241
|
}
|
|
30208
30242
|
const queryMultiplier = normalizeQueryMultiplier2(input.queryMultiplier ?? nativeConfig?.queryMultiplier);
|
|
30243
|
+
const candidateLimit = normalizeCandidateLimit2(input.candidateLimit);
|
|
30209
30244
|
const queryVector = normalizeVector(input.queryVector);
|
|
30210
30245
|
const queryVectorText = toVectorText(queryVector);
|
|
30211
30246
|
const pushdownFilter = buildSQLitePushdownFilter(input.filter);
|
|
@@ -30217,7 +30252,7 @@ var createSQLiteRAGStore = (options = {}) => {
|
|
|
30217
30252
|
});
|
|
30218
30253
|
const filteredCandidateCount = getFilteredSQLiteCandidateCount(db, tableName, filterPlan);
|
|
30219
30254
|
const searchK = planNativeCandidateSearchK({
|
|
30220
|
-
candidateLimit
|
|
30255
|
+
candidateLimit,
|
|
30221
30256
|
filteredCandidateCount,
|
|
30222
30257
|
queryMultiplier,
|
|
30223
30258
|
topK: input.topK
|
|
@@ -30258,7 +30293,7 @@ var createSQLiteRAGStore = (options = {}) => {
|
|
|
30258
30293
|
break;
|
|
30259
30294
|
}
|
|
30260
30295
|
const nextSearchK = planNativeCandidateSearchBackfillK({
|
|
30261
|
-
candidateLimit
|
|
30296
|
+
candidateLimit,
|
|
30262
30297
|
currentSearchK,
|
|
30263
30298
|
filteredCandidateCount
|
|
30264
30299
|
});
|
|
@@ -30278,6 +30313,7 @@ var createSQLiteRAGStore = (options = {}) => {
|
|
|
30278
30313
|
initialSearchK: searchK,
|
|
30279
30314
|
nativeDiagnostics,
|
|
30280
30315
|
pushdownFilter,
|
|
30316
|
+
candidateLimitUsed: candidateLimit,
|
|
30281
30317
|
queryMultiplierUsed: queryMultiplier,
|
|
30282
30318
|
queryMode: "native_vec0",
|
|
30283
30319
|
returnedCount: Math.min(mapped.length, input.topK),
|
|
@@ -32448,5 +32484,5 @@ export {
|
|
|
32448
32484
|
addRAGEvaluationSuiteCase
|
|
32449
32485
|
};
|
|
32450
32486
|
|
|
32451
|
-
//# debugId=
|
|
32487
|
+
//# debugId=F50A92B6908BBB4464756E2164756E21
|
|
32452
32488
|
//# sourceMappingURL=index.js.map
|