Implementation:Infiniflow Ragflow GeneralForm Component
| Knowledge Sources | |
|---|---|
| Domains | Frontend, Knowledge_Base |
| Last Updated | 2026-02-12 06:00 GMT |
Overview
Multi-field settings form for knowledge base general configuration including name, language, avatar, description, permissions, embedding model, page rank, and tag settings.
Description
GeneralForm composes multiple form fields within a FormProvider context. It renders: a required name input, a language select populated from LanguageTranslationMap constants, an AvatarUpload for the avatar field, a description input (with null-to-empty-string coercion), PermissionFormField, EmbeddingModelItem (in edit mode), PageRankFormField, and TagItems. All fields use react-hook-form FormField wrappers with consistent label/control/message layout.
Usage
Rendered as the general settings tab within the dataset configuration page, providing the primary metadata editing interface for a knowledge base.
Code Reference
Source Location
- Repository: Infiniflow_Ragflow
- File: web/src/pages/dataset/dataset-setting/general-form.tsx
- Lines: 1-120
Signature
export function GeneralForm(): JSX.Element;
Import
import { GeneralForm } from './general-form';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (FormContext) | react-hook-form context | Yes | Must provide name, language, avatar, description, permission, embd_id, pagerank, parser_config fields |
Outputs
| Name | Type | Description |
|---|---|---|
| JSX.Element | React element | Complete general settings form section |
Usage Examples
<FormProvider {...form}>
<GeneralForm />
</FormProvider>