Skip to content

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

feat: hide filters button and hide testing history (#149)

balibabu0629847c097a
diff --git a/web/src/pages/add-knowledge/components/knowledge-testing/testing-control/index.tsx b/web/src/pages/add-knowledge/components/knowledge-testing/testing-control/index.tsx
index 138614a96b..4630e2e241 100644
--- a/web/src/pages/add-knowledge/components/knowledge-testing/testing-control/index.tsx
+++ b/web/src/pages/add-knowledge/components/knowledge-testing/testing-control/index.tsx
@@ -1,16 +1,5 @@
import SimilaritySlider from '@/components/similarity-slider';
-import { DeleteOutlined, HistoryOutlined } from '@ant-design/icons';
-import {
- Button,
- Card,
- Divider,
- Flex,
- Form,
- Input,
- Slider,
- Space,
- Tag,
-} from 'antd';
+import { Button, Card, Divider, Flex, Form, Input, Slider, Tag } from 'antd';
import { FormInstance } from 'antd/lib';
import styles from './index.less';
@@ -83,7 +72,7 @@ const TestingControl = ({ form, handleTesting }: IProps) => {
</Card>
</Form>
</section>
- <section>
+ {/* <section>
<div className={styles.historyTitle}>
<Space size={'middle'}>
<HistoryOutlined className={styles.historyIcon} />
@@ -111,7 +100,7 @@ const TestingControl = ({ form, handleTesting }: IProps) => {
</Card>
))}
</Space>
- </section>
+ </section> */}
</section>
);
};
diff --git a/web/src/pages/knowledge/index.tsx b/web/src/pages/knowledge/index.tsx
index 8b61e0c157..b8a3659a84 100644
--- a/web/src/pages/knowledge/index.tsx
+++ b/web/src/pages/knowledge/index.tsx
@@ -1,4 +1,3 @@
-import { ReactComponent as FilterIcon } from '@/assets/filter.svg';
import ModalManager from '@/components/modal-manager';
import { useFetchKnowledgeList } from '@/hooks/knowledgeHook';
import { useSelectUserInfo } from '@/hooks/userSettingHook';
@@ -25,9 +24,9 @@ const Knowledge = () => {
</p>
</div>
<Space size={'large'}>
- <Button icon={<FilterIcon />} className={styles.filterButton}>
+ {/* <Button icon={<FilterIcon />} className={styles.filterButton}>
Filters
- </Button>
+ </Button> */}
<ModalManager>
{({ visible, hideModal, showModal }) => (
<>