is_activated(); $plugin_url = plugin_dir_url(dirname(__FILE__)); // Check if integrations are active $pinecone_options = get_option('mxchat_pinecone_addon_options', array()); $is_pinecone_active = ($pinecone_options['mxchat_use_pinecone'] ?? '0') === '1'; $vectorstore_options = get_option('mxchat_openai_vectorstore_options', array()); $is_vectorstore_active = ($vectorstore_options['mxchat_use_openai_vectorstore'] ?? '0') === '1'; // Extract page data extract($page_data); ?>
(is_array($vectorstore_options) ? ($vectorstore_options['mxchat_use_openai_vectorstore'] ?? '0') : '0') === '1', 'vectorstore_ids' => is_array($vectorstore_options) ? ($vectorstore_options['mxchat_vectorstore_ids'] ?? '') : '', ), $bot_id); return empty($vectorstore['use_vectorstore']); } /** * Render Multi-Bot Selector */ function mxchat_render_knowledge_bot_selector($multibot_active, $current_bot_id) { if (!$multibot_active || !class_exists('MxChat_Multi_Bot_Manager')) { return; } $multi_bot_manager = MxChat_Multi_Bot_Core_Manager::get_instance(); $available_bots = $multi_bot_manager->get_available_bots(); ?>
| id); ?> |
display_content) ? $first_prompt->display_content : $first_prompt->article_content;
$content_preview = mb_substr($parent_content, 0, 100);
echo esc_html($content_preview . '...');
?>
|
|||
| id); ?> |
$preview_length) : ?>
|
source_url ?? ''; } echo MxChat_Knowledge_Manager::mxchat_source_cell_html($actual_source, $current_bot_id, false); ?> | ||
' . esc_html(number_format_i18n($mapped_count)) . ''); ?>