Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
f814b08b
Commit
f814b08b
authored
Feb 03, 2024
by
Timothy J. Baek
Browse files
fix: disable all documents by default
parent
eb2b1ab7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
src/lib/components/chat/MessageInput/Documents.svelte
src/lib/components/chat/MessageInput/Documents.svelte
+10
-6
No files found.
src/lib/components/chat/MessageInput/Documents.svelte
View file @
f814b08b
...
@@ -17,12 +17,16 @@
...
@@ -17,12 +17,16 @@
let collections = [];
let collections = [];
$: collections = [
$: collections = [
{
...($documents.length > 0
name: 'All Documents',
? [
type: 'collection',
{
title: 'All Documents',
name: 'All Documents',
collection_names: $documents.map((doc) => doc.collection_name)
type: 'collection',
},
title: 'All Documents',
collection_names: $documents.map((doc) => doc.collection_name)
}
]
: []),
...$documents
...$documents
.reduce((a, e, i, arr) => {
.reduce((a, e, i, arr) => {
return [...new Set([...a, ...(e?.content?.tags ?? []).map((tag) => tag.name)])];
return [...new Set([...a, ...(e?.content?.tags ?? []).map((tag) => tag.name)])];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment