Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Infiniflow Ragflow GeneralForm Component

From Leeroopedia
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

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>

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment