File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,8 +303,8 @@ export async function handleAction(params) {
303303 const rawResults = searchBM25 ( bm25 , input , candidateLimit ) ;
304304 const orderedResults = hasMixedOrigins
305305 ? [ ...rawResults ] . sort ( ( a , b ) => {
306- const ao = docMap . get ( a . id ) ?. origin || "local " ;
307- const bo = docMap . get ( b . id ) ?. origin || "local " ;
306+ const ao = docMap . get ( a . id ) ?. origin || "baseline " ;
307+ const bo = docMap . get ( b . id ) ?. origin || "baseline " ;
308308 if ( ao !== bo ) return ao === "local" ? - 1 : 1 ;
309309 return b . score - a . score ;
310310 } )
Original file line number Diff line number Diff line change @@ -1421,6 +1421,11 @@ async function runSearch(
14211421 baseline_url : index . baseline_url ,
14221422 knowledge_base_url : knowledgeBaseUrl ,
14231423 search_index_size : bm25 . N ,
1424+ overlay_doc_count : index . stats . canon ,
1425+ baseline_doc_count : index . stats . baseline ,
1426+ overlay_hits_in_top_n : 0 ,
1427+ baseline_hits_in_top_n : 0 ,
1428+ result_grouping : knowledgeBaseUrl ? "overlay_first" : "default" ,
14241429 duration_ms : Date . now ( ) - startMs ,
14251430 generated_at : new Date ( ) . toISOString ( ) ,
14261431 } ,
You can’t perform that action at this time.
0 commit comments