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 Settings Constants

From Leeroopedia
Revision as of 11:22, 16 February 2026 by Admin (talk | contribs) (Auto-imported from implementations/Infiniflow_Ragflow_Settings_Constants.md)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Sources
Domains Frontend, Configuration
Last Updated 2026-02-12 06:00 GMT

Overview

Concrete registry of user setting constants including form schemas, system model type definitions, and default configuration values for the RAGFlow frontend.

Description

The constants/setting.ts module defines enums, Zod schemas, and default values used in the user settings page. This includes system model type mappings, tenant configuration schemas, and default form values for LLM provider settings.

Usage

Import these constants when building or validating user settings forms, particularly for LLM provider configuration and system model type selection.

Code Reference

Source Location

Signature

// Key exports (representative)
export const settingFormSchema: ZodSchema;
export const SystemModelTypeMap: Record<string, string>;
export const defaultFormValues: Record<string, any>;

Import

import { settingFormSchema, SystemModelTypeMap } from '@/constants/setting';

I/O Contract

Inputs

Name Type Required Description
Module-level constants; no inputs

Outputs

Name Type Description
settingFormSchema ZodSchema Validation schema for settings form
SystemModelTypeMap Record Mapping of model types to display labels

Usage Examples

import { settingFormSchema } from '@/constants/setting';
const parsed = settingFormSchema.safeParse(formValues);

Related Pages

Page Connections

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