Skip to content

Commit

Permalink
wip multipass websearch
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Jan 25, 2025
1 parent 38ad9dc commit 1094ea1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2909,6 +2909,7 @@
var documentdb_chunksize = 800;
var documentdb_data = "";
var websearch_enabled = false;
var websearch_multipass = false;
var generateimagesinterval = 750; //if generated images is enabled, it will trigger after every 700 new characters in context.
var nextgeneratedimagemilestone = generateimagesinterval; //used to keep track of when to generate the next image
var image_db = {}; //stores a dictionary of pending images
Expand Down Expand Up @@ -6167,6 +6168,7 @@
new_save_storyobj.documentdb_chunksize = documentdb_chunksize;
new_save_storyobj.documentdb_data = documentdb_data;
new_save_storyobj.websearch_enabled = websearch_enabled;
new_save_storyobj.websearch_multipass = websearch_multipass;

if (export_settings) {
new_save_storyobj.savedsettings = JSON.parse(JSON.stringify(localsettings));
Expand Down Expand Up @@ -6478,6 +6480,10 @@
{
websearch_enabled = storyobj.websearch_enabled;
}
if(storyobj.websearch_multipass)
{
websearch_multipass = storyobj.websearch_multipass;
}
} else {
//v2 load
if(storyobj.prompt != "")
Expand Down Expand Up @@ -11160,6 +11166,7 @@
documentdb_chunksize = parseInt(documentdb_chunksize);
documentdb_chunksize = cleannum(documentdb_chunksize,32,2048);
websearch_enabled = document.getElementById("websearch_enabled").checked?true:false;
websearch_multipass = document.getElementById("websearch_multipass").checked?true:false;
}

function set_personal_notes()
Expand Down Expand Up @@ -11418,6 +11425,7 @@
documentdb_chunksize = 800;
documentdb_data = "";
websearch_enabled = false;
websearch_multipass = false;
}
warn_on_quit = false;
show_corpo_leftpanel(false);
Expand Down Expand Up @@ -17658,6 +17666,7 @@
document.getElementById("documentdb_chunksize").value = documentdb_chunksize;
document.getElementById("documentdb_data").value = documentdb_data;
document.getElementById("websearch_enabled").checked = websearch_enabled;
document.getElementById("websearch_multipass").checked = websearch_multipass;
if(is_using_kcpp_with_websearch())
{
document.getElementById("websearchunsupporteddiv").classList.add("hidden");
Expand Down Expand Up @@ -20816,6 +20825,11 @@
<div class="justifyleft settingsmall" title="Enable WebSearch">Enable WebSearch </div>
<input title="Enable WebSearch" type="checkbox" id="websearch_enabled" style="margin:0px 0 0;">
</div>
<div class="settinglabel" style="padding: 4px;">
<div class="justifyleft settingsmall" title="Use Multiple Passes">Use Multiple Passes <span class="helpicon">?<span
class="helptext">Using this option will run a second LLM tool call to summarize context and create a more accurate search query. Slower but may be more accurate.</span></span></div>
<input title="Use Multiple Passes" type="checkbox" id="websearch_multipass" style="margin:0px 0 0;">
</div>
</div>

<div class="context_tab_container" id="token_tab_container">
Expand Down

0 comments on commit 1094ea1

Please sign in to comment.