added global databases

This commit is contained in:
Saifeddine ALOUI 2024-06-18 01:14:23 +02:00
parent 8e7f29c3cd
commit 8a05493128
4 changed files with 9 additions and 9 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-19c8685c.js"></script>
<link rel="stylesheet" href="/assets/index-0938ac6a.css">
<script type="module" crossorigin src="/assets/index-f484b744.js"></script>
<link rel="stylesheet" href="/assets/index-a28785bd.css">
</head>
<body>
<div id="app"></div>

View File

@ -477,9 +477,9 @@ export default {
return Array.isArray(this.dataSourceNames) && this.dataSourceNames.length > 0;
},
dataSourceNames() {
console.log("dataSourceNames", this.$store.state.config.data_sources);
// Extract the names from the data_sources array and transform them into the desired format
const formattedDataSources = this.$store.state.config.data_sources.map(dataSource => {
console.log("dataSourceNames", this.$store.state.config.rag_databases);
// Extract the names from the rag_databases array and transform them into the desired format
const formattedDataSources = this.$store.state.config.rag_databases.map(dataSource => {
console.log("entry", dataSource);
const parts = dataSource.split('::');
console.log("extracted", parts[0]);