From 1c2e36f1b7e1c059a07e96e29967bb89e870e87c Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 26 Feb 2025 13:59:08 -0800 Subject: [PATCH] refac --- .../admin/Settings/Documents.svelte | 223 +++++++++--------- 1 file changed, 113 insertions(+), 110 deletions(-) diff --git a/src/lib/components/admin/Settings/Documents.svelte b/src/lib/components/admin/Settings/Documents.svelte index cd0581394..9ce035972 100644 --- a/src/lib/components/admin/Settings/Documents.svelte +++ b/src/lib/components/admin/Settings/Documents.svelte @@ -318,6 +318,119 @@
+
+
+
+ {$i18n.t('Content Extraction Engine')} +
+ +
+ +
+
+ {#if contentExtractionEngine === 'tika'} +
+
+ +
+
+ {:else if contentExtractionEngine === 'document_intelligence'} +
+ + + +
+ {/if} +
+ + {#if contentExtractionEngine === ''} +
+
+ {$i18n.t('PDF Extract Images (OCR)')} +
+
+ +
+
+ {/if} + +
+
{$i18n.t('Text Splitter')}
+
+ +
+
+ +
+
+
+
+ {$i18n.t('Chunk Size')} +
+
+ +
+
+ +
+
+ {$i18n.t('Chunk Overlap')} +
+ +
+ +
+
+
+
+ + +
+
{$i18n.t('Embedding')}
+ +
+
{$i18n.t('Embedding Model Engine')}
@@ -644,116 +757,6 @@
-
-
{$i18n.t('Content')}
- -
- -
-
-
- {$i18n.t('Content Extraction Engine')} -
- -
- -
-
- {#if contentExtractionEngine === ''} -
-
-
{$i18n.t('PDF Extract Images (OCR)')}
- -
- -
-
-
- {:else if contentExtractionEngine === 'tika'} -
-
- -
-
- {:else if contentExtractionEngine === 'document_intelligence'} -
- - - -
- {/if} -
- -
-
{$i18n.t('Text Splitter')}
-
- -
-
- -
-
-
- {$i18n.t('Chunk Size')} -
-
- -
-
- -
-
- {$i18n.t('Chunk Overlap')} -
- -
- -
-
-
-
-
{$i18n.t('Files')}