feat: multimodal support (image) (#27793)

Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Wu Tianwei
2025-12-09 11:44:50 +08:00
committed by GitHub
parent a44b800c85
commit 14d1b3f9b3
77 changed files with 2932 additions and 579 deletions

View File

@@ -20,12 +20,14 @@ import { EffectColor } from '../../settings/chunk-structure/types'
type Props = {
disabled?: boolean
value: RetrievalConfig
showMultiModalTip?: boolean
onChange: (value: RetrievalConfig) => void
}
const RetrievalMethodConfig: FC<Props> = ({
disabled = false,
value,
showMultiModalTip = false,
onChange,
}) => {
const { t } = useTranslation()
@@ -110,6 +112,7 @@ const RetrievalMethodConfig: FC<Props> = ({
type={RETRIEVE_METHOD.semantic}
value={value}
onChange={onChange}
showMultiModalTip={showMultiModalTip}
/>
</OptionCard>
)}
@@ -132,6 +135,7 @@ const RetrievalMethodConfig: FC<Props> = ({
type={RETRIEVE_METHOD.fullText}
value={value}
onChange={onChange}
showMultiModalTip={showMultiModalTip}
/>
</OptionCard>
)}
@@ -155,6 +159,7 @@ const RetrievalMethodConfig: FC<Props> = ({
type={RETRIEVE_METHOD.hybrid}
value={value}
onChange={onChange}
showMultiModalTip={showMultiModalTip}
/>
</OptionCard>
)}