feat: add Wikipedia operator #918 (#1516)

### What problem does this PR solve?

Add Wikipedia operator #918 

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-07-15 17:48:01 +08:00
committed by GitHub
parent 60d406acaa
commit 1daa0b4d46
8 changed files with 342 additions and 0 deletions

View File

@ -579,6 +579,7 @@ The above is the content you need to summarize.`,
messageDescription:
'This component is used to send user static information. You can prepare several messages which will be chosen randomly.',
keywordDescription: `This component is used to extract keywords from user's question. Top N specifies the number of keywords you need to extract.`,
wikipediaDescription: `This component is used to get search result from https://www.wikipedia.org/. Typically, it performs as a supplement to knowledgebases. Top N specifies the number of search results you need to adopt.`,
promptText: `Please summarize the following paragraphs. Be careful with the numbers, do not make things up. Paragraphs as following:
{input}
The above is the content you need to summarize.`,
@ -612,6 +613,7 @@ The above is the content you need to summarize.`,
messageHistoryWindowSize: 'Message window size',
messageHistoryWindowSizeTip:
'The window size of conversation history that needed to be seen by LLM. The larger the better. But be careful with the maximum content length of LLM.',
wikipedia: 'Wikipedia',
},
footer: {
profile: 'All rights reserved @ React',