feat: Adds document intelligence model configuration (#19692)

* Adds document intelligence model configuration

Enables the configuration of the Document Intelligence model to be used by the RAG pipeline.

This allows users to specify the model they want to use for document processing, providing flexibility and control over the extraction process.

* Added Titel to Document Intelligence Model Config

Added Titel to Document Intelligence Model Config
This commit is contained in:
Henne
2025-12-02 14:41:09 -05:00
committed by GitHub
parent e5c6b739c2
commit a7e614ca4c
8 changed files with 36 additions and 0 deletions
+1
View File
@@ -35,6 +35,7 @@ type ChunkConfigForm = {
type DocumentIntelligenceConfigForm = {
key: string;
endpoint: string;
model: string;
};
type ContentExtractConfigForm = {
@@ -597,6 +597,18 @@
required={false}
/>
</div>
<div class="my-0.5 flex flex-col w-full">
<div class=" mb-1 text-xs font-medium">{$i18n.t('Document Intelligence Model')}</div>
<div class="flex w-full">
<div class="flex-1 mr-2">
<input
class="flex-1 w-full text-sm bg-transparent outline-hidden"
placeholder={$i18n.t('Enter Document Intelligence Model')}
bind:value={RAGConfig.DOCUMENT_INTELLIGENCE_MODEL}
/>
</div>
</div>
</div>
{:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'mistral_ocr'}
<div class="my-0.5 flex gap-2 pr-2">
<input
@@ -462,6 +462,7 @@
"Docling Server URL required.": "",
"Document": "",
"Document Intelligence": "",
"Document Intelligence Model": "",
"Document Intelligence endpoint required.": "",
"Documentation": "",
"Documents": "",
@@ -564,6 +565,7 @@
"Enter Docling Server URL": "",
"Enter Document Intelligence Endpoint": "",
"Enter Document Intelligence Key": "",
"Enter Document Intelligence Model": "",
"Enter domains separated by commas (e.g., example.com,site.org,!excludedsite.com)": "",
"Enter Exa API Key": "",
"Enter External Document Loader API Key": "",
@@ -462,6 +462,7 @@
"Docling Server URL required.": "",
"Document": "",
"Document Intelligence": "",
"Document Intelligence Model": "",
"Document Intelligence endpoint required.": "",
"Documentation": "",
"Documents": "",
@@ -564,6 +565,7 @@
"Enter Docling Server URL": "",
"Enter Document Intelligence Endpoint": "",
"Enter Document Intelligence Key": "",
"Enter Document Intelligence Model": "",
"Enter domains separated by commas (e.g., example.com,site.org,!excludedsite.com)": "",
"Enter Exa API Key": "",
"Enter External Document Loader API Key": "",