Skip to content

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

fix: Web code build fails on ARM machines #2554 (#2557)

balibabu832c90ac3e31
diff --git a/web/.umirc.ts b/web/.umirc.ts
index bd25fb577c..bcdae7c74e 100644
--- a/web/.umirc.ts
+++ b/web/.umirc.ts
@@ -30,7 +30,7 @@ export default defineConfig({
copy: ['src/conf.json'],
proxy: {
'/v1': {
- target: 'http://127.0.0.1:9380/',
+ target: 'http://127.0.0.1:9456/',
changeOrigin: true,
ws: true,
logger: console,
diff --git a/web/src/locales/en.ts b/web/src/locales/en.ts
index 56c430db65..3ca925a478 100644
--- a/web/src/locales/en.ts
+++ b/web/src/locales/en.ts
@@ -435,7 +435,7 @@ The above is the content you need to summarize.`,
'To play the voice using voice conversion, please select TTS (speech conversion model) in the settings first.',
relatedQuestion: 'Related question',
answerTitle: 'R',
- multiTurn: 'Multi-trun optimization',
+ multiTurn: 'Multi-turn optimization',
multiTurnTip:
'In multi-round conversations, the query to the knowledge base is optimized. The large model will be called to consume additional tokens.',
},
diff --git a/web/src/pages/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.less b/web/src/pages/add-knowledge/components/knowledge-chunk/components/chunk-creating-modal/index.less
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/src/pages/file-manager/action-cell/index.less b/web/src/pages/file-manager/action-cell/index.less
deleted file mode 100644
index e69de29bb2..0000000000
diff --git a/web/src/pages/file-manager/action-cell/index.tsx b/web/src/pages/file-manager/action-cell/index.tsx
index 6962eb350a..0c56b65498 100644
--- a/web/src/pages/file-manager/action-cell/index.tsx
+++ b/web/src/pages/file-manager/action-cell/index.tsx
@@ -17,7 +17,6 @@ import {
} from '@ant-design/icons';
import { Button, Space, Tooltip } from 'antd';
import { useHandleDeleteFile } from '../hooks';
-import styles from './index.less';
interface IProps {
record: IFile;
@@ -74,11 +73,7 @@ const ActionCell = ({
<Space size={0}>
{isKnowledgeBase || (
<Tooltip title={t('addToKnowledge')}>
- <Button
- type="text"
- className={styles.iconButton}
- onClick={onShowConnectToKnowledgeModal}
- >
+ <Button type="text" onClick={onShowConnectToKnowledgeModal}>
<LinkOutlined size={20} />
</Button>
</Tooltip>
@@ -86,12 +81,7 @@ const ActionCell = ({
{isKnowledgeBase || (
<Tooltip title={t('rename', { keyPrefix: 'common' })}>
- <Button
- type="text"
- disabled={beingUsed}
- onClick={onShowRenameModal}
- className={styles.iconButton}
- >
+ <Button type="text" disabled={beingUsed} onClick={onShowRenameModal}>
<EditOutlined size={20} />
</Button>
</Tooltip>
@@ -102,7 +92,6 @@ const ActionCell = ({
type="text"
disabled={beingUsed}
onClick={onShowMoveFileModal}
- className={styles.iconButton}
>
<SvgIcon name={`move`} width={16}></SvgIcon>
</Button>
@@ -110,24 +99,14 @@ const ActionCell = ({
)}
{isKnowledgeBase || (
<Tooltip title={t('delete', { keyPrefix: 'common' })}>
- <Button
- type="text"
- disabled={beingUsed}
- onClick={handleRemoveFile}
- className={styles.iconButton}
- >
+ <Button type="text" disabled={beingUsed} onClick={handleRemoveFile}>
<DeleteOutlined size={20} />
</Button>
</Tooltip>
)}
{record.type !== 'folder' && (
<Tooltip title={t('download', { keyPrefix: 'common' })}>
- <Button
- type="text"
- disabled={beingUsed}
- onClick={onDownloadDocument}
- className={styles.iconButton}
- >
+ <Button type="text" disabled={beingUsed} onClick={onDownloadDocument}>
<DownloadOutlined size={20} />
</Button>
</Tooltip>
@@ -139,7 +118,7 @@ const ActionCell = ({
color="black"
>
<Tooltip title={t('preview')}>
- <Button type="text" className={styles.iconButton}>
+ <Button type="text">
<EyeOutlined size={20} />
</Button>
</Tooltip>