mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-31 23:55:06 +08:00
Fix: Memory-related bug fixes (#12238)
### What problem does this PR solve? Fix: Memory-related bug fixes - Forget memory button text - Adjust memory storage interface ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -10,6 +10,12 @@ export enum MemoryType {
|
||||
Episodic = 'episodic',
|
||||
Procedural = 'procedural',
|
||||
}
|
||||
export const MemoryOptions = (t: TFunction) => [
|
||||
{ label: t('memories.raw'), value: MemoryType.Raw },
|
||||
{ label: t('memories.semantic'), value: MemoryType.Semantic },
|
||||
{ label: t('memories.episodic'), value: MemoryType.Episodic },
|
||||
{ label: t('memories.procedural'), value: MemoryType.Procedural },
|
||||
];
|
||||
export const createMemoryFields = (t: TFunction) =>
|
||||
[
|
||||
{
|
||||
@ -24,12 +30,7 @@ export const createMemoryFields = (t: TFunction) =>
|
||||
type: FormFieldType.MultiSelect,
|
||||
placeholder: t('memories.descriptionPlaceholder'),
|
||||
tooltip: t('memories.memoryTypeTooltip'),
|
||||
options: [
|
||||
{ label: 'Raw', value: MemoryType.Raw },
|
||||
{ label: 'Semantic', value: MemoryType.Semantic },
|
||||
{ label: 'Episodic', value: MemoryType.Episodic },
|
||||
{ label: 'Procedural', value: MemoryType.Procedural },
|
||||
],
|
||||
options: MemoryOptions(t),
|
||||
required: true,
|
||||
customValidate: (value) => {
|
||||
if (!value.includes(MemoryType.Raw) || !value.length) {
|
||||
|
||||
Reference in New Issue
Block a user