diff --git a/src/lib/components/workspace/Models/Knowledge.svelte b/src/lib/components/workspace/Models/Knowledge.svelte index 94653b9b9..f853925cc 100644 --- a/src/lib/components/workspace/Models/Knowledge.svelte +++ b/src/lib/components/workspace/Models/Knowledge.svelte @@ -1,5 +1,6 @@ + + { + if (e.detail === false) { + onClose(); + } + }} +> + + +
+ +
+ {#each items as item} + { + if (!knowledge.find((k) => k.name === item.name)) { + knowledge = [...knowledge, item]; + } + }} + > +
+ {#if (item?.type ?? 'doc') === 'doc'} + + + + + {:else if item.type === 'collection'} + + + + + {/if} +
+ +
+
+
+ {item?.type ?? 'Document'} +
+ +
+ {item.name} +
+
+
+
+ {/each} +
+
+
+