| @@ -1,5 +1,4 @@ | ||
| 1 | -<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> | |
| 2 | 1 | |
| 3 | 2 | |
| 4 | 3 | <div class="card-body p-sm-0"> |
| 5 | 4 | |
| @@ -17,9 +16,9 @@ | ||
| 17 | 16 | <div class="mb-3"> |
| 18 | 17 | <div class="form-check form-switch my-4"> |
| 19 | 18 | <input class="form-check-input" type="checkbox" <?php echo (get_option('qcld_gemini_enabled') == 1) ? esc_attr('checked','chatbot') :'';?> role="switch" value="" id="<?php esc_attr_e('qcld_gemini_enabled','chatbot'); ?>"> |
| 20 | 19 | <label class="form-check-label" for="<?php esc_attr_e('qcld_gemini_enabled','chatbot'); ?>"> |
| 21 | - <?php esc_html_e('Enable Gemini AI','chatbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from Gemini only, disable Site Search from Settings->Action Start Menu)','chatbot'); ?></span> | |
| 20 | + <?php esc_html_e('Enable Gemini AI','chatbot'); ?><span style="color:red"> <?php esc_html_e('(if you want results from Gemini only, disable Site Search from Settings->Start Menu)','chatbot'); ?></span> | |
| 22 | 21 | </label> |
| 23 | 22 | </div> |
| 24 | 23 | </div> |
| 25 | 24 | </div> |
| @@ -85,9 +84,9 @@ | ||
| 85 | 84 | <div class="row gx-0"> |
| 86 | 85 | <div class="mb-3 form-check "> |
| 87 | 86 | <label for="qcld_gemini_api_key" class="form-label"><?php esc_html_e('Gemini API Key','chatbot');?></label> |
| 88 | 87 | <input type="password" class="form-control" id="qcld_gemini_api_key" name="qcld_gemini_api_key" placeholder="Enter your Gemini API Key" value="<?php echo esc_attr(get_option('qcld_gemini_api_key')); ?>"> |
| 89 | - <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://aistudio.google.com/app/api-keys. ','chatbot'); ?></br><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span></small> | |
| 88 | + <small class="form-text text-muted"><?php esc_html_e('Get your API key from https://aistudio.google.com/app/apikey. ','chatbot'); ?></br><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span></small> | |
| 90 | 89 | </div> |
| 91 | 90 | </div> |
| 92 | 91 | <div class="row gx-0"> |
| 93 | 92 | <div class="mb-3 form-check "> |
| @@ -136,9 +135,9 @@ | ||
| 136 | 135 | <div id="wp-chatbot-gemini-rag" class="tab-pane"> |
| 137 | 136 | <div class="col-sm-12"> |
| 138 | 137 | <div class="wrap"> |
| 139 | 138 | <h3>Gemini RAG Settings</h3> |
| 140 | - <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-gemini" href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>">Knowledgebase</a> for Post types and other data to embed. </p><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span> | |
| 139 | + <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-gemini" href="<?php echo admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab'); ?>">Knowledgebase</a> for Post types and other data to embed. </p><span style="color:red"><?php esc_html_e('It requires a paid Gemini API plan', 'chatbot'); ?> </span> | |
| 141 | 140 | <div class="form-check form-switch my-4"> |
| 142 | 141 | <input class="form-check-input" |
| 143 | 142 | type="checkbox" |
| 144 | 143 | id="is_page_rag_enabled_gemini" |
| @@ -160,9 +159,9 @@ | ||
| 160 | 159 | <p> |
| 161 | 160 | <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b> |
| 162 | 161 | <ol> |
| 163 | 162 | <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'chatbot'); ?></li> |
| 164 | - <li><?php echo esc_html__( 'Click "Embed All Selected Sources" button, after selecting the sources from the', 'chatbot'); ?> <a href="<?php echo esc_url( admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab') ); ?>" target="_blank">knowledgebase tab</a></li> | |
| 163 | + <li><?php echo esc_html__( 'Click “Embed All Selected Sources” button, after selecting the sources from the', 'chatbot'); ?> <a href="<?php echo admin_url('admin.php?page=wpbot_openAi#ai-knowledge-base-tab'); ?>" target="_blank">knowledgebase tab</a></li> | |
| 165 | 164 | <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li> |
| 166 | 165 | <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li> |
| 167 | 166 | <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li> |
| 168 | 167 | <li><?php echo esc_html__( 'You need to configure the OpenAI API key, AI Model and System Command under the main OpenAI Settings', 'chatbot'); ?></li> |