2023-09-07 23:28:06 +02:00
< div class = "vectors_settings" >
< div class = "inline-drawer" >
< div class = "inline-drawer-toggle inline-drawer-header" >
< b > Vector Storage< / b >
< div class = "inline-drawer-icon fa-solid fa-circle-chevron-down down" > < / div >
< / div >
< div class = "inline-drawer-content" >
< label class = "checkbox_label" for = "vectors_enabled" >
< input id = "vectors_enabled" type = "checkbox" class = "checkbox" >
Enabled
< / label >
2023-09-08 12:57:27 +02:00
< label for = "vectors_source" >
2023-09-10 01:44:20 +02:00
Vectorization Source
2023-09-08 12:57:27 +02:00
< / label >
< select id = "vectors_source" class = "select" >
2023-09-14 22:40:13 +02:00
< option value = "transformers" > Local (Transformers)< / option >
2023-09-08 12:57:27 +02:00
< option value = "openai" > OpenAI< / option >
2023-09-25 14:29:28 +02:00
< option value = "palm" > Google MakerSuite (PaLM)< / option >
2023-09-08 12:57:27 +02:00
< / select >
2023-09-09 20:26:04 +02:00
< div id = "vectors_advanced_settings" data-newbie-hidden >
< label for = "vectors_template" >
Insertion template:
< / label >
2023-09-09 23:15:02 +02:00
< textarea id = "vectors_template" class = "text_pole textarea_compact autoSetHeight" rows = "2" placeholder = "Use {{text}} macro to specify the position of retrieved text." > < / textarea >
2023-09-09 20:26:04 +02:00
< label for = "vectors_position" > Injection position:< / label >
< div class = "radio_group" >
2023-09-20 06:06:43 +02:00
< label >
< input type = "radio" name = "vectors_position" value = "2" / >
Before Main Prompt / Story String
< / label >
<!-- Keep these as 0 and 1 to interface with the setExtensionPrompt function -->
2023-09-09 20:26:04 +02:00
< label >
< input type = "radio" name = "vectors_position" value = "0" / >
After Main Prompt / Story String
< / label >
< label >
< input type = "radio" name = "vectors_position" value = "1" / >
2023-09-25 18:29:24 +02:00
In-chat @ Depth < input id = "vectors_depth" class = "text_pole widthUnset" type = "number" min = "0" max = "999" / >
2023-09-09 20:26:04 +02:00
< / label >
< / div >
< div class = "flex-container" >
< div class = "flex1" title = "Prevents last N messages from being placed out of order." >
< label for = "vectors_protect" >
< small > Retain#< / small >
< / label >
< input type = "number" id = "vectors_protect" class = "text_pole widthUnset" min = "1" max = "99" / >
< / div >
< div class = "flex1" title = "How many last messages will be matched for relevance." >
< label for = "vectors_query" >
< small > Query#< / small >
< / label >
< input type = "number" id = "vectors_query" class = "text_pole widthUnset" min = "1" max = "99" / >
< / div >
< div class = "flex1" title = "How many past messages to insert as memories." >
< label for = "vectors_insert" >
< small > Insert#< / small >
< / label >
< input type = "number" id = "vectors_insert" class = "text_pole widthUnset" min = "1" max = "99" / >
< / div >
< / div >
< / div >
< small >
2023-09-08 14:25:10 +02:00
Old messages are vectorized gradually as you chat.
To process all previous messages, click the button below.
2023-09-09 20:26:04 +02:00
< / small >
2023-09-08 14:25:10 +02:00
< div id = "vectors_vectorize_all" class = "menu_button menu_button_icon" >
Vectorize All
< / div >
< div id = "vectorize_progress" style = "display: none;" >
< small >
Processed < span id = "vectorize_progress_percent" > 0< / span > % of messages.
ETA: < span id = "vectorize_progress_eta" > ...< / span > seconds.
< / small >
< / div >
2023-09-07 23:28:06 +02:00
< / div >
< / div >
< / div >