Changeset 3263660
- Timestamp:
- 03/29/2025 12:20:37 AM (12 months ago)
- Location:
- oc3-semantic-box/trunk
- Files:
-
- 5 edited
-
lib/controllers/AdminConfigController.php (modified) (1 diff)
-
lib/controllers/PublicSearchController.php (modified) (1 diff)
-
oc3-semantic-box.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
views/backend/config_gpt_general.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
oc3-semantic-box/trunk/lib/controllers/AdminConfigController.php
r3234031 r3263660 491 491 $config_pinecone_confidence = (int)$_POST[OC3SEMANTICB_PREFIX_LOW . 'config_pinecone_confidence']; 492 492 update_option(OC3SEMANTICB_PREFIX_LOW . 'config_pinecone_confidence', $config_pinecone_confidence); 493 } 494 495 if (isset($_POST[OC3SEMANTICB_PREFIX_LOW . 'rag_keywords'])) { 496 $rag_keywords = sanitize_text_field(wp_unslash($_POST[OC3SEMANTICB_PREFIX_LOW . 'rag_keywords'])); 497 update_option(OC3SEMANTICB_PREFIX_LOW . 'rag_keywords', $rag_keywords); 493 498 } 494 499 -
oc3-semantic-box/trunk/lib/controllers/PublicSearchController.php
r3234031 r3263660 107 107 $config_pinecone_topk = sanitize_text_field(get_option(OC3SEMANTICB_PREFIX_LOW . 'config_pinecone_topk', 10)); 108 108 $config_pinecone_confidence = (int) (get_option(OC3SEMANTICB_PREFIX_LOW . 'config_pinecone_confidence', '')); 109 109 $additional_keywords = sanitize_text_field(get_option(OC3SEMANTICB_PREFIX_LOW . 'rag_keywords', '')); 110 if(strlen(trim($additional_keywords)) > 0){ 111 $search .= ' '.$additional_keywords; 112 } 110 113 if (!class_exists('Oc3Semanticb_RagUtils')) { 111 114 require_once OC3SEMANTICB_PATH . '/lib/helpers/RagUtils.php'; -
oc3-semantic-box/trunk/oc3-semantic-box.php
r3234031 r3263660 8 8 Text Domain: oc3-semantic-box 9 9 Domain Path: /lang 10 Version: 1.0. 110 Version: 1.0.2 11 11 License: GPL-2.0+ 12 12 License URI: http://www.gnu.org/licenses/gpl-2.0.txt -
oc3-semantic-box/trunk/readme.txt
r3234031 r3263660 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 Stable tag: 1.0. 110 Stable tag: 1.0.2 11 11 12 12 Semantic search of website content with meaning... … … 21 21 * Personalize the appearance of the search box: colors, styles, text, search result 22 22 * Ability to choose whether the search field will be visible only to registered visitors or not. 23 23 * Refining queries by adding keywords to each user search request that is sent to the semantic database. 24 24 25 25 … … 87 87 == Changelog == 88 88 89 = 1.0.2 = 90 * Refining queries by adding keywords to each user search request that is sent to the semantic database. 91 89 92 = 1.0.1 = 90 93 * Launch! -
oc3-semantic-box/trunk/views/backend/config_gpt_general.php
r3234031 r3263660 467 467 </div> 468 468 </div> 469 469 <div class="oc3semanticb_block_content"> 470 <div class="oc3semanticb_row_header"> 471 <label for="oc3semanticb_rag_keywords" font-weight: 700;"><?php esc_html_e('Additional Keywords', 'oc3-semantic-box'); ?> *:</label> 472 </div> 473 <div class="oc3semanticb_row_content oc3semanticb_pr"> 474 <div style="position: relative;"> 475 <?php $rag_keywords = get_option('oc3semanticb_rag_keywords', ''); ?> 476 <input type="text" id="oc3semanticb_rag_keywords" 477 name="oc3semanticb_rag_keywords" 478 value="<?php echo esc_html($rag_keywords); ?>" /> 479 </div> 480 <p class="oc3semanticb_input_description"> 481 <span style="display: inline;"> 482 <?php esc_html_e('Additional keywords will be added to each user search request that is sent to the semantic database. This is useful for refining queries. For example, if you have a knowledge database about Woocommerce, but a user types the question: What are the attributes of an order item? This query may be considered irrelevant by the vector database and result in no records being returned. But when you add Woocommerce as an additional keyword, the following text will be sent to the semantic database: “What are the attributes of an order item? Woocommerce”. Thus, additional keywords improve queries.. ', 'oc3-semantic-box'); ?> 483 </span> 484 </p> 485 </div> 486 </div> 470 487 471 488 </div>
Note: See TracChangeset
for help on using the changeset viewer.