INSERT INTO sys_enum (catalog, type, name, value, strvalue, sort, version, remark)
VALUES
    ('rag', 'chunk_strategy', '固定长度切片', 1, 'FIXED_LENGTH', 1, 1, 'RAG文档切片方式'),
    ('rag', 'chunk_strategy', '按段落切片', 2, 'PARAGRAPH', 2, 1, 'RAG文档切片方式'),
    ('rag', 'chunk_strategy', '按标题层级切片', 3, 'HEADING', 3, 1, 'RAG文档切片方式'),
    ('rag', 'chunk_strategy', '按表格行切片', 4, 'TABLE_ROW', 4, 1, 'RAG文档切片方式'),
    ('rag', 'chunk_strategy', '按分隔符切片', 5, 'DELIMITER', 5, 1, 'RAG文档切片方式'),
    ('rag', 'chunk_strategy', '语义切片', 6, 'SEMANTIC', 6, 1, 'RAG文档切片方式')
ON CONFLICT (catalog, type, name)
DO UPDATE SET
    value = EXCLUDED.value,
    strvalue = EXCLUDED.strvalue,
    sort = EXCLUDED.sort,
    remark = EXCLUDED.remark,
    update_time = CURRENT_TIMESTAMP;
