Skip to content

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

fix: fixed the issue of 404 error in the user settings page of the demo site (#948)

balibabu196f2b445fdb
diff --git a/web/src/interfaces/database/knowledge.ts b/web/src/interfaces/database/knowledge.ts
index 654f597020..048848c76b 100644
--- a/web/src/interfaces/database/knowledge.ts
+++ b/web/src/interfaces/database/knowledge.ts
@@ -78,7 +78,7 @@ export interface IChunk {
chunk_id: string;
content_with_weight: string;
doc_id: string;
- docnm_kwd: string;
+ doc_name: string;
img_id: string;
important_kwd: any[];
positions: number[][];
@@ -89,7 +89,7 @@ export interface ITestingChunk {
content_ltks: string;
content_with_weight: string;
doc_id: string;
- docnm_kwd: string;
+ doc_name: string;
img_id: string;
important_kwd: any[];
kb_id: string;
diff --git a/web/src/pages/user-setting/sidebar/index.tsx b/web/src/pages/user-setting/sidebar/index.tsx
index 03764450ea..5f16871cdc 100644
--- a/web/src/pages/user-setting/sidebar/index.tsx
+++ b/web/src/pages/user-setting/sidebar/index.tsx
@@ -1,3 +1,4 @@
+import { Domain } from '@/constants/common';
import { useSecondPathName } from '@/hooks/routeHook';
import type { MenuProps } from 'antd';
import { Flex, Menu } from 'antd';
@@ -23,7 +24,9 @@ const SideBar = () => {
const { version, fetchSystemVersion } = useFetchSystemVersion();
useEffect(() => {
- fetchSystemVersion();
+ if (location.host !== Domain) {
+ fetchSystemVersion();
+ }
}, [fetchSystemVersion]);
function getItem(