mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Features: Memory page rendering and other bug fixes - Rendering of the Memory list page - Rendering of the message list page in Memory - Fixed an issue where the empty state was incorrectly displayed when search criteria were applied - Added a web link for the API-Key - modifying the index_mode attribute of the Confluence data source. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [x] New Feature (non-breaking change which adds functionality)
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import { FormFieldConfig, FormFieldType } from '@/components/dynamic-form';
|
|
import { EmbeddingSelect } from '@/pages/dataset/dataset-setting/configuration/common-item';
|
|
import { t } from 'i18next';
|
|
|
|
export const createMemoryFields = [
|
|
{
|
|
name: 'memory_name',
|
|
label: t('memory.name'),
|
|
placeholder: t('memory.memoryNamePlaceholder'),
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'memory_type',
|
|
label: t('memory.memoryType'),
|
|
type: FormFieldType.MultiSelect,
|
|
placeholder: t('memory.descriptionPlaceholder'),
|
|
options: [
|
|
{ label: 'Raw', value: 'raw' },
|
|
{ label: 'Semantic', value: 'semantic' },
|
|
{ label: 'Episodic', value: 'episodic' },
|
|
{ label: 'Procedural', value: 'procedural' },
|
|
],
|
|
required: true,
|
|
},
|
|
{
|
|
name: 'embedding',
|
|
label: t('memory.embeddingModel'),
|
|
placeholder: t('memory.selectModel'),
|
|
required: true,
|
|
// hideLabel: true,
|
|
// type: 'custom',
|
|
render: (field) => <EmbeddingSelect field={field} isEdit={false} />,
|
|
},
|
|
{
|
|
name: 'llm',
|
|
label: t('memory.llm'),
|
|
placeholder: t('memory.selectModel'),
|
|
required: true,
|
|
type: FormFieldType.Select,
|
|
},
|
|
] as FormFieldConfig[];
|