Commit
·
189d1d0
1
Parent(s):
5780c15
Fix typos (#3887)
Browse files### What problem does this PR solve?
Lots of typo, also need to merge into DEMO
### Type of change
- [x] Bug Fix (non-breaking change which fixes an issue)
Signed-off-by: Jin Hai <[email protected]>
- agent/templates/DB Assistant.json +2 -2
- agent/templates/customer_service.json +4 -4
- agent/templates/general_chat_bot.json +9 -9
- agent/templates/interpreter.json +1 -1
- agent/templates/medical_consultation.json +1 -1
- agent/templates/seo_blog.json +1 -1
- agent/templates/text2sql.json +1 -1
- agent/templates/websearch_assistant.json +1 -1
agent/templates/DB Assistant.json
CHANGED
@@ -620,7 +620,7 @@
|
|
620 |
"text": "Searches for description about meanings of tables and fields."
|
621 |
},
|
622 |
"label": "Note",
|
623 |
-
"name": "N:DB
|
624 |
},
|
625 |
"dragging": false,
|
626 |
"height": 128,
|
@@ -679,7 +679,7 @@
|
|
679 |
{
|
680 |
"data": {
|
681 |
"form": {
|
682 |
-
"text": "DDL(Data Definition Language).\n\nSearches for
|
683 |
},
|
684 |
"label": "Note",
|
685 |
"name": "N: DDL"
|
|
|
620 |
"text": "Searches for description about meanings of tables and fields."
|
621 |
},
|
622 |
"label": "Note",
|
623 |
+
"name": "N:DB Description"
|
624 |
},
|
625 |
"dragging": false,
|
626 |
"height": 128,
|
|
|
679 |
{
|
680 |
"data": {
|
681 |
"form": {
|
682 |
+
"text": "DDL(Data Definition Language).\n\nSearches for relevant database creation statements.\n\nIt should bind with a KB to which DDL is dumped in.\nYou could use 'General' as parsing method and ';' as delimiter."
|
683 |
},
|
684 |
"label": "Note",
|
685 |
"name": "N: DDL"
|
agent/templates/customer_service.json
CHANGED
@@ -90,7 +90,7 @@
|
|
90 |
"message_history_window_size": 12,
|
91 |
"parameters": [],
|
92 |
"presence_penalty": 0.4,
|
93 |
-
"prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\
|
94 |
"temperature": 0.1,
|
95 |
"top_p": 0.3
|
96 |
}
|
@@ -336,7 +336,7 @@
|
|
336 |
"parameters": [],
|
337 |
"presencePenaltyEnabled": true,
|
338 |
"presence_penalty": 0.4,
|
339 |
-
"prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\
|
340 |
"temperature": 0.1,
|
341 |
"temperatureEnabled": true,
|
342 |
"topPEnabled": true,
|
@@ -603,7 +603,7 @@
|
|
603 |
{
|
604 |
"data": {
|
605 |
"form": {
|
606 |
-
"text": "Static messages.\nDefine
|
607 |
},
|
608 |
"label": "Note",
|
609 |
"name": "N: What else?"
|
@@ -691,7 +691,7 @@
|
|
691 |
{
|
692 |
"data": {
|
693 |
"form": {
|
694 |
-
"text": "Complete questions by conversation history.\nUser: What's RAGFlow?\nAssistant: RAGFlow is xxx.\nUser: How to
|
695 |
},
|
696 |
"label": "Note",
|
697 |
"name": "N: Refine Question"
|
|
|
90 |
"message_history_window_size": 12,
|
91 |
"parameters": [],
|
92 |
"presence_penalty": 0.4,
|
93 |
+
"prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\nRequirements & restrictions:\n - DO NOT make things up when all knowledge base content is irrelevant to the question. \n - Answers need to consider chat history.\n - Request about customer's contact information like, Wechat number, LINE number, twitter, discord, etc,. , when knowledge base content can't answer his question. So, product expert could contact him soon to solve his problem.\n\n Knowledge base content is as following:\n {input}\n The above is the content of knowledge base.",
|
94 |
"temperature": 0.1,
|
95 |
"top_p": 0.3
|
96 |
}
|
|
|
336 |
"parameters": [],
|
337 |
"presencePenaltyEnabled": true,
|
338 |
"presence_penalty": 0.4,
|
339 |
+
"prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\nRequirements & restrictions:\n - DO NOT make things up when all knowledge base content is irrelevant to the question. \n - Answers need to consider chat history.\n - Request about customer's contact information like, Wechat number, LINE number, twitter, discord, etc,. , when knowledge base content can't answer his question. So, product expert could contact him soon to solve his problem.\n\n Knowledge base content is as following:\n {input}\n The above is the content of knowledge base.",
|
340 |
"temperature": 0.1,
|
341 |
"temperatureEnabled": true,
|
342 |
"topPEnabled": true,
|
|
|
603 |
{
|
604 |
"data": {
|
605 |
"form": {
|
606 |
+
"text": "Static messages.\nDefine response after receive user's contact information."
|
607 |
},
|
608 |
"label": "Note",
|
609 |
"name": "N: What else?"
|
|
|
691 |
{
|
692 |
"data": {
|
693 |
"form": {
|
694 |
+
"text": "Complete questions by conversation history.\nUser: What's RAGFlow?\nAssistant: RAGFlow is xxx.\nUser: How to deploy it?\n\nRefine it: How to deploy RAGFlow?"
|
695 |
},
|
696 |
"label": "Note",
|
697 |
"name": "N: Refine Question"
|
agent/templates/general_chat_bot.json
CHANGED
@@ -70,8 +70,8 @@
|
|
70 |
"to": "QWeather:DeepKiwisTeach"
|
71 |
},
|
72 |
"2. finance": {
|
73 |
-
"description": "Question is about
|
74 |
-
"examples": "
|
75 |
"to": "Concentrator:TrueGeckosSlide"
|
76 |
},
|
77 |
"3. medical": {
|
@@ -268,7 +268,7 @@
|
|
268 |
"message_history_window_size": 12,
|
269 |
"parameters": [],
|
270 |
"presence_penalty": 0.4,
|
271 |
-
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Provide useful advice to your friend.\n- Tell jokes to make
|
272 |
"temperature": 0.1,
|
273 |
"top_p": 0.3
|
274 |
}
|
@@ -497,7 +497,7 @@
|
|
497 |
}
|
498 |
],
|
499 |
"presence_penalty": 0.4,
|
500 |
-
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Tell your friend the weather if there's weather information provided. If your friend did not provide region information, ask about where he/she is.\n\nThe following is the
|
501 |
"temperature": 0.1,
|
502 |
"top_p": 0.3
|
503 |
}
|
@@ -622,8 +622,8 @@
|
|
622 |
"to": "QWeather:DeepKiwisTeach"
|
623 |
},
|
624 |
"2. finance": {
|
625 |
-
"description": "Question is about
|
626 |
-
"examples": "
|
627 |
"to": "Concentrator:TrueGeckosSlide"
|
628 |
},
|
629 |
"3. medical": {
|
@@ -927,7 +927,7 @@
|
|
927 |
"parameters": [],
|
928 |
"presencePenaltyEnabled": true,
|
929 |
"presence_penalty": 0.4,
|
930 |
-
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Provide useful advice to your friend.\n- Tell jokes to make your
|
931 |
"temperature": 0.1,
|
932 |
"temperatureEnabled": true,
|
933 |
"topPEnabled": true,
|
@@ -1011,7 +1011,7 @@
|
|
1011 |
"top_p": 0.3
|
1012 |
},
|
1013 |
"label": "Generate",
|
1014 |
-
"name": "
|
1015 |
},
|
1016 |
"dragging": false,
|
1017 |
"height": 86,
|
@@ -1276,7 +1276,7 @@
|
|
1276 |
],
|
1277 |
"presencePenaltyEnabled": true,
|
1278 |
"presence_penalty": 0.4,
|
1279 |
-
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Tell your friend the weather if there's weather information provided. If your friend did not provide region information, ask about where he/she is.\n\nThe following is the
|
1280 |
"temperature": 0.1,
|
1281 |
"temperatureEnabled": true,
|
1282 |
"topPEnabled": true,
|
|
|
70 |
"to": "QWeather:DeepKiwisTeach"
|
71 |
},
|
72 |
"2. finance": {
|
73 |
+
"description": "Question is about finance/economic information, stock market, economic news.",
|
74 |
+
"examples": "Stocks have MACD buy signals?\nWhen is the next interest rate cut by the Federal Reserve?\n",
|
75 |
"to": "Concentrator:TrueGeckosSlide"
|
76 |
},
|
77 |
"3. medical": {
|
|
|
268 |
"message_history_window_size": 12,
|
269 |
"parameters": [],
|
270 |
"presence_penalty": 0.4,
|
271 |
+
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Provide useful advice to your friend.\n- Tell jokes to make your friend happy.\n\nThe following is the weather information:\n{weather}",
|
272 |
"temperature": 0.1,
|
273 |
"top_p": 0.3
|
274 |
}
|
|
|
497 |
}
|
498 |
],
|
499 |
"presence_penalty": 0.4,
|
500 |
+
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Tell your friend the weather if there's weather information provided. If your friend did not provide region information, ask about where he/she is.\n\nThe following is the weather information:\n{weather}\n",
|
501 |
"temperature": 0.1,
|
502 |
"top_p": 0.3
|
503 |
}
|
|
|
622 |
"to": "QWeather:DeepKiwisTeach"
|
623 |
},
|
624 |
"2. finance": {
|
625 |
+
"description": "Question is about finance/economic information, stock market, economic news.",
|
626 |
+
"examples": "Stocks have MACD buy signals?\nWhen is the next interest rate cut by the Federal Reserve?\n",
|
627 |
"to": "Concentrator:TrueGeckosSlide"
|
628 |
},
|
629 |
"3. medical": {
|
|
|
927 |
"parameters": [],
|
928 |
"presencePenaltyEnabled": true,
|
929 |
"presence_penalty": 0.4,
|
930 |
+
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Provide useful advice to your friend.\n- Tell jokes to make your friend happy.\n\nThe following is the weather information:\n{weather}",
|
931 |
"temperature": 0.1,
|
932 |
"temperatureEnabled": true,
|
933 |
"topPEnabled": true,
|
|
|
1011 |
"top_p": 0.3
|
1012 |
},
|
1013 |
"label": "Generate",
|
1014 |
+
"name": "translate to Chinese"
|
1015 |
},
|
1016 |
"dragging": false,
|
1017 |
"height": 86,
|
|
|
1276 |
],
|
1277 |
"presencePenaltyEnabled": true,
|
1278 |
"presence_penalty": 0.4,
|
1279 |
+
"prompt": "Role: You‘re warm-hearted lovely young girl, 22 years old, located at Shanghai in China. Your name is R. Who are talking to you is your very good old friend of yours.\n\nTask: \n- Chat with the friend.\n- Ask question and care about them.\n- Tell your friend the weather if there's weather information provided. If your friend did not provide region information, ask about where he/she is.\n\nThe following is the weather information:\n{weather}\n",
|
1280 |
"temperature": 0.1,
|
1281 |
"temperatureEnabled": true,
|
1282 |
"topPEnabled": true,
|
agent/templates/interpreter.json
CHANGED
@@ -476,7 +476,7 @@
|
|
476 |
"text": "Translation Agent: Agentic translation using reflection workflow\n\nThis is inspired by Andrew NG's project: https://github.com/andrewyng/translation-agent\n\n1. Prompt an LLM to translate a text into the target language;\n2. Have the LLM reflect on the translation and provide constructive suggestions for improvement;\n3. Use these suggestions to improve the translation."
|
477 |
},
|
478 |
"label": "Note",
|
479 |
-
"name": "
|
480 |
},
|
481 |
"dragHandle": ".note-drag-handle",
|
482 |
"dragging": false,
|
|
|
476 |
"text": "Translation Agent: Agentic translation using reflection workflow\n\nThis is inspired by Andrew NG's project: https://github.com/andrewyng/translation-agent\n\n1. Prompt an LLM to translate a text into the target language;\n2. Have the LLM reflect on the translation and provide constructive suggestions for improvement;\n3. Use these suggestions to improve the translation."
|
477 |
},
|
478 |
"label": "Note",
|
479 |
+
"name": "Brief"
|
480 |
},
|
481 |
"dragHandle": ".note-drag-handle",
|
482 |
"dragging": false,
|
agent/templates/medical_consultation.json
CHANGED
@@ -534,7 +534,7 @@
|
|
534 |
{
|
535 |
"data": {
|
536 |
"form": {
|
537 |
-
"text": "A prompt
|
538 |
},
|
539 |
"label": "Note",
|
540 |
"name": "N: LLM"
|
|
|
534 |
{
|
535 |
"data": {
|
536 |
"form": {
|
537 |
+
"text": "A prompt summarize content from search result from PubMed and Q&A dataset."
|
538 |
},
|
539 |
"label": "Note",
|
540 |
"name": "N: LLM"
|
agent/templates/seo_blog.json
CHANGED
@@ -347,7 +347,7 @@
|
|
347 |
}
|
348 |
],
|
349 |
"presence_penalty": 0.4,
|
350 |
-
"prompt": "You are an SEO expert who writes in a direct, practical, educational style that is factual rather than storytelling or narrative, focusing on explaining to {audience} the \"how\" and \"what is\" and \u201cwhy\u201d rather than narrating to the audience. \n - Please write at a sixth grade reading level. \n - ONLY output in Markdown format.\n - Use positive, present tense expressions and avoid using complex words and sentence structures that lack narrative, such as \"reveal\" and \"dig deep.\"\n - Next, please continue writing articles related to our topic with a concise title, {title_0}{title} {keywords_0}{keywords}. \n - Please AVOID repeating what has already been written and do not use the same sentence structure. \n - JUST write the body of the article based on the outline.\n - DO NOT include introduction, title.\n - DO NOT miss anything mentioned in
|
351 |
"query": [],
|
352 |
"temperature": 0.1,
|
353 |
"top_p": 0.3
|
|
|
347 |
}
|
348 |
],
|
349 |
"presence_penalty": 0.4,
|
350 |
+
"prompt": "You are an SEO expert who writes in a direct, practical, educational style that is factual rather than storytelling or narrative, focusing on explaining to {audience} the \"how\" and \"what is\" and \u201cwhy\u201d rather than narrating to the audience. \n - Please write at a sixth grade reading level. \n - ONLY output in Markdown format.\n - Use positive, present tense expressions and avoid using complex words and sentence structures that lack narrative, such as \"reveal\" and \"dig deep.\"\n - Next, please continue writing articles related to our topic with a concise title, {title_0}{title} {keywords_0}{keywords}. \n - Please AVOID repeating what has already been written and do not use the same sentence structure. \n - JUST write the body of the article based on the outline.\n - DO NOT include introduction, title.\n - DO NOT miss anything mentioned in article outline, except introduction and title.\n - Please use the information I provide to create in-depth, interesting and unique content. Also, incorporate the references and data points I provided earlier into the article to increase its value to the reader.\n - MUST be in language of \"{keywords_0} {title_0}\".\n\n<article_outline>\n{outline}\n\n<article_body>",
|
351 |
"query": [],
|
352 |
"temperature": 0.1,
|
353 |
"top_p": 0.3
|
agent/templates/text2sql.json
CHANGED
@@ -440,7 +440,7 @@
|
|
440 |
{
|
441 |
"data": {
|
442 |
"form": {
|
443 |
-
"text": "DDL(Data Definition Language).\n\nSearches for
|
444 |
},
|
445 |
"label": "Note",
|
446 |
"name": "N: DDL"
|
|
|
440 |
{
|
441 |
"data": {
|
442 |
"form": {
|
443 |
+
"text": "DDL(Data Definition Language).\n\nSearches for relevant database creation statements.\n\nIt should bind with a KB to which DDL is dumped in.\nYou could use 'General' as parsing method and ';' as delimiter."
|
444 |
},
|
445 |
"label": "Note",
|
446 |
"name": "N: DDL"
|
agent/templates/websearch_assistant.json
CHANGED
@@ -577,7 +577,7 @@
|
|
577 |
"text": "Based on the keywords, searches on Wikipedia and returns the found content."
|
578 |
},
|
579 |
"label": "Note",
|
580 |
-
"name": "N:
|
581 |
},
|
582 |
"dragging": false,
|
583 |
"height": 128,
|
|
|
577 |
"text": "Based on the keywords, searches on Wikipedia and returns the found content."
|
578 |
},
|
579 |
"label": "Note",
|
580 |
+
"name": "N: Wikipedia"
|
581 |
},
|
582 |
"dragging": false,
|
583 |
"height": 128,
|