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 CategoryPanel Component

From Leeroopedia
Knowledge Sources
Domains Frontend, Knowledge_Base
Last Updated 2026-02-12 06:00 GMT

Overview

Parser category display panel that resolves parser metadata to title, description, and example images for the dataset settings page.

Description

CategoryPanel accepts a chunkMethod string and looks up the matching parser from useSelectParserList. It resolves the parser's localized description via camelCase key transformation and sanitizes HTML output with DOMPurify. Example images are resolved from ImageMap keyed by chunk method. When the chunk method is tag, it additionally renders the TagTabs sub-component. If no images exist for the method, it shows an Empty state with a fallback SVG.

Usage

Rendered in the dataset configuration settings to show the user a visual explanation of the selected parsing method.

Code Reference

Source Location

Signature

const CategoryPanel = ({ chunkMethod }: { chunkMethod: string }) => JSX.Element;
export default CategoryPanel;

Import

import CategoryPanel from './category-panel';

I/O Contract

Inputs

Name Type Required Description
chunkMethod string Yes The parser/chunk method identifier to display

Outputs

Name Type Description
JSX.Element React element Panel with title, description, example images, and optional TagTabs

Usage Examples

<CategoryPanel chunkMethod="naive" />

Related Pages

Page Connections

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