balibabu commited on
Commit
e878c81
·
1 Parent(s): e08f767

fix: alter Arxiv to ArXiv #918 (#1705)

Browse files

### What problem does this PR solve?
fix: alter Arxiv to ArXiv #918
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

web/src/locales/en.ts CHANGED
@@ -632,8 +632,8 @@ The above is the content you need to summarize.`,
632
  email: 'Email',
633
  emailTip:
634
  '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.',
635
- arxiv: 'Arxiv',
636
- arxivTip:
637
  '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.',
638
  sortBy: 'Sort by',
639
  submittedDate: 'Submitted date',
 
632
  email: 'Email',
633
  emailTip:
634
  '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.',
635
+ arXiv: 'ArXiv',
636
+ arXivTip:
637
  '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.',
638
  sortBy: 'Sort by',
639
  submittedDate: 'Submitted date',
web/src/locales/zh-traditional.ts CHANGED
@@ -592,8 +592,8 @@ export default {
592
  email: '信箱',
593
  emailTip:
594
  '此元件用於從 https://pubmed.ncbi.nlm.nih.gov/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。電子郵件是必填欄位。',
595
- arxiv: 'Arxiv',
596
- arxivTip:
597
  '此元件用於從 https://arxiv.org/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。',
598
  sortBy: '排序方式',
599
  submittedDate: '提交日期',
 
592
  email: '信箱',
593
  emailTip:
594
  '此元件用於從 https://pubmed.ncbi.nlm.nih.gov/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。電子郵件是必填欄位。',
595
+ arXiv: 'ArXiv',
596
+ arXivTip:
597
  '此元件用於從 https://arxiv.org/ 取得搜尋結果。通常,它充當知識庫的補充。 Top N 指定您需要適應的搜尋結果的數量。',
598
  sortBy: '排序方式',
599
  submittedDate: '提交日期',
web/src/locales/zh.ts CHANGED
@@ -610,8 +610,8 @@ export default {
610
  email: '邮箱',
611
  emailTip:
612
  '此组件用于从 https://pubmed.ncbi.nlm.nih.gov/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数。电子邮件是必填字段。',
613
- arxiv: 'Arxiv',
614
- arxivTip:
615
  '此组件用于从 https://arxiv.org/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数量。',
616
  sortBy: '排序方式',
617
  submittedDate: '提交日期',
 
610
  email: '邮箱',
611
  emailTip:
612
  '此组件用于从 https://pubmed.ncbi.nlm.nih.gov/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数。电子邮件是必填字段。',
613
+ arXiv: 'ArXiv',
614
+ arXivTip:
615
  '此组件用于从 https://arxiv.org/ 获取搜索结果。通常,它作为知识库的补充。Top N 指定您需要调整的搜索结果数量。',
616
  sortBy: '排序方式',
617
  submittedDate: '提交日期',
web/src/pages/flow/arxiv-form/index.tsx CHANGED
@@ -4,7 +4,7 @@ import { Form, Select } from 'antd';
4
  import { useMemo } from 'react';
5
  import { IOperatorForm } from '../interface';
6
 
7
- const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => {
8
  const { t } = useTranslate('flow');
9
 
10
  const options = useMemo(() => {
@@ -31,4 +31,4 @@ const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => {
31
  );
32
  };
33
 
34
- export default ArxivForm;
 
4
  import { useMemo } from 'react';
5
  import { IOperatorForm } from '../interface';
6
 
7
+ const ArXivForm = ({ onValuesChange, form }: IOperatorForm) => {
8
  const { t } = useTranslate('flow');
9
 
10
  const options = useMemo(() => {
 
31
  );
32
  };
33
 
34
+ export default ArXivForm;
web/src/pages/flow/canvas/node/index.tsx CHANGED
@@ -14,7 +14,7 @@ import NodePopover from './popover';
14
  const ZeroGapOperators = [
15
  Operator.RewriteQuestion,
16
  Operator.KeywordExtract,
17
- Operator.Arxiv,
18
  ];
19
 
20
  export function RagNode({
 
14
  const ZeroGapOperators = [
15
  Operator.RewriteQuestion,
16
  Operator.KeywordExtract,
17
+ Operator.ArXiv,
18
  ];
19
 
20
  export function RagNode({
web/src/pages/flow/constant.tsx CHANGED
@@ -39,7 +39,7 @@ export enum Operator {
39
  DuckDuckGo = 'DuckDuckGo',
40
  Wikipedia = 'Wikipedia',
41
  PubMed = 'PubMed',
42
- Arxiv = 'Arxiv',
43
  }
44
 
45
  export const operatorIconMap = {
@@ -56,7 +56,7 @@ export const operatorIconMap = {
56
  [Operator.Baidu]: BaiduIcon,
57
  [Operator.Wikipedia]: WikipediaIcon,
58
  [Operator.PubMed]: PubMedIcon,
59
- [Operator.Arxiv]: ArxivIcon,
60
  };
61
 
62
  export const operatorMap = {
@@ -123,7 +123,7 @@ export const operatorMap = {
123
  [Operator.PubMed]: {
124
  backgroundColor: '#a2ccf0',
125
  },
126
- [Operator.Arxiv]: {
127
  width: 70,
128
  height: 70,
129
  fontSize: 12,
@@ -173,7 +173,7 @@ export const componentMenuList = [
173
  name: Operator.PubMed,
174
  },
175
  {
176
- name: Operator.Arxiv,
177
  },
178
  ];
179
 
@@ -317,7 +317,7 @@ export const RestrictedUpstreamMap = {
317
  [Operator.DuckDuckGo]: [Operator.Begin, Operator.Retrieval],
318
  [Operator.Wikipedia]: [Operator.Begin, Operator.Retrieval],
319
  [Operator.PubMed]: [Operator.Begin, Operator.Retrieval],
320
- [Operator.Arxiv]: [Operator.Begin, Operator.Retrieval],
321
  };
322
 
323
  export const NodeMap = {
@@ -334,7 +334,7 @@ export const NodeMap = {
334
  [Operator.Baidu]: 'ragNode',
335
  [Operator.Wikipedia]: 'ragNode',
336
  [Operator.PubMed]: 'ragNode',
337
- [Operator.Arxiv]: 'ragNode',
338
  };
339
 
340
  export const LanguageOptions = [
 
39
  DuckDuckGo = 'DuckDuckGo',
40
  Wikipedia = 'Wikipedia',
41
  PubMed = 'PubMed',
42
+ ArXiv = 'ArXiv',
43
  }
44
 
45
  export const operatorIconMap = {
 
56
  [Operator.Baidu]: BaiduIcon,
57
  [Operator.Wikipedia]: WikipediaIcon,
58
  [Operator.PubMed]: PubMedIcon,
59
+ [Operator.ArXiv]: ArxivIcon,
60
  };
61
 
62
  export const operatorMap = {
 
123
  [Operator.PubMed]: {
124
  backgroundColor: '#a2ccf0',
125
  },
126
+ [Operator.ArXiv]: {
127
  width: 70,
128
  height: 70,
129
  fontSize: 12,
 
173
  name: Operator.PubMed,
174
  },
175
  {
176
+ name: Operator.ArXiv,
177
  },
178
  ];
179
 
 
317
  [Operator.DuckDuckGo]: [Operator.Begin, Operator.Retrieval],
318
  [Operator.Wikipedia]: [Operator.Begin, Operator.Retrieval],
319
  [Operator.PubMed]: [Operator.Begin, Operator.Retrieval],
320
+ [Operator.ArXiv]: [Operator.Begin, Operator.Retrieval],
321
  };
322
 
323
  export const NodeMap = {
 
334
  [Operator.Baidu]: 'ragNode',
335
  [Operator.Wikipedia]: 'ragNode',
336
  [Operator.PubMed]: 'ragNode',
337
+ [Operator.ArXiv]: 'ragNode',
338
  };
339
 
340
  export const LanguageOptions = [
web/src/pages/flow/flow-drawer/index.tsx CHANGED
@@ -4,7 +4,7 @@ import { Drawer, Flex, Form, Input } from 'antd';
4
  import { useEffect } from 'react';
5
  import { Node } from 'reactflow';
6
  import AnswerForm from '../answer-form';
7
- import ArxivForm from '../arxiv-form';
8
  import BaiduForm from '../baidu-form';
9
  import BeginForm from '../begin-form';
10
  import CategorizeForm from '../categorize-form';
@@ -41,7 +41,7 @@ const FormMap = {
41
  [Operator.KeywordExtract]: KeywordExtractForm,
42
  [Operator.Wikipedia]: WikipediaForm,
43
  [Operator.PubMed]: PubMedForm,
44
- [Operator.Arxiv]: ArxivForm,
45
  };
46
 
47
  const EmptyContent = () => <div>empty</div>;
 
4
  import { useEffect } from 'react';
5
  import { Node } from 'reactflow';
6
  import AnswerForm from '../answer-form';
7
+ import ArXivForm from '../arxiv-form';
8
  import BaiduForm from '../baidu-form';
9
  import BeginForm from '../begin-form';
10
  import CategorizeForm from '../categorize-form';
 
41
  [Operator.KeywordExtract]: KeywordExtractForm,
42
  [Operator.Wikipedia]: WikipediaForm,
43
  [Operator.PubMed]: PubMedForm,
44
+ [Operator.ArXiv]: ArXivForm,
45
  };
46
 
47
  const EmptyContent = () => <div>empty</div>;
web/src/pages/flow/hooks.ts CHANGED
@@ -93,7 +93,7 @@ export const useInitializeOperatorParams = () => {
93
  [Operator.Baidu]: initialBaiduValues,
94
  [Operator.Wikipedia]: initialWikipediaValues,
95
  [Operator.PubMed]: initialPubMedValues,
96
- [Operator.Arxiv]: initialArxivValues,
97
  };
98
  }, [llmId]);
99
 
 
93
  [Operator.Baidu]: initialBaiduValues,
94
  [Operator.Wikipedia]: initialWikipediaValues,
95
  [Operator.PubMed]: initialPubMedValues,
96
+ [Operator.ArXiv]: initialArxivValues,
97
  };
98
  }, [llmId]);
99