ragflow / web /src /components /top-n-item.tsx
balibabu
feat: add custom edge (#1061)
be99f83
raw
history blame
412 Bytes
import { useTranslate } from '@/hooks/commonHooks';
import { Form, Slider } from 'antd';
type FieldType = {
top_n?: number;
};
const TopNItem = () => {
const { t } = useTranslate('chat');
return (
<Form.Item<FieldType>
label={t('topN')}
name={'top_n'}
initialValue={8}
tooltip={t('topNTip')}
>
<Slider max={30} />
</Form.Item>
);
};
export default TopNItem;