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