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

### 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)
This commit is contained in:
balibabu 2024-07-25 15:07:05 +08:00 committed by GitHub
parent 906c0c5c89
commit a99d19bdea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 18 additions and 18 deletions

View File

@ -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',

View File

@ -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: '提交日期',

View File

@ -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: '提交日期',

View File

@ -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(() => {
@ -31,4 +31,4 @@ const ArxivForm = ({ onValuesChange, form }: IOperatorForm) => {
);
};
export default ArxivForm;
export default ArXivForm;

View File

@ -14,7 +14,7 @@ import NodePopover from './popover';
const ZeroGapOperators = [
Operator.RewriteQuestion,
Operator.KeywordExtract,
Operator.Arxiv,
Operator.ArXiv,
];
export function RagNode({

View File

@ -39,7 +39,7 @@ export enum Operator {
DuckDuckGo = 'DuckDuckGo',
Wikipedia = 'Wikipedia',
PubMed = 'PubMed',
Arxiv = 'Arxiv',
ArXiv = 'ArXiv',
}
export const operatorIconMap = {
@ -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 = {
@ -123,7 +123,7 @@ export const operatorMap = {
[Operator.PubMed]: {
backgroundColor: '#a2ccf0',
},
[Operator.Arxiv]: {
[Operator.ArXiv]: {
width: 70,
height: 70,
fontSize: 12,
@ -173,7 +173,7 @@ export const componentMenuList = [
name: Operator.PubMed,
},
{
name: Operator.Arxiv,
name: Operator.ArXiv,
},
];
@ -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 = {
@ -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 = [

View File

@ -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';
@ -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>;

View File

@ -93,7 +93,7 @@ export const useInitializeOperatorParams = () => {
[Operator.Baidu]: initialBaiduValues,
[Operator.Wikipedia]: initialWikipediaValues,
[Operator.PubMed]: initialPubMedValues,
[Operator.Arxiv]: initialArxivValues,
[Operator.ArXiv]: initialArxivValues,
};
}, [llmId]);