-
-
+
+
+ {$i18n.t('Enable Individual RAG Configuration')}
+ {
+ RAGConfig.DEFAULT_RAG_SETTINGS = !enableIndividualRagConfig;
+ }}
+ />
-
-
+
+
+ {#if enableIndividualRagConfig}
+
+ {#if RAGConfig.CONTENT_EXTRACTION_ENGINE === ''}
+
+
+
+ {$i18n.t('PDF Extract Images (OCR)')}
+
+
+
+
+
+
+ {:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'tika'}
+
+ {:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'docling'}
+
+
+
+ {:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'document_intelligence'}
+
+
+
+
+ {:else if RAGConfig.CONTENT_EXTRACTION_ENGINE === 'mistral_ocr'}
+
+
+
+ {/if}
+
+
+
+
+
+ {$i18n.t('Bypass Embedding and Retrieval')}
+
+
+
+
+
+
+
+
+
+ {#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL}
+
+
{$i18n.t('Text Splitter')}
+
+
+
+
+
+
+
+
+
+ {$i18n.t('Chunk Size')}
+
+
+
+
+
+
+
+
+ {$i18n.t('Chunk Overlap')}
+
+
+
+
+
+
+
+
+ {/if}
+
+ {#if !RAGConfig.BYPASS_EMBEDDING_AND_RETRIEVAL}
+
+
{$i18n.t('Embedding')}
+
+
+
+
+
+
+ {$i18n.t('Embedding Model Engine')}
+
+
+
+
+
+
+ {#if embeddingEngine === 'openai'}
+
+
+
+
+
+ {:else if embeddingEngine === 'ollama'}
+
+
+
+
+
+ {/if}
+
+
+
+
{$i18n.t('Embedding Model')}
+
+
+ {#if embeddingEngine === 'ollama'}
+
+ {:else}
+
+
+
+
+
+ {#if embeddingEngine === ''}
+
+ {/if}
+
+ {/if}
+
+
+
+ {$i18n.t(
+ 'Warning: If you update or change your embedding model, you will need to re-import all documents.'
+ )}
+
+
+
+ {#if embeddingEngine === 'ollama' || embeddingEngine === 'openai'}
+
+
+ {$i18n.t('Embedding Batch Size')}
+
+
+
+
+
+
+ {/if}
+
+
+
+
{$i18n.t('Retrieval')}
+
+
+
+
+
{$i18n.t('Full Context Mode')}
+
+
+
+
+
+
+
+ {#if !RAGConfig.RAG_FULL_CONTEXT}
+
+
{$i18n.t('Hybrid Search')}
+
+ {
+ submitHandler();
+ }}
+ />
+
+
+
+ {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
+
+
{$i18n.t('Reranking Model')}
+
+
+
+
+
+
+
+
+
+
+ {/if}
+
+
+
{$i18n.t('Top K')}
+
+
+
+
+
+ {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
+
+
{$i18n.t('Top K Reranker')}
+
+
+
+
+ {/if}
+
+ {#if RAGConfig.ENABLE_RAG_HYBRID_SEARCH === true}
+
+
+
+ {$i18n.t('Relevance Threshold')}
+
+
+
+
+
+
+ {$i18n.t(
+ 'Note: If you set a minimum score, the search will only return documents with a score greater than or equal to the minimum score.'
+ )}
+
+
+ {/if}
+ {/if}
+
+
+
{$i18n.t('RAG Template')}
+
+
+
+
+
+
+
+ {/if}
+ {/if}
+
+
+
+
+
+
\ No newline at end of file