mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-19 20:37:51 +00:00
upgraded ui
This commit is contained in:
parent
85dc9af23d
commit
c6d04fbebc
@ -1,5 +1,5 @@
|
||||
# =================== Lord Of Large Language Multimodal Systems Configuration file ===========================
|
||||
version: 114
|
||||
version: 115
|
||||
binding_name: null
|
||||
model_name: null
|
||||
model_variant: null
|
||||
@ -242,7 +242,7 @@ audio_silenceTimer: 5000
|
||||
rag_databases: [] # This is the list of paths to database sources. Each database is a folder containing data
|
||||
rag_vectorizer: bert # possible values bert, tfidf, word2vec
|
||||
rag_chunk_size: 512 # number of tokens per chunk
|
||||
|
||||
rag_n_chunks: 4 #Number of chunks to recover from the database
|
||||
|
||||
activate_skills_lib: false # Activate vectorizing previous conversations
|
||||
skills_lib_database_name: "default" # Default skills database
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit a011195b8693c60eadc6e3df9a8fbcf1a0b2bfe3
|
||||
Subproject commit 647371e772bdadef1beb21a13a0ee7b294825e87
|
@ -28,4 +28,4 @@ tiktoken
|
||||
|
||||
pipmaster>=0.1.2
|
||||
|
||||
lollmsvectordb>=0.1.5
|
||||
lollmsvectordb>=0.3.0
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
4
web/dist/index.html
vendored
4
web/dist/index.html
vendored
@ -6,8 +6,8 @@
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>LoLLMS WebUI - Welcome</title>
|
||||
<script type="module" crossorigin src="/assets/index-fd9facd7.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-ca6ae81a.css">
|
||||
<script type="module" crossorigin src="/assets/index-7a6c9c0a.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-2967a7cb.css">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
@ -972,6 +972,58 @@
|
||||
<button @click="addDataSource" class="mt-2 px-2 py-1 bg-blue-500 text-white rounded">Add Data Source</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="data_vectorization_save_db" class="text-sm font-bold" style="margin-right: 1rem;">RAG Vectorizer:</label>
|
||||
</td>
|
||||
<td>
|
||||
<select
|
||||
id="rag_vectorizer"
|
||||
required
|
||||
v-model="configFile.rag_vectorizer"
|
||||
@change="settingsChanged=true"
|
||||
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
|
||||
>
|
||||
<option value="bert">Bert Vectorizer</option>
|
||||
<option value="tfidf">TFIDF Vectorizer</option>
|
||||
<option value="word2vec">Word2Vec Vectorizer</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="rag_chunk_size" class="text-sm font-bold" style="margin-right: 1rem;">RAG chunk size:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="rag_chunk_size" v-model="configFile.data_vectorization_chunk_size"
|
||||
@change="settingsChanged=true"
|
||||
type="range" min="2" max="64000" step="1"
|
||||
class="flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
|
||||
<input v-model="configFile.rag_chunk_size"
|
||||
type="number"
|
||||
@change="settingsChanged=true"
|
||||
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="min-width: 200px;">
|
||||
<label for="rag_n_chunks" class="text-sm font-bold" style="margin-right: 1rem;">RAG number of chunks:</label>
|
||||
</td>
|
||||
<td>
|
||||
<input id="rag_n_chunks" v-model="configFile.data_vectorization_chunk_size"
|
||||
@change="settingsChanged=true"
|
||||
type="range" min="2" max="64000" step="1"
|
||||
class="flex-none h-2 mt-14 mb-2 w-full bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700 focus:ring-blue-500 focus:border-blue-500 dark:border-gray-600 dark:placeholder-gray-400 dark:focus:ring-blue-500 dark:focus:border-blue-500">
|
||||
|
||||
<input v-model="configFile.rag_n_chunks"
|
||||
type="number"
|
||||
@change="settingsChanged=true"
|
||||
class="w-full mt-1 px-2 py-1 border border-gray-300 rounded dark:bg-gray-600"
|
||||
>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</Card>
|
||||
<Card title="Data Vectorization" :is_subcard="true" class="pb-2 m-2">
|
||||
@ -3950,17 +4002,21 @@ export default {
|
||||
},
|
||||
async select_folder(index){
|
||||
try{
|
||||
let infos = await axios.post('/add_rag_database', {client_id:this.$store.state.client_id}, this.posts_headers)
|
||||
if (infos){
|
||||
console.log(infos.data)
|
||||
console.log(index)
|
||||
console.log(this.$store.state.config.rag_databases)
|
||||
this.$store.state.config.rag_databases[index]=`${infos.data["database_name"]}::${infos.data["database_path"]}`
|
||||
this.settingsChanged=true;
|
||||
}
|
||||
else{
|
||||
this.$store.state.toast.showToast("Failed to select a folder", 4, false)
|
||||
}
|
||||
socket.on("rag_db_added", (infos)=>{
|
||||
console.log(infos)
|
||||
if (infos){
|
||||
console.log(infos)
|
||||
console.log(index)
|
||||
console.log(this.$store.state.config.rag_databases)
|
||||
this.$store.state.config.rag_databases[index]=`${infos.data["database_name"]}::${infos.data["database_path"]}`
|
||||
this.settingsChanged=true;
|
||||
}
|
||||
else{
|
||||
this.$store.state.toast.showToast("Failed to select a folder", 4, false)
|
||||
}
|
||||
|
||||
});
|
||||
await axios.post('/add_rag_database', {client_id:this.$store.state.client_id}, this.posts_headers)
|
||||
}
|
||||
catch{
|
||||
this.$store.state.toast.showToast("Failed to select a folder", 4, false)
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit ac7607caacdb8438bc47c18b7682ce49f4a4987f
|
||||
Subproject commit bfdc493b5880ef0ac20eb4dfb9ef4aaae0c857a2
|
Loading…
Reference in New Issue
Block a user