working new rag

This commit is contained in:
Saifeddine ALOUI 2024-06-19 03:09:16 +02:00
parent 47a6e626a0
commit ee79c18c33
4 changed files with 160 additions and 163 deletions

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
View File

@ -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-7a6c9c0a.js"></script>
<link rel="stylesheet" href="/assets/index-2967a7cb.css">
<script type="module" crossorigin src="/assets/index-07528ce6.js"></script>
<link rel="stylesheet" href="/assets/index-23969ee7.css">
</head>
<body>
<div id="app"></div>

View File

@ -4005,10 +4005,7 @@ export default {
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.$store.state.config.rag_databases[index]=`${infos["database_name"]}::${infos["database_path"]}`
this.settingsChanged=true;
}
else{