Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

feat: Pop-up prompt message after modifying the dialog settings #2088 (#2114)

balibabufc172b4a79ce
diff --git a/web/src/components/message-item/index.tsx b/web/src/components/message-item/index.tsx
index a90e921755..176e4c7084 100644
--- a/web/src/components/message-item/index.tsx
+++ b/web/src/components/message-item/index.tsx
@@ -17,7 +17,7 @@ import { Avatar, Button, Flex, List, Space, Typography } from 'antd';
import FileIcon from '../file-icon';
import IndentedTreeModal from '../indented-tree/modal';
import NewDocumentLink from '../new-document-link';
-import { AssistantGroupButton, UserGroupButton } from './group-button';
+// import { AssistantGroupButton, UserGroupButton } from './group-button';
import styles from './index.less';
const { Text } = Typography;
@@ -111,13 +111,13 @@ const MessageItem = ({
)}
<Flex vertical gap={8} flex={1}>
<Space>
- {isAssistant ? (
+ {/* {isAssistant ? (
<AssistantGroupButton></AssistantGroupButton>
) : (
<UserGroupButton></UserGroupButton>
- )}
+ )} */}
- {/* <b>{isAssistant ? '' : nickname}</b> */}
+ <b>{isAssistant ? '' : nickname}</b>
</Space>
<div
className={
diff --git a/web/src/hooks/chat-hooks.ts b/web/src/hooks/chat-hooks.ts
index 477c8125c7..fe25abe392 100644
--- a/web/src/hooks/chat-hooks.ts
+++ b/web/src/hooks/chat-hooks.ts
@@ -94,7 +94,7 @@ export const useSetNextDialog = () => {
if (data.retcode === 0) {
queryClient.invalidateQueries({ queryKey: ['fetchDialogList'] });
message.success(
- i18n.t(`message.${params.id ? 'modified' : 'created'}`),
+ i18n.t(`message.${params.dialog_id ? 'modified' : 'created'}`),
);
}
return data?.retcode;
diff --git a/web/src/hooks/logic-hooks.ts b/web/src/hooks/logic-hooks.ts
index 45ba6b0df7..7c0b66e750 100644
--- a/web/src/hooks/logic-hooks.ts
+++ b/web/src/hooks/logic-hooks.ts
@@ -243,7 +243,7 @@ export const useSendMessageWithSse = (
const val = JSON.parse(value?.data || '');
const d = val?.data;
if (typeof d !== 'boolean') {
- console.info('data:', d);
+ // console.info('data:', d);
setAnswer({
...d,
conversationId: body?.conversation_id,
diff --git a/web/src/interfaces/database/chat.ts b/web/src/interfaces/database/chat.ts
index 843caaf6a8..cadd0b8f05 100644
--- a/web/src/interfaces/database/chat.ts
+++ b/web/src/interfaces/database/chat.ts
@@ -34,6 +34,7 @@ export interface IDialog {
description: string;
icon: string;
id: string;
+ dialog_id?: string;
kb_ids: string[];
kb_names: string[];
language: string;