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:
@@ -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": "",
|
||||
|
||||
Reference in New Issue
Block a user