' . esc_html__( 'Search configuration saved.', 'ai-search' ) . '
'; // Reload settings $similarity_threshold = get_option( 'ai_search_similarity_threshold', 0.30 ); $term_weight = (int) get_option( 'ai_search_term_weight', 20 ); } // Dual embeddings status for the UI (v1.48.0) $dual_enabled = AI_Search::is_dual_enabled(); $dual_body_percent = (int) round( ( (float) get_option( AI_Search::OPTION_DUAL_BODY_WEIGHT, AI_Search::DUAL_BODY_WEIGHT_DEFAULT ) ) * 100 ); $dual_progress = class_exists( 'AI_Search_Dual_Backfill' ) ? AI_Search_Dual_Backfill::progress() : [ 'total' => 0, 'done' => 0, 'pending' => 0, 'percent' => 0 ]; ?>', '' ); ?>