mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-30 16:45:35 +08:00
### What problem does this PR solve? Feat: Added toc enhance field to chat and retrieval operator configuration #10436 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -5,6 +5,7 @@ import { KnowledgeBaseFormField } from '@/components/knowledge-base-item';
|
||||
import { MetadataFilter } from '@/components/metadata-filter';
|
||||
import { SwitchFormField } from '@/components/switch-fom-field';
|
||||
import { TavilyFormField } from '@/components/tavily-form-field';
|
||||
import { TOCEnhanceFormField } from '@/components/toc-enhance-form-field';
|
||||
import {
|
||||
FormControl,
|
||||
FormField,
|
||||
@ -109,6 +110,7 @@ export default function ChatBasicSetting() {
|
||||
label={t('tts')}
|
||||
tooltip={t('ttsTip')}
|
||||
></SwitchFormField>
|
||||
<TOCEnhanceFormField name="prompt_config.toc_enhance"></TOCEnhanceFormField>
|
||||
<TavilyFormField></TavilyFormField>
|
||||
<KnowledgeBaseFormField></KnowledgeBaseFormField>
|
||||
<MetadataFilter></MetadataFilter>
|
||||
|
||||
@ -49,6 +49,7 @@ export function ChatSettings({ switchSettingVisible }: ChatSettingsProps) {
|
||||
parameters: [],
|
||||
reasoning: false,
|
||||
cross_languages: [],
|
||||
toc_enhance: false,
|
||||
},
|
||||
top_n: 8,
|
||||
similarity_threshold: 0.2,
|
||||
|
||||
@ -33,6 +33,7 @@ export function useChatSettingSchema() {
|
||||
tavily_api_key: z.string().optional(),
|
||||
reasoning: z.boolean().optional(),
|
||||
cross_languages: z.array(z.string()).optional(),
|
||||
toc_enhance: z.boolean().optional(),
|
||||
});
|
||||
|
||||
const formSchema = z.object({
|
||||
|
||||
@ -34,6 +34,7 @@ export const useRenameChat = () => {
|
||||
use_kg: false,
|
||||
reasoning: false,
|
||||
parameters: [{ key: 'knowledge', optional: false }],
|
||||
toc_enhance: false,
|
||||
},
|
||||
llm_id: tenantInfo.data.llm_id,
|
||||
llm_setting: {},
|
||||
|
||||
Reference in New Issue
Block a user