PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.7.4
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.7.4
8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 8.5.5 8.5.4 8.5.3 8.5.2 All 533 releases
chatbot / includes / integration / openai / admin / openai-rag.php

openai-rag.php in WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services 8.7.4, at includes/integration/openai/admin/openai-rag.php

54 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>
54