@absolutejs/absolute 0.19.0-beta.635 → 0.19.0-beta.637
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 +59 -9
- 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 +9 -0
- package/dist/vue/ai/index.js +17 -3
- package/dist/vue/ai/index.js.map +4 -4
- package/package.json +7 -7
|
@@ -173,6 +173,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
173
173
|
nativeCandidateLimit?: number | undefined;
|
|
174
174
|
nativeMaxBackfills?: number | undefined;
|
|
175
175
|
nativeMinResults?: number | undefined;
|
|
176
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
176
177
|
scoreThreshold?: number | undefined;
|
|
177
178
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
178
179
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -191,6 +192,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
191
192
|
nativeCandidateLimit?: number | undefined;
|
|
192
193
|
nativeMaxBackfills?: number | undefined;
|
|
193
194
|
nativeMinResults?: number | undefined;
|
|
195
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
194
196
|
scoreThreshold?: number | undefined;
|
|
195
197
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
196
198
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -175,6 +175,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
175
175
|
nativeCandidateLimit?: number | undefined;
|
|
176
176
|
nativeMaxBackfills?: number | undefined;
|
|
177
177
|
nativeMinResults?: number | undefined;
|
|
178
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
178
179
|
scoreThreshold?: number | undefined;
|
|
179
180
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
180
181
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -193,6 +194,7 @@ export declare const createRAG: (path: string, options?: CreateRAGOptions) => {
|
|
|
193
194
|
nativeCandidateLimit?: number | undefined;
|
|
194
195
|
nativeMaxBackfills?: number | undefined;
|
|
195
196
|
nativeMinResults?: number | undefined;
|
|
197
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
196
198
|
scoreThreshold?: number | undefined;
|
|
197
199
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
198
200
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -595,6 +595,8 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
595
595
|
previousSqliteQueryMaxBackfillsUsed?: number | undefined;
|
|
596
596
|
sqliteQueryMinResultsUsed?: number | undefined;
|
|
597
597
|
previousSqliteQueryMinResultsUsed?: number | undefined;
|
|
598
|
+
sqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
599
|
+
previousSqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
598
600
|
sqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
599
601
|
previousSqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
600
602
|
sqliteQueryJsRemainderRatio?: number | undefined;
|
|
@@ -645,6 +647,8 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
645
647
|
previousPostgresQueryMaxBackfillsUsed?: number | undefined;
|
|
646
648
|
postgresQueryMinResultsUsed?: number | undefined;
|
|
647
649
|
previousPostgresQueryMinResultsUsed?: number | undefined;
|
|
650
|
+
postgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
651
|
+
previousPostgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
648
652
|
postgresQueryPushdownCoverageRatio?: number | undefined;
|
|
649
653
|
previousPostgresQueryPushdownCoverageRatio?: number | undefined;
|
|
650
654
|
postgresQueryJsRemainderRatio?: number | undefined;
|
|
@@ -870,6 +874,8 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
870
874
|
previousSqliteQueryMaxBackfillsUsed?: number | undefined;
|
|
871
875
|
sqliteQueryMinResultsUsed?: number | undefined;
|
|
872
876
|
previousSqliteQueryMinResultsUsed?: number | undefined;
|
|
877
|
+
sqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
878
|
+
previousSqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
873
879
|
sqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
874
880
|
previousSqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
875
881
|
sqliteQueryJsRemainderRatio?: number | undefined;
|
|
@@ -920,6 +926,8 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
920
926
|
previousPostgresQueryMaxBackfillsUsed?: number | undefined;
|
|
921
927
|
postgresQueryMinResultsUsed?: number | undefined;
|
|
922
928
|
previousPostgresQueryMinResultsUsed?: number | undefined;
|
|
929
|
+
postgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
930
|
+
previousPostgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
923
931
|
postgresQueryPushdownCoverageRatio?: number | undefined;
|
|
924
932
|
previousPostgresQueryPushdownCoverageRatio?: number | undefined;
|
|
925
933
|
postgresQueryJsRemainderRatio?: number | undefined;
|
|
@@ -1152,6 +1160,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1152
1160
|
candidateLimitUsed?: number | undefined;
|
|
1153
1161
|
maxBackfillsUsed?: number | undefined;
|
|
1154
1162
|
minResultsUsed?: number | undefined;
|
|
1163
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
1155
1164
|
pushdownCoverageRatio?: number | undefined;
|
|
1156
1165
|
jsRemainderRatio?: number | undefined;
|
|
1157
1166
|
filteredCandidateCount?: number | undefined;
|
|
@@ -1204,6 +1213,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1204
1213
|
candidateLimitUsed?: number | undefined;
|
|
1205
1214
|
maxBackfillsUsed?: number | undefined;
|
|
1206
1215
|
minResultsUsed?: number | undefined;
|
|
1216
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
1207
1217
|
pushdownCoverageRatio?: number | undefined;
|
|
1208
1218
|
jsRemainderRatio?: number | undefined;
|
|
1209
1219
|
filteredCandidateCount?: number | undefined;
|
|
@@ -1278,6 +1288,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1278
1288
|
candidateLimitUsed?: number | undefined;
|
|
1279
1289
|
maxBackfillsUsed?: number | undefined;
|
|
1280
1290
|
minResultsUsed?: number | undefined;
|
|
1291
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
1281
1292
|
pushdownCoverageRatio?: number | undefined;
|
|
1282
1293
|
jsRemainderRatio?: number | undefined;
|
|
1283
1294
|
filteredCandidateCount?: number | undefined;
|
|
@@ -1330,6 +1341,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
1330
1341
|
candidateLimitUsed?: number | undefined;
|
|
1331
1342
|
maxBackfillsUsed?: number | undefined;
|
|
1332
1343
|
minResultsUsed?: number | undefined;
|
|
1344
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
1333
1345
|
pushdownCoverageRatio?: number | undefined;
|
|
1334
1346
|
jsRemainderRatio?: number | undefined;
|
|
1335
1347
|
filteredCandidateCount?: number | undefined;
|
|
@@ -2034,6 +2046,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
2034
2046
|
nativeCandidateLimit?: number | undefined;
|
|
2035
2047
|
nativeMaxBackfills?: number | undefined;
|
|
2036
2048
|
nativeMinResults?: number | undefined;
|
|
2049
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
2037
2050
|
scoreThreshold?: number | undefined;
|
|
2038
2051
|
queryTransform?: import("../..").RAGQueryTransformer | {
|
|
2039
2052
|
transform: import("../..").RAGQueryTransformer;
|
|
@@ -2071,6 +2084,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
2071
2084
|
nativeCandidateLimit?: number | undefined;
|
|
2072
2085
|
nativeMaxBackfills?: number | undefined;
|
|
2073
2086
|
nativeMinResults?: number | undefined;
|
|
2087
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
2074
2088
|
scoreThreshold?: number | undefined;
|
|
2075
2089
|
queryTransform?: import("../..").RAGQueryTransformer | {
|
|
2076
2090
|
transform: import("../..").RAGQueryTransformer;
|
|
@@ -2167,6 +2181,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
2167
2181
|
nativeCandidateLimit?: number | undefined;
|
|
2168
2182
|
nativeMaxBackfills?: number | undefined;
|
|
2169
2183
|
nativeMinResults?: number | undefined;
|
|
2184
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
2170
2185
|
scoreThreshold?: number | undefined;
|
|
2171
2186
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
2172
2187
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -2185,6 +2200,7 @@ export declare const useRAG: (path: string, options?: UseRAGOptions) => {
|
|
|
2185
2200
|
nativeCandidateLimit?: number | undefined;
|
|
2186
2201
|
nativeMaxBackfills?: number | undefined;
|
|
2187
2202
|
nativeMinResults?: number | undefined;
|
|
2203
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
2188
2204
|
scoreThreshold?: number | undefined;
|
|
2189
2205
|
queryTransform?: import("../..").RAGQueryTransformProviderLike | undefined;
|
|
2190
2206
|
retrievalStrategy?: import("../..").RAGRetrievalStrategyProviderLike | undefined;
|
|
@@ -354,6 +354,8 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
354
354
|
previousSqliteQueryMaxBackfillsUsed?: number | undefined;
|
|
355
355
|
sqliteQueryMinResultsUsed?: number | undefined;
|
|
356
356
|
previousSqliteQueryMinResultsUsed?: number | undefined;
|
|
357
|
+
sqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
358
|
+
previousSqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
357
359
|
sqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
358
360
|
previousSqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
359
361
|
sqliteQueryJsRemainderRatio?: number | undefined;
|
|
@@ -404,6 +406,8 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
404
406
|
previousPostgresQueryMaxBackfillsUsed?: number | undefined;
|
|
405
407
|
postgresQueryMinResultsUsed?: number | undefined;
|
|
406
408
|
previousPostgresQueryMinResultsUsed?: number | undefined;
|
|
409
|
+
postgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
410
|
+
previousPostgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
407
411
|
postgresQueryPushdownCoverageRatio?: number | undefined;
|
|
408
412
|
previousPostgresQueryPushdownCoverageRatio?: number | undefined;
|
|
409
413
|
postgresQueryJsRemainderRatio?: number | undefined;
|
|
@@ -629,6 +633,8 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
629
633
|
previousSqliteQueryMaxBackfillsUsed?: number | undefined;
|
|
630
634
|
sqliteQueryMinResultsUsed?: number | undefined;
|
|
631
635
|
previousSqliteQueryMinResultsUsed?: number | undefined;
|
|
636
|
+
sqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
637
|
+
previousSqliteQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
632
638
|
sqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
633
639
|
previousSqliteQueryPushdownCoverageRatio?: number | undefined;
|
|
634
640
|
sqliteQueryJsRemainderRatio?: number | undefined;
|
|
@@ -679,6 +685,8 @@ export declare const useRAGEvaluate: (path: string) => {
|
|
|
679
685
|
previousPostgresQueryMaxBackfillsUsed?: number | undefined;
|
|
680
686
|
postgresQueryMinResultsUsed?: number | undefined;
|
|
681
687
|
previousPostgresQueryMinResultsUsed?: number | undefined;
|
|
688
|
+
postgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
689
|
+
previousPostgresQueryFillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
682
690
|
postgresQueryPushdownCoverageRatio?: number | undefined;
|
|
683
691
|
previousPostgresQueryPushdownCoverageRatio?: number | undefined;
|
|
684
692
|
postgresQueryJsRemainderRatio?: number | undefined;
|
|
@@ -47,6 +47,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
47
47
|
candidateLimitUsed?: number | undefined;
|
|
48
48
|
maxBackfillsUsed?: number | undefined;
|
|
49
49
|
minResultsUsed?: number | undefined;
|
|
50
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
50
51
|
pushdownCoverageRatio?: number | undefined;
|
|
51
52
|
jsRemainderRatio?: number | undefined;
|
|
52
53
|
filteredCandidateCount?: number | undefined;
|
|
@@ -99,6 +100,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
99
100
|
candidateLimitUsed?: number | undefined;
|
|
100
101
|
maxBackfillsUsed?: number | undefined;
|
|
101
102
|
minResultsUsed?: number | undefined;
|
|
103
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
102
104
|
pushdownCoverageRatio?: number | undefined;
|
|
103
105
|
jsRemainderRatio?: number | undefined;
|
|
104
106
|
filteredCandidateCount?: number | undefined;
|
|
@@ -173,6 +175,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
173
175
|
candidateLimitUsed?: number | undefined;
|
|
174
176
|
maxBackfillsUsed?: number | undefined;
|
|
175
177
|
minResultsUsed?: number | undefined;
|
|
178
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
176
179
|
pushdownCoverageRatio?: number | undefined;
|
|
177
180
|
jsRemainderRatio?: number | undefined;
|
|
178
181
|
filteredCandidateCount?: number | undefined;
|
|
@@ -225,6 +228,7 @@ export declare const useRAGIndexAdmin: (path: string) => {
|
|
|
225
228
|
candidateLimitUsed?: number | undefined;
|
|
226
229
|
maxBackfillsUsed?: number | undefined;
|
|
227
230
|
minResultsUsed?: number | undefined;
|
|
231
|
+
fillPolicyUsed?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
228
232
|
pushdownCoverageRatio?: number | undefined;
|
|
229
233
|
jsRemainderRatio?: number | undefined;
|
|
230
234
|
filteredCandidateCount?: number | undefined;
|
|
@@ -14,6 +14,7 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
14
14
|
nativeCandidateLimit?: number | undefined;
|
|
15
15
|
nativeMaxBackfills?: number | undefined;
|
|
16
16
|
nativeMinResults?: number | undefined;
|
|
17
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
17
18
|
scoreThreshold?: number | undefined;
|
|
18
19
|
queryTransform?: import("../..").RAGQueryTransformer | {
|
|
19
20
|
transform: import("../..").RAGQueryTransformer;
|
|
@@ -51,6 +52,7 @@ export declare const useRAGSearch: (path: string) => {
|
|
|
51
52
|
nativeCandidateLimit?: number | undefined;
|
|
52
53
|
nativeMaxBackfills?: number | undefined;
|
|
53
54
|
nativeMinResults?: number | undefined;
|
|
55
|
+
nativeFillPolicy?: "strict_topk" | "satisfy_min_results" | undefined;
|
|
54
56
|
scoreThreshold?: number | undefined;
|
|
55
57
|
queryTransform?: import("../..").RAGQueryTransformer | {
|
|
56
58
|
transform: import("../..").RAGQueryTransformer;
|
package/dist/svelte/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 === "sqliteQueryCandidateLimitUsed" ? "SQLite candidate limit" : key === "sqliteQueryMaxBackfillsUsed" ? "SQLite max backfills" : key === "sqliteQueryMinResultsUsed" ? "SQLite min results" : key === "postgresQueryJsRemainderClauseCount" ? "Postgres JS remainder clauses" : key === "postgresQueryMultiplierUsed" ? "Postgres query multiplier" : key === "postgresQueryCandidateLimitUsed" ? "Postgres candidate limit" : key === "postgresQueryMaxBackfillsUsed" ? "Postgres max backfills" : key === "postgresQueryMinResultsUsed" ? "Postgres min results" : 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 === "sqliteQueryBackfillLimitReached" ? "SQLite backfill limit reached" : key === "sqliteQueryMinResultsSatisfied" ? "SQLite min results satisfied" : key === "postgresQueryBackfillCount" ? "Postgres backfill count" : key === "postgresQueryBackfillLimitReached" ? "Postgres backfill limit reached" : key === "postgresQueryMinResultsSatisfied" ? "Postgres min results satisfied" : 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 === "sqliteQueryMaxBackfillsUsed" ? "SQLite max backfills" : key === "sqliteQueryMinResultsUsed" ? "SQLite min results" : key === "sqliteQueryFillPolicyUsed" ? "SQLite fill policy" : key === "postgresQueryJsRemainderClauseCount" ? "Postgres JS remainder clauses" : key === "postgresQueryMultiplierUsed" ? "Postgres query multiplier" : key === "postgresQueryCandidateLimitUsed" ? "Postgres candidate limit" : key === "postgresQueryMaxBackfillsUsed" ? "Postgres max backfills" : key === "postgresQueryMinResultsUsed" ? "Postgres min results" : key === "postgresQueryFillPolicyUsed" ? "Postgres fill policy" : 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 === "sqliteQueryBackfillLimitReached" ? "SQLite backfill limit reached" : key === "sqliteQueryMinResultsSatisfied" ? "SQLite min results satisfied" : key === "postgresQueryBackfillCount" ? "Postgres backfill count" : key === "postgresQueryBackfillLimitReached" ? "Postgres backfill limit reached" : key === "postgresQueryMinResultsSatisfied" ? "Postgres min results satisfied" : 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) => {
|
|
@@ -2525,6 +2525,7 @@ var formatSQLitePlannerCueSummary = (input) => {
|
|
|
2525
2525
|
typeof input?.sqliteQueryCandidateLimitUsed === "number" ? `cap ${input.sqliteQueryCandidateLimitUsed}` : undefined,
|
|
2526
2526
|
typeof input?.sqliteQueryMaxBackfillsUsed === "number" ? `backfills ${input.sqliteQueryMaxBackfillsUsed}` : undefined,
|
|
2527
2527
|
typeof input?.sqliteQueryMinResultsUsed === "number" ? `min ${input.sqliteQueryMinResultsUsed}` : undefined,
|
|
2528
|
+
input?.sqliteQueryFillPolicyUsed ? `fill ${input.sqliteQueryFillPolicyUsed}` : undefined,
|
|
2528
2529
|
typeof input?.sqliteQueryJsRemainderRatio === "number" ? `js ${(input.sqliteQueryJsRemainderRatio * 100).toFixed(0)}%` : undefined,
|
|
2529
2530
|
typeof input?.sqliteQueryTotalFilterClauseCount === "number" ? `total clauses ${input.sqliteQueryTotalFilterClauseCount}` : undefined,
|
|
2530
2531
|
typeof input?.sqliteQueryFilteredCandidates === "number" ? `filtered ${input.sqliteQueryFilteredCandidates}` : undefined,
|
|
@@ -2556,6 +2557,7 @@ var formatPostgresPlannerCueSummary = (input) => {
|
|
|
2556
2557
|
typeof input?.postgresQueryCandidateLimitUsed === "number" ? `cap ${input.postgresQueryCandidateLimitUsed}` : undefined,
|
|
2557
2558
|
typeof input?.postgresQueryMaxBackfillsUsed === "number" ? `backfills ${input.postgresQueryMaxBackfillsUsed}` : undefined,
|
|
2558
2559
|
typeof input?.postgresQueryMinResultsUsed === "number" ? `min ${input.postgresQueryMinResultsUsed}` : undefined,
|
|
2560
|
+
input?.postgresQueryFillPolicyUsed ? `fill ${input.postgresQueryFillPolicyUsed}` : undefined,
|
|
2559
2561
|
typeof input?.postgresQueryJsRemainderRatio === "number" ? `js ${(input.postgresQueryJsRemainderRatio * 100).toFixed(0)}%` : undefined,
|
|
2560
2562
|
typeof input?.postgresQueryTotalFilterClauseCount === "number" ? `total clauses ${input.postgresQueryTotalFilterClauseCount}` : undefined,
|
|
2561
2563
|
typeof input?.postgresQueryFilteredCandidates === "number" ? `filtered ${input.postgresQueryFilteredCandidates}` : undefined,
|
|
@@ -2587,6 +2589,7 @@ var formatComparisonSQLitePlannerCueSummary = (entry) => {
|
|
|
2587
2589
|
sqliteQueryCandidateLimitUsed: snapshot.sqliteQueryCandidateLimitUsed,
|
|
2588
2590
|
sqliteQueryMaxBackfillsUsed: snapshot.sqliteQueryMaxBackfillsUsed,
|
|
2589
2591
|
sqliteQueryMinResultsUsed: snapshot.sqliteQueryMinResultsUsed,
|
|
2592
|
+
sqliteQueryFillPolicyUsed: snapshot.sqliteQueryFillPolicyUsed,
|
|
2590
2593
|
sqliteQueryMode: snapshot.sqliteQueryMode,
|
|
2591
2594
|
sqliteQueryPushdownApplied: snapshot.sqliteQueryPushdownApplied,
|
|
2592
2595
|
sqliteQueryPushdownClauseCount: snapshot.sqliteQueryPushdownClauseCount,
|
|
@@ -2616,6 +2619,7 @@ var formatComparisonPostgresPlannerCueSummary = (entry) => {
|
|
|
2616
2619
|
postgresQueryCandidateLimitUsed: snapshot.postgresQueryCandidateLimitUsed,
|
|
2617
2620
|
postgresQueryMaxBackfillsUsed: snapshot.postgresQueryMaxBackfillsUsed,
|
|
2618
2621
|
postgresQueryMinResultsUsed: snapshot.postgresQueryMinResultsUsed,
|
|
2622
|
+
postgresQueryFillPolicyUsed: snapshot.postgresQueryFillPolicyUsed,
|
|
2619
2623
|
postgresQueryMultiplierUsed: snapshot.postgresQueryMultiplierUsed,
|
|
2620
2624
|
postgresQueryMode: snapshot.postgresQueryMode,
|
|
2621
2625
|
postgresQueryPushdownApplied: snapshot.postgresQueryPushdownApplied,
|
|
@@ -2786,6 +2790,7 @@ var formatHistorySQLitePlannerShift = (history) => {
|
|
|
2786
2790
|
sqliteQueryCandidateLimitUsed: entry.previousSqliteQueryCandidateLimitUsed,
|
|
2787
2791
|
sqliteQueryMaxBackfillsUsed: entry.previousSqliteQueryMaxBackfillsUsed,
|
|
2788
2792
|
sqliteQueryMinResultsUsed: entry.previousSqliteQueryMinResultsUsed,
|
|
2793
|
+
sqliteQueryFillPolicyUsed: entry.previousSqliteQueryFillPolicyUsed,
|
|
2789
2794
|
sqliteQueryMode: entry.previousSqliteQueryMode,
|
|
2790
2795
|
sqliteQueryPushdownApplied: entry.previousSqliteQueryPushdownApplied,
|
|
2791
2796
|
sqliteQueryPushdownClauseCount: entry.previousSqliteQueryPushdownClauseCount,
|
|
@@ -2825,6 +2830,7 @@ var formatHistoryPostgresPlannerShift = (history) => {
|
|
|
2825
2830
|
postgresQueryCandidateLimitUsed: entry.previousPostgresQueryCandidateLimitUsed,
|
|
2826
2831
|
postgresQueryMaxBackfillsUsed: entry.previousPostgresQueryMaxBackfillsUsed,
|
|
2827
2832
|
postgresQueryMinResultsUsed: entry.previousPostgresQueryMinResultsUsed,
|
|
2833
|
+
postgresQueryFillPolicyUsed: entry.previousPostgresQueryFillPolicyUsed,
|
|
2828
2834
|
postgresQueryMultiplierUsed: entry.previousPostgresQueryMultiplierUsed,
|
|
2829
2835
|
postgresQueryMode: entry.previousPostgresQueryMode,
|
|
2830
2836
|
postgresQueryPushdownApplied: entry.previousPostgresQueryPushdownApplied,
|
|
@@ -3894,6 +3900,7 @@ var buildEvaluationSQLiteQueryPlanSnapshot = (trace) => {
|
|
|
3894
3900
|
sqliteQueryCandidateLimitUsed: typeof metadata.sqliteQueryCandidateLimitUsed === "number" ? metadata.sqliteQueryCandidateLimitUsed : undefined,
|
|
3895
3901
|
sqliteQueryMaxBackfillsUsed: typeof metadata.sqliteQueryMaxBackfillsUsed === "number" ? metadata.sqliteQueryMaxBackfillsUsed : undefined,
|
|
3896
3902
|
sqliteQueryMinResultsUsed: typeof metadata.sqliteQueryMinResultsUsed === "number" ? metadata.sqliteQueryMinResultsUsed : undefined,
|
|
3903
|
+
sqliteQueryFillPolicyUsed: metadata.sqliteQueryFillPolicyUsed === "strict_topk" || metadata.sqliteQueryFillPolicyUsed === "satisfy_min_results" ? metadata.sqliteQueryFillPolicyUsed : undefined,
|
|
3897
3904
|
sqliteQueryPushdownCoverageRatio: typeof metadata.sqliteQueryPushdownCoverageRatio === "number" ? metadata.sqliteQueryPushdownCoverageRatio : undefined,
|
|
3898
3905
|
sqliteQueryJsRemainderRatio: typeof metadata.sqliteQueryJsRemainderRatio === "number" ? metadata.sqliteQueryJsRemainderRatio : undefined,
|
|
3899
3906
|
sqliteQueryReturnedCount: typeof metadata.sqliteQueryReturnedCount === "number" ? metadata.sqliteQueryReturnedCount : undefined,
|
|
@@ -3925,6 +3932,7 @@ var buildEvaluationPostgresQueryPlanSnapshot = (trace) => {
|
|
|
3925
3932
|
postgresQueryCandidateLimitUsed: typeof metadata.postgresQueryCandidateLimitUsed === "number" ? metadata.postgresQueryCandidateLimitUsed : undefined,
|
|
3926
3933
|
postgresQueryMaxBackfillsUsed: typeof metadata.postgresQueryMaxBackfillsUsed === "number" ? metadata.postgresQueryMaxBackfillsUsed : undefined,
|
|
3927
3934
|
postgresQueryMinResultsUsed: typeof metadata.postgresQueryMinResultsUsed === "number" ? metadata.postgresQueryMinResultsUsed : undefined,
|
|
3935
|
+
postgresQueryFillPolicyUsed: metadata.postgresQueryFillPolicyUsed === "strict_topk" || metadata.postgresQueryFillPolicyUsed === "satisfy_min_results" ? metadata.postgresQueryFillPolicyUsed : undefined,
|
|
3928
3936
|
postgresQueryPushdownCoverageRatio: typeof metadata.postgresQueryPushdownCoverageRatio === "number" ? metadata.postgresQueryPushdownCoverageRatio : undefined,
|
|
3929
3937
|
postgresQueryJsRemainderRatio: typeof metadata.postgresQueryJsRemainderRatio === "number" ? metadata.postgresQueryJsRemainderRatio : undefined,
|
|
3930
3938
|
postgresQueryReturnedCount: typeof metadata.postgresQueryReturnedCount === "number" ? metadata.postgresQueryReturnedCount : undefined,
|
|
@@ -5185,6 +5193,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5185
5193
|
const sqliteQueryCandidateLimitUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryCandidateLimitUsed ?? currentSnapshot?.sqliteQueryCandidateLimitUsed;
|
|
5186
5194
|
const sqliteQueryMaxBackfillsUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryMaxBackfillsUsed ?? currentSnapshot?.sqliteQueryMaxBackfillsUsed;
|
|
5187
5195
|
const sqliteQueryMinResultsUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryMinResultsUsed ?? currentSnapshot?.sqliteQueryMinResultsUsed;
|
|
5196
|
+
const sqliteQueryFillPolicyUsed = currentSQLiteQueryPlanSnapshot.sqliteQueryFillPolicyUsed ?? currentSnapshot?.sqliteQueryFillPolicyUsed;
|
|
5188
5197
|
const sqliteQueryPushdownCoverageRatio = currentSQLiteQueryPlanSnapshot.sqliteQueryPushdownCoverageRatio ?? currentSnapshot?.sqliteQueryPushdownCoverageRatio;
|
|
5189
5198
|
const sqliteQueryJsRemainderRatio = currentSQLiteQueryPlanSnapshot.sqliteQueryJsRemainderRatio ?? currentSnapshot?.sqliteQueryJsRemainderRatio;
|
|
5190
5199
|
const sqliteQueryFilteredCandidates = currentSQLiteQueryPlanSnapshot.sqliteQueryFilteredCandidates ?? currentSnapshot?.sqliteQueryFilteredCandidates;
|
|
@@ -5210,6 +5219,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5210
5219
|
const postgresQueryCandidateLimitUsed = currentPostgresQueryPlanSnapshot.postgresQueryCandidateLimitUsed ?? currentSnapshot?.postgresQueryCandidateLimitUsed;
|
|
5211
5220
|
const postgresQueryMaxBackfillsUsed = currentPostgresQueryPlanSnapshot.postgresQueryMaxBackfillsUsed ?? currentSnapshot?.postgresQueryMaxBackfillsUsed;
|
|
5212
5221
|
const postgresQueryMinResultsUsed = currentPostgresQueryPlanSnapshot.postgresQueryMinResultsUsed ?? currentSnapshot?.postgresQueryMinResultsUsed;
|
|
5222
|
+
const postgresQueryFillPolicyUsed = currentPostgresQueryPlanSnapshot.postgresQueryFillPolicyUsed ?? currentSnapshot?.postgresQueryFillPolicyUsed;
|
|
5213
5223
|
const postgresQueryPushdownCoverageRatio = currentPostgresQueryPlanSnapshot.postgresQueryPushdownCoverageRatio ?? currentSnapshot?.postgresQueryPushdownCoverageRatio;
|
|
5214
5224
|
const postgresQueryJsRemainderRatio = currentPostgresQueryPlanSnapshot.postgresQueryJsRemainderRatio ?? currentSnapshot?.postgresQueryJsRemainderRatio;
|
|
5215
5225
|
const postgresQueryFilteredCandidates = currentPostgresQueryPlanSnapshot.postgresQueryFilteredCandidates ?? currentSnapshot?.postgresQueryFilteredCandidates;
|
|
@@ -5229,7 +5239,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5229
5239
|
const previousFilterSignature = JSON.stringify(previousTrace?.inputFilter ?? undefined);
|
|
5230
5240
|
const currentRetrievalSignature = JSON.stringify(retrieval ?? undefined);
|
|
5231
5241
|
const previousRetrievalSignature = JSON.stringify(previousTrace?.inputRetrieval ?? undefined);
|
|
5232
|
-
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.sqliteQueryMaxBackfillsUsed !== sqliteQueryMaxBackfillsUsed || previousTrace.sqliteQueryMinResultsUsed !== sqliteQueryMinResultsUsed || previousTrace.sqliteQueryPushdownCoverageRatio !== sqliteQueryPushdownCoverageRatio || previousTrace.sqliteQueryJsRemainderRatio !== sqliteQueryJsRemainderRatio || previousTrace.sqliteQueryFilteredCandidates !== sqliteQueryFilteredCandidates || previousTrace.sqliteQueryInitialSearchK !== sqliteQueryInitialSearchK || previousTrace.sqliteQueryFinalSearchK !== sqliteQueryFinalSearchK || previousTrace.sqliteQuerySearchExpansionRatio !== sqliteQuerySearchExpansionRatio || previousTrace.sqliteQueryBackfillCount !== sqliteQueryBackfillCount || previousTrace.sqliteQueryBackfillLimitReached !== sqliteQueryBackfillLimitReached || previousTrace.sqliteQueryMinResultsSatisfied !== sqliteQueryMinResultsSatisfied || 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.postgresQueryMaxBackfillsUsed !== postgresQueryMaxBackfillsUsed || previousTrace.postgresQueryMinResultsUsed !== postgresQueryMinResultsUsed || previousTrace.postgresQueryPushdownCoverageRatio !== postgresQueryPushdownCoverageRatio || previousTrace.postgresQueryJsRemainderRatio !== postgresQueryJsRemainderRatio || previousTrace.postgresQueryFilteredCandidates !== postgresQueryFilteredCandidates || previousTrace.postgresQueryInitialSearchK !== postgresQueryInitialSearchK || previousTrace.postgresQueryFinalSearchK !== postgresQueryFinalSearchK || previousTrace.postgresQuerySearchExpansionRatio !== postgresQuerySearchExpansionRatio || previousTrace.postgresQueryBackfillCount !== postgresQueryBackfillCount || previousTrace.postgresQueryBackfillLimitReached !== postgresQueryBackfillLimitReached || previousTrace.postgresQueryMinResultsSatisfied !== postgresQueryMinResultsSatisfied || previousTrace.postgresQueryReturnedCount !== postgresQueryReturnedCount || previousTrace.postgresQueryCandidateYieldRatio !== postgresQueryCandidateYieldRatio || previousTrace.postgresQueryTopKFillRatio !== postgresQueryTopKFillRatio || previousTrace.postgresQueryUnderfilledTopK !== postgresQueryUnderfilledTopK || previousTrace.postgresQueryCandidateBudgetExhausted !== postgresQueryCandidateBudgetExhausted || previousTrace.postgresQueryCandidateCoverage !== postgresQueryCandidateCoverage || !areStageCountsEqual(previousStageCounts, stageCounts) ? "changed" : "unchanged";
|
|
5242
|
+
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.sqliteQueryMaxBackfillsUsed !== sqliteQueryMaxBackfillsUsed || previousTrace.sqliteQueryMinResultsUsed !== sqliteQueryMinResultsUsed || previousTrace.sqliteQueryFillPolicyUsed !== sqliteQueryFillPolicyUsed || previousTrace.sqliteQueryPushdownCoverageRatio !== sqliteQueryPushdownCoverageRatio || previousTrace.sqliteQueryJsRemainderRatio !== sqliteQueryJsRemainderRatio || previousTrace.sqliteQueryFilteredCandidates !== sqliteQueryFilteredCandidates || previousTrace.sqliteQueryInitialSearchK !== sqliteQueryInitialSearchK || previousTrace.sqliteQueryFinalSearchK !== sqliteQueryFinalSearchK || previousTrace.sqliteQuerySearchExpansionRatio !== sqliteQuerySearchExpansionRatio || previousTrace.sqliteQueryBackfillCount !== sqliteQueryBackfillCount || previousTrace.sqliteQueryBackfillLimitReached !== sqliteQueryBackfillLimitReached || previousTrace.sqliteQueryMinResultsSatisfied !== sqliteQueryMinResultsSatisfied || 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.postgresQueryMaxBackfillsUsed !== postgresQueryMaxBackfillsUsed || previousTrace.postgresQueryMinResultsUsed !== postgresQueryMinResultsUsed || previousTrace.postgresQueryFillPolicyUsed !== postgresQueryFillPolicyUsed || previousTrace.postgresQueryPushdownCoverageRatio !== postgresQueryPushdownCoverageRatio || previousTrace.postgresQueryJsRemainderRatio !== postgresQueryJsRemainderRatio || previousTrace.postgresQueryFilteredCandidates !== postgresQueryFilteredCandidates || previousTrace.postgresQueryInitialSearchK !== postgresQueryInitialSearchK || previousTrace.postgresQueryFinalSearchK !== postgresQueryFinalSearchK || previousTrace.postgresQuerySearchExpansionRatio !== postgresQuerySearchExpansionRatio || previousTrace.postgresQueryBackfillCount !== postgresQueryBackfillCount || previousTrace.postgresQueryBackfillLimitReached !== postgresQueryBackfillLimitReached || previousTrace.postgresQueryMinResultsSatisfied !== postgresQueryMinResultsSatisfied || previousTrace.postgresQueryReturnedCount !== postgresQueryReturnedCount || previousTrace.postgresQueryCandidateYieldRatio !== postgresQueryCandidateYieldRatio || previousTrace.postgresQueryTopKFillRatio !== postgresQueryTopKFillRatio || previousTrace.postgresQueryUnderfilledTopK !== postgresQueryUnderfilledTopK || previousTrace.postgresQueryCandidateBudgetExhausted !== postgresQueryCandidateBudgetExhausted || previousTrace.postgresQueryCandidateCoverage !== postgresQueryCandidateCoverage || !areStageCountsEqual(previousStageCounts, stageCounts) ? "changed" : "unchanged";
|
|
5233
5243
|
return {
|
|
5234
5244
|
candidateTopK: currentTrace?.candidateTopK ?? 0,
|
|
5235
5245
|
caseId: caseResult.caseId,
|
|
@@ -5270,6 +5280,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5270
5280
|
previousSqliteQueryCandidateLimitUsed: previousTrace?.sqliteQueryCandidateLimitUsed,
|
|
5271
5281
|
previousSqliteQueryMaxBackfillsUsed: previousTrace?.sqliteQueryMaxBackfillsUsed,
|
|
5272
5282
|
previousSqliteQueryMinResultsUsed: previousTrace?.sqliteQueryMinResultsUsed,
|
|
5283
|
+
previousSqliteQueryFillPolicyUsed: previousTrace?.sqliteQueryFillPolicyUsed,
|
|
5273
5284
|
previousSqliteQueryPushdownCoverageRatio: previousTrace?.sqliteQueryPushdownCoverageRatio,
|
|
5274
5285
|
previousSqliteQueryJsRemainderRatio: previousTrace?.sqliteQueryJsRemainderRatio,
|
|
5275
5286
|
previousSqliteQueryReturnedCount: previousTrace?.sqliteQueryReturnedCount,
|
|
@@ -5295,6 +5306,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5295
5306
|
previousPostgresQueryCandidateLimitUsed: previousTrace?.postgresQueryCandidateLimitUsed,
|
|
5296
5307
|
previousPostgresQueryMaxBackfillsUsed: previousTrace?.postgresQueryMaxBackfillsUsed,
|
|
5297
5308
|
previousPostgresQueryMinResultsUsed: previousTrace?.postgresQueryMinResultsUsed,
|
|
5309
|
+
previousPostgresQueryFillPolicyUsed: previousTrace?.postgresQueryFillPolicyUsed,
|
|
5298
5310
|
previousPostgresQueryPushdownCoverageRatio: previousTrace?.postgresQueryPushdownCoverageRatio,
|
|
5299
5311
|
previousPostgresQueryJsRemainderRatio: previousTrace?.postgresQueryJsRemainderRatio,
|
|
5300
5312
|
previousPostgresQueryReturnedCount: previousTrace?.postgresQueryReturnedCount,
|
|
@@ -5336,6 +5348,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5336
5348
|
sqliteQueryCandidateLimitUsed,
|
|
5337
5349
|
sqliteQueryMaxBackfillsUsed,
|
|
5338
5350
|
sqliteQueryMinResultsUsed,
|
|
5351
|
+
sqliteQueryFillPolicyUsed,
|
|
5339
5352
|
sqliteQueryPushdownCoverageRatio,
|
|
5340
5353
|
sqliteQueryJsRemainderRatio,
|
|
5341
5354
|
sqliteQueryReturnedCount,
|
|
@@ -5361,6 +5374,7 @@ var buildEvaluationCaseTraceSnapshot = ({
|
|
|
5361
5374
|
postgresQueryCandidateLimitUsed,
|
|
5362
5375
|
postgresQueryMaxBackfillsUsed,
|
|
5363
5376
|
postgresQueryMinResultsUsed,
|
|
5377
|
+
postgresQueryFillPolicyUsed,
|
|
5364
5378
|
postgresQueryPushdownCoverageRatio,
|
|
5365
5379
|
postgresQueryJsRemainderRatio,
|
|
5366
5380
|
postgresQueryReturnedCount,
|
|
@@ -12138,5 +12152,5 @@ export {
|
|
|
12138
12152
|
createAIStream
|
|
12139
12153
|
};
|
|
12140
12154
|
|
|
12141
|
-
//# debugId=
|
|
12155
|
+
//# debugId=0F1DBD41F100F9B064756E2164756E21
|
|
12142
12156
|
//# sourceMappingURL=index.js.map
|