Skip to content

Commit

Permalink
fix: alter Arxiv to ArXiv infiniflow#918 (infiniflow#1705)
Browse files Browse the repository at this point in the history
### What problem does this PR solve?
fix: alter Arxiv to ArXiv infiniflow#918
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
  • Loading branch information
cike8899 authored Jul 25, 2024
1 parent 36aae92 commit b7d56f1
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions web/src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -632,8 +632,8 @@ The above is the content you need to summarize.`,
email: 'Email',
emailTip:
'This component is used to get search result from https://pubmed.ncbi.nlm.nih.gov/. Typically, it performs as a supplement to knowledgebases. Top N specifies the number of search results you need to adapt. E-mail is a required field.',
arxiv: 'Arxiv',
arxivTip:
arXiv: 'ArXiv',
arXivTip:
'This component is used to get search result from https://arxiv.org/. Typically, it performs as a supplement to knowledgebases. Top N specifies the number of search results you need to adapt.',
sortBy: 'Sort by',
submittedDate: 'Submitted date',
Expand Down
4 changes: 2 additions & 2 deletions web/src/locales/zh-traditional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,8 @@ export default {
email: '信箱',
emailTip:
'此元件用於從 https://pubmed.ncbi.nlm.nih.gov/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。電子郵件是必填欄位。',
arxiv: 'Arxiv',
arxivTip:
arXiv: 'ArXiv',
arXivTip:
'此元件用於從 https://arxiv.org/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。',
sortBy: '排序方式',
submittedDate: '提交日期',
Expand Down
4 changes: 2 additions & 2 deletions web/src/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ export default {
email: '邮箱',
emailTip:
'此组件用于从 https://pubmed.ncbi.nlm.nih.gov/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数。电子邮件是必填字段。',
arxiv: 'Arxiv',
arxivTip:
arXiv: 'ArXiv',
arXivTip:
'此组件用于从 https://arxiv.org/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数量。',
sortBy: '排序方式',
submittedDate: '提交日期',
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/flow/arxiv-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Form, Select } from 'antd';
import { useMemo } from 'react';
import { IOperatorForm } from '../interface';

const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => {
const ArXivForm = ({ onValuesChange, form }: IOperatorForm) => {
const { t } = useTranslate('flow');

const options = useMemo(() => {
Expand All @@ -31,4 +31,4 @@ const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => {
);
};

export default ArxivForm;
export default ArXivForm;
2 changes: 1 addition & 1 deletion web/src/pages/flow/canvas/node/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import NodePopover from './popover';
const ZeroGapOperators = [
Operator.RewriteQuestion,
Operator.KeywordExtract,
Operator.Arxiv,
Operator.ArXiv,
];

export function RagNode({
Expand Down
12 changes: 6 additions & 6 deletions web/src/pages/flow/constant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export enum Operator {
DuckDuckGo = 'DuckDuckGo',
Wikipedia = 'Wikipedia',
PubMed = 'PubMed',
Arxiv = 'Arxiv',
ArXiv = 'ArXiv',
}

export const operatorIconMap = {
Expand All @@ -56,7 +56,7 @@ export const operatorIconMap = {
[Operator.Baidu]: BaiduIcon,
[Operator.Wikipedia]: WikipediaIcon,
[Operator.PubMed]: PubMedIcon,
[Operator.Arxiv]: ArxivIcon,
[Operator.ArXiv]: ArxivIcon,
};

export const operatorMap = {
Expand Down Expand Up @@ -123,7 +123,7 @@ export const operatorMap = {
[Operator.PubMed]: {
backgroundColor: '#a2ccf0',
},
[Operator.Arxiv]: {
[Operator.ArXiv]: {
width: 70,
height: 70,
fontSize: 12,
Expand Down Expand Up @@ -173,7 +173,7 @@ export const componentMenuList = [
name: Operator.PubMed,
},
{
name: Operator.Arxiv,
name: Operator.ArXiv,
},
];

Expand Down Expand Up @@ -317,7 +317,7 @@ export const RestrictedUpstreamMap = {
[Operator.DuckDuckGo]: [Operator.Begin, Operator.Retrieval],
[Operator.Wikipedia]: [Operator.Begin, Operator.Retrieval],
[Operator.PubMed]: [Operator.Begin, Operator.Retrieval],
[Operator.Arxiv]: [Operator.Begin, Operator.Retrieval],
[Operator.ArXiv]: [Operator.Begin, Operator.Retrieval],
};

export const NodeMap = {
Expand All @@ -334,7 +334,7 @@ export const NodeMap = {
[Operator.Baidu]: 'ragNode',
[Operator.Wikipedia]: 'ragNode',
[Operator.PubMed]: 'ragNode',
[Operator.Arxiv]: 'ragNode',
[Operator.ArXiv]: 'ragNode',
};

export const LanguageOptions = [
Expand Down
4 changes: 2 additions & 2 deletions web/src/pages/flow/flow-drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Drawer, Flex, Form, Input } from 'antd';
import { useEffect } from 'react';
import { Node } from 'reactflow';
import AnswerForm from '../answer-form';
import ArxivForm from '../arxiv-form';
import ArXivForm from '../arxiv-form';
import BaiduForm from '../baidu-form';
import BeginForm from '../begin-form';
import CategorizeForm from '../categorize-form';
Expand Down Expand Up @@ -41,7 +41,7 @@ const FormMap = {
[Operator.KeywordExtract]: KeywordExtractForm,
[Operator.Wikipedia]: WikipediaForm,
[Operator.PubMed]: PubMedForm,
[Operator.Arxiv]: ArxivForm,
[Operator.ArXiv]: ArXivForm,
};

const EmptyContent = () => <div>empty</div>;
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/flow/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const useInitializeOperatorParams = () => {
[Operator.Baidu]: initialBaiduValues,
[Operator.Wikipedia]: initialWikipediaValues,
[Operator.PubMed]: initialPubMedValues,
[Operator.Arxiv]: initialArxivValues,
[Operator.ArXiv]: initialArxivValues,
};
}, [llmId]);

Expand Down

0 comments on commit b7d56f1

Please sign in to comment.