| @@ -1,53 +1,53 @@ | ||
| 1 | -<div class="row g-0"> | |
| 2 | - <div class="col-sm-12"> | |
| 3 | - <div class="qcl-openai"> | |
| 4 | - | |
| 5 | - <!-- =========================== | |
| 6 | - RAG MAIN SWITCH | |
| 7 | - ============================ --> | |
| 8 | - <div class="wrap"> | |
| 9 | - <h3>OpenAI RAG Settings</h3> | |
| 10 | - <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-openai" href="<?php | |
| 11 | -if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| 12 | -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> | |
| 13 | - <span style="color:red"><?php esc_html_e('It requires a paid OpenAI API plan', 'chatbot'); ?> </span> | |
| 14 | - <div class="form-check form-switch my-4"> | |
| 15 | - <input class="form-check-input" | |
| 16 | - type="checkbox" | |
| 17 | - id="is_page_rag_enabled" | |
| 18 | - <?php echo (get_option('is_page_rag_enabled') == '1') ? 'checked' : ''; ?>> | |
| 19 | - <label class="form-check-label" for="is_page_rag_enabled"> | |
| 20 | - Enable RAG | |
| 21 | - </label> | |
| 22 | - </div> | |
| 23 | - </div> | |
| 24 | - <div class="mb-3"> | |
| 25 | - <a class="btn btn-success" id="save_setting"><?php esc_html_e( 'Save settings','chatbot');?></a> | |
| 26 | - </div> | |
| 27 | - </div> | |
| 28 | - <div class="qcld-row"> | |
| 29 | - <h2></h2> | |
| 30 | - <div class="alert alert-info mt-20" role="alert"> | |
| 31 | - <p><b><?php echo esc_html__( 'Fine Tuning VS GPT Assistants VS RAG:', 'chatbot'); ?></b></p> | |
| 32 | - <p> | |
| 33 | - <?php echo esc_html__( 'We suggest using GPT Assistants or RAG instead of Fine Tuning as Fine Tuning requires a lot of properly formatted data and GPT Assistants are easier to set up. You can still use your website data to train the bot.', 'chatbot'); ?> | |
| 34 | - </p></br> | |
| 35 | - <p> | |
| 36 | - <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b> | |
| 37 | - <ol> | |
| 38 | - <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'chatbot'); ?></li> | |
| 39 | - <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> | |
| 40 | - <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li> | |
| 41 | - <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li> | |
| 42 | - <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li> | |
| 43 | - <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> | |
| 44 | - </ol> | |
| 45 | - <strong><?php echo esc_html__( 'You can update or re-embed content at any time without retraining.', 'chatbot'); ?></strong> | |
| 46 | - </p> | |
| 47 | - | |
| 48 | - </div> | |
| 49 | - | |
| 50 | -</div> | |
| 51 | - | |
| 52 | - </div> | |
| 53 | -</div> | |
| 1 | +<div class="row g-0"> | |
| 2 | + <div class="col-sm-12"> | |
| 3 | + <div class="qcl-openai"> | |
| 4 | + | |
| 5 | + <!-- =========================== | |
| 6 | + RAG MAIN SWITCH | |
| 7 | + ============================ --> | |
| 8 | + <div class="wrap"> | |
| 9 | + <h3>OpenAI RAG Settings</h3> | |
| 10 | + <p>If you enable RAG, you must configure the <a id="ai-knowledge-base-tab-openai" href="<?php | |
| 11 | +if (!defined('ABSPATH')) exit; // Exit if accessed directly | |
| 12 | +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> | |
| 13 | + <span style="color:red"><?php esc_html_e('It requires a paid OpenAI API plan', 'chatbot'); ?> </span> | |
| 14 | + <div class="form-check form-switch my-4"> | |
| 15 | + <input class="form-check-input" | |
| 16 | + type="checkbox" | |
| 17 | + id="is_page_rag_enabled" | |
| 18 | + <?php echo (get_option('is_page_rag_enabled') == '1') ? 'checked' : ''; ?>> | |
| 19 | + <label class="form-check-label" for="is_page_rag_enabled"> | |
| 20 | + Enable RAG | |
| 21 | + </label> | |
| 22 | + </div> | |
| 23 | + </div> | |
| 24 | + <div class="mb-3"> | |
| 25 | + <a class="btn btn-success" id="save_setting"><?php esc_html_e( 'Save settings','chatbot');?></a> | |
| 26 | + </div> | |
| 27 | + </div> | |
| 28 | + <div class="qcld-row"> | |
| 29 | + <h2></h2> | |
| 30 | + <div class="alert alert-info mt-20" role="alert"> | |
| 31 | + <p><b><?php echo esc_html__( 'Fine Tuning VS GPT Assistants VS RAG:', 'chatbot'); ?></b></p> | |
| 32 | + <p> | |
| 33 | + <?php echo esc_html__( 'We suggest using GPT Assistants or RAG instead of Fine Tuning as Fine Tuning requires a lot of properly formatted data and GPT Assistants are easier to set up. You can still use your website data to train the bot.', 'chatbot'); ?> | |
| 34 | + </p></br> | |
| 35 | + <p> | |
| 36 | + <b><?php echo esc_html__( 'How to Use RAG in This Plugin:', 'chatbot'); ?></b> | |
| 37 | + <ol> | |
| 38 | + <li><?php echo esc_html__( 'Enable RAG from the settings panel', 'chatbot'); ?></li> | |
| 39 | + <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> | |
| 40 | + <li><?php echo esc_html__( '(Optional) Upload PDFs or CSV files for embedding', 'chatbot'); ?></li> | |
| 41 | + <li><?php echo esc_html__( 'The system automatically stores embeddings in the database', 'chatbot'); ?></li> | |
| 42 | + <li><?php echo esc_html__( 'User questions will now be answered using your site’s knowledge base', 'chatbot'); ?></li> | |
| 43 | + <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> | |
| 44 | + </ol> | |
| 45 | + <strong><?php echo esc_html__( 'You can update or re-embed content at any time without retraining.', 'chatbot'); ?></strong> | |
| 46 | + </p> | |
| 47 | + | |
| 48 | + </div> | |
| 49 | + | |
| 50 | +</div> | |
| 51 | + | |
| 52 | + </div> | |
| 53 | +</div> | |