mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-29 16:05:35 +08:00
Fix: Memory sava issue (#12243)
### What problem does this PR solve? Fix: Memory sava issue ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -99,7 +99,7 @@ export default {
|
|||||||
llmTooltip: '分析对话内容,提取关键信息,并生成结构化的记忆摘要。',
|
llmTooltip: '分析对话内容,提取关键信息,并生成结构化的记忆摘要。',
|
||||||
embeddingModelTooltip:
|
embeddingModelTooltip:
|
||||||
'将文本转换为数值向量,用于语义相似度搜索和记忆检索。',
|
'将文本转换为数值向量,用于语义相似度搜索和记忆检索。',
|
||||||
embeddingModelError: '记忆类型为必填项,且"row"类型不可删除。',
|
embeddingModelError: '记忆类型为必填项,且"原始"类型不可删除。',
|
||||||
memoryTypeTooltip: `原始: 用户与代理之间的原始对话内容(默认必需)。
|
memoryTypeTooltip: `原始: 用户与代理之间的原始对话内容(默认必需)。
|
||||||
语义记忆: 关于用户和世界的通用知识和事实。
|
语义记忆: 关于用户和世界的通用知识和事实。
|
||||||
情景记忆: 带时间戳的特定事件和经历记录。
|
情景记忆: 带时间戳的特定事件和经历记录。
|
||||||
|
|||||||
@ -85,6 +85,7 @@ export const ReparseDialog = ({
|
|||||||
onCancel={() => handleCancel()}
|
onCancel={() => handleCancel()}
|
||||||
hidden={hidden}
|
hidden={hidden}
|
||||||
open={visible}
|
open={visible}
|
||||||
|
okButtonText={t('common.confirm')}
|
||||||
content={{
|
content={{
|
||||||
title: t(`knowledgeDetails.parseFileTip`),
|
title: t(`knowledgeDetails.parseFileTip`),
|
||||||
node: (
|
node: (
|
||||||
|
|||||||
@ -204,7 +204,7 @@ export function MemoryTable({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<Table rootClassName="max-h-[calc(100vh-222px)]">
|
<Table rootClassName="max-h-[calc(100vh-282px)]">
|
||||||
<TableHeader>
|
<TableHeader>
|
||||||
{table.getHeaderGroups().map((headerGroup) => (
|
{table.getHeaderGroups().map((headerGroup) => (
|
||||||
<TableRow key={headerGroup.id}>
|
<TableRow key={headerGroup.id}>
|
||||||
@ -327,7 +327,7 @@ export function MemoryTable({
|
|||||||
</Modal>
|
</Modal>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="flex items-center justify-end py-4 absolute bottom-3 right-3">
|
<div className="flex items-center justify-end absolute bottom-3 right-3">
|
||||||
<RAGFlowPagination
|
<RAGFlowPagination
|
||||||
{...pick(pagination, 'current', 'pageSize')}
|
{...pick(pagination, 'current', 'pageSize')}
|
||||||
total={total}
|
total={total}
|
||||||
|
|||||||
@ -18,10 +18,10 @@ export const advancedSettingsFormSchema = {
|
|||||||
user_prompt: z.string().optional(),
|
user_prompt: z.string().optional(),
|
||||||
};
|
};
|
||||||
export const defaultAdvancedSettingsForm = {
|
export const defaultAdvancedSettingsForm = {
|
||||||
permissions: 'me',
|
permissions: '',
|
||||||
storage_type: 'table',
|
storage_type: '',
|
||||||
forgetting_policy: 'FIFO',
|
forgetting_policy: '',
|
||||||
temperature: 0.7,
|
temperature: 0,
|
||||||
system_prompt: '',
|
system_prompt: '',
|
||||||
user_prompt: '',
|
user_prompt: '',
|
||||||
};
|
};
|
||||||
|
|||||||
@ -89,7 +89,7 @@ export const MemoryModelForm = () => {
|
|||||||
<RenderField
|
<RenderField
|
||||||
field={{
|
field={{
|
||||||
name: 'memory_size',
|
name: 'memory_size',
|
||||||
label: t('memory.config.memorySize'),
|
label: t('memory.config.memorySize') + ' (Bytes)',
|
||||||
type: FormFieldType.Number,
|
type: FormFieldType.Number,
|
||||||
horizontal: true,
|
horizontal: true,
|
||||||
// placeholder: t('memory.config.memorySizePlaceholder'),
|
// placeholder: t('memory.config.memorySizePlaceholder'),
|
||||||
|
|||||||
@ -5,12 +5,13 @@ import {
|
|||||||
FormFieldConfig,
|
FormFieldConfig,
|
||||||
FormFieldType,
|
FormFieldType,
|
||||||
} from '@/components/dynamic-form';
|
} from '@/components/dynamic-form';
|
||||||
|
import { Button } from '@/components/ui/button';
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||||
import { Input } from '@/components/ui/input';
|
import { Input } from '@/components/ui/input';
|
||||||
import { Separator } from '@/components/ui/separator';
|
import { Separator } from '@/components/ui/separator';
|
||||||
import { RunningStatus } from '@/constants/knowledge';
|
import { RunningStatus } from '@/constants/knowledge';
|
||||||
import { t } from 'i18next';
|
import { t } from 'i18next';
|
||||||
import { CirclePause, Loader2, Repeat } from 'lucide-react';
|
import { CirclePause, Repeat } from 'lucide-react';
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
import { FieldValues } from 'react-hook-form';
|
import { FieldValues } from 'react-hook-form';
|
||||||
import {
|
import {
|
||||||
@ -177,17 +178,18 @@ const SourceDetailPage = () => {
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="max-w-[1200px] flex justify-end">
|
<div className="max-w-[1200px] flex justify-end">
|
||||||
<button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onSubmit}
|
onClick={onSubmit}
|
||||||
disabled={addLoading}
|
disabled={addLoading}
|
||||||
className="flex items-center justify-center min-w-[100px] px-4 py-2 bg-primary text-white rounded-md disabled:opacity-60"
|
loading={addLoading}
|
||||||
>
|
>
|
||||||
{addLoading && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
|
{t('common.confirm')}
|
||||||
|
{/* {addLoading && <Loader2 className="mr-2 h-4 w-4 animate-spin" />}
|
||||||
{addLoading
|
{addLoading
|
||||||
? t('modal.loadingText', { defaultValue: 'Submitting...' })
|
? t('modal.loadingText', { defaultValue: 'Submitting...' })
|
||||||
: t('modal.okText', { defaultValue: 'Submit' })}
|
: t('modal.okText', { defaultValue: 'Submit' })} */}
|
||||||
</button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<section className="flex flex-col gap-2">
|
<section className="flex flex-col gap-2">
|
||||||
<div className="text-2xl text-text-primary mb-2">
|
<div className="text-2xl text-text-primary mb-2">
|
||||||
|
|||||||
Reference in New Issue
Block a user