Skip to content

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

feat: Add SearchPage #2247 (#2248)

balibabu9b90a4432399
diff --git a/web/src/layouts/components/header/index.tsx b/web/src/layouts/components/header/index.tsx
index afae2e75de..b3c8d536da 100644
--- a/web/src/layouts/components/header/index.tsx
+++ b/web/src/layouts/components/header/index.tsx
@@ -29,6 +29,7 @@ const RagHeader = () => {
{ path: '/chat', name: t('chat'), icon: MessageOutlined },
{ path: '/flow', name: t('flow'), icon: GraphIcon },
{ path: '/file', name: t('fileManager'), icon: FileIcon },
+ { path: '/search', name: t('search'), icon: FileIcon },
],
[t],
);
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index 1b0dee2511..c51dc7d286 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: 'File Management',
flow: 'Agent',
+ search: 'Search',
},
knowledgeList: {
welcome: 'Welcome back',
diff --git a/web/src/locales/zh-traditional.ts b/web/src/locales/zh-traditional.ts
index 8140f0b7fb..3f489f86e0 100644
--- a/web/src/locales/zh-traditional.ts
+++ b/web/src/locales/zh-traditional.ts
@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
+ search: '搜尋',
},
knowledgeList: {
welcome: '歡迎回來',
diff --git a/web/src/locales/zh.ts b/web/src/locales/zh.ts
index 772e9a8faf..9adf1da571 100644
--- a/web/src/locales/zh.ts
+++ b/web/src/locales/zh.ts
@@ -59,6 +59,7 @@ export default {
logout: '登出',
fileManager: '文件管理',
flow: 'Agent',
+ search: '搜索',
},
knowledgeList: {
welcome: '欢迎回来',
diff --git a/web/src/pages/search/index.tsx b/web/src/pages/search/index.tsx
new file mode 100644
index 0000000000..86fc54ef68
--- /dev/null
+++ b/web/src/pages/search/index.tsx
@@ -0,0 +1,5 @@
+const SearchPage = () => {
+ return <div>SearchPage</div>;
+};
+
+export default SearchPage;
diff --git a/web/src/routes.ts b/web/src/routes.ts
index bcb2ce04bf..607fa7c960 100644
--- a/web/src/routes.ts
+++ b/web/src/routes.ts
@@ -91,6 +91,10 @@ const routes = [
path: '/flow/:id',
component: '@/pages/flow',
},
+ {
+ path: '/search',
+ component: '@/pages/search',
+ },
],
},
{