From c76e7b1e28a0729509c046e487914d8ed5493128 Mon Sep 17 00:00:00 2001 From: Jin Hai Date: Fri, 6 Dec 2024 09:47:56 +0800 Subject: [PATCH] Fix typos (#3887) ### 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 --- agent/templates/DB Assistant.json | 4 ++-- agent/templates/customer_service.json | 8 ++++---- agent/templates/general_chat_bot.json | 18 +++++++++--------- agent/templates/interpreter.json | 2 +- agent/templates/medical_consultation.json | 2 +- agent/templates/seo_blog.json | 2 +- agent/templates/text2sql.json | 2 +- agent/templates/websearch_assistant.json | 2 +- 8 files changed, 20 insertions(+), 20 deletions(-) diff --git a/agent/templates/DB Assistant.json b/agent/templates/DB Assistant.json index 874e12350..277de732e 100644 --- a/agent/templates/DB Assistant.json +++ b/agent/templates/DB Assistant.json @@ -620,7 +620,7 @@ "text": "Searches for description about meanings of tables and fields." }, "label": "Note", - "name": "N:DB Desctription" + "name": "N:DB Description" }, "dragging": false, "height": 128, @@ -679,7 +679,7 @@ { "data": { "form": { - "text": "DDL(Data Definition Language).\n\nSearches for relevent 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." + "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." }, "label": "Note", "name": "N: DDL" diff --git a/agent/templates/customer_service.json b/agent/templates/customer_service.json index 3cea3029d..edc9931c1 100644 --- a/agent/templates/customer_service.json +++ b/agent/templates/customer_service.json @@ -90,7 +90,7 @@ "message_history_window_size": 12, "parameters": [], "presence_penalty": 0.4, - "prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\nReuirements & 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 knowlegebase 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.", + "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.", "temperature": 0.1, "top_p": 0.3 } @@ -336,7 +336,7 @@ "parameters": [], "presencePenaltyEnabled": true, "presence_penalty": 0.4, - "prompt": "Role: You are a customer support. \n\nTask: Please answer the question based on content of knowledge base. \n\nReuirements & 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 knowlegebase 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.", + "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.", "temperature": 0.1, "temperatureEnabled": true, "topPEnabled": true, @@ -603,7 +603,7 @@ { "data": { "form": { - "text": "Static messages.\nDefine replys after recieve user's contact information." + "text": "Static messages.\nDefine response after receive user's contact information." }, "label": "Note", "name": "N: What else?" @@ -691,7 +691,7 @@ { "data": { "form": { - "text": "Complete questions by conversation history.\nUser: What's RAGFlow?\nAssistant: RAGFlow is xxx.\nUser: How to deloy it?\n\nRefine it: How to deploy RAGFlow?" + "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?" }, "label": "Note", "name": "N: Refine Question" diff --git a/agent/templates/general_chat_bot.json b/agent/templates/general_chat_bot.json index 1abdddcfb..6645e9887 100644 --- a/agent/templates/general_chat_bot.json +++ b/agent/templates/general_chat_bot.json @@ -70,8 +70,8 @@ "to": "QWeather:DeepKiwisTeach" }, "2. finance": { - "description": "Question is about finace/economic information, stock market, economic news.", - "examples": "昨日涨幅大于5%的军工股?\nStocks have MACD buyin signals?\nWhen is the next interest rate cut by the Federal Reserve?\n国家救市都有哪些举措?", + "description": "Question is about finance/economic information, stock market, economic news.", + "examples": "Stocks have MACD buy signals?\nWhen is the next interest rate cut by the Federal Reserve?\n", "to": "Concentrator:TrueGeckosSlide" }, "3. medical": { @@ -268,7 +268,7 @@ "message_history_window_size": 12, "parameters": [], "presence_penalty": 0.4, - "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 firend happy.\n\nThe following is the weatcher information:\n{weather}", + "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}", "temperature": 0.1, "top_p": 0.3 } @@ -497,7 +497,7 @@ } ], "presence_penalty": 0.4, - "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 weatcher information:\n{weather}\n", + "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", "temperature": 0.1, "top_p": 0.3 } @@ -622,8 +622,8 @@ "to": "QWeather:DeepKiwisTeach" }, "2. finance": { - "description": "Question is about finace/economic information, stock market, economic news.", - "examples": "昨日涨幅大于5%的军工股?\nStocks have MACD buyin signals?\nWhen is the next interest rate cut by the Federal Reserve?\n国家救市都有哪些举措?", + "description": "Question is about finance/economic information, stock market, economic news.", + "examples": "Stocks have MACD buy signals?\nWhen is the next interest rate cut by the Federal Reserve?\n", "to": "Concentrator:TrueGeckosSlide" }, "3. medical": { @@ -927,7 +927,7 @@ "parameters": [], "presencePenaltyEnabled": true, "presence_penalty": 0.4, - "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 firend happy.\n\nThe following is the weatcher information:\n{weather}", + "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}", "temperature": 0.1, "temperatureEnabled": true, "topPEnabled": true, @@ -1011,7 +1011,7 @@ "top_p": 0.3 }, "label": "Generate", - "name": "tranlate to Chinese" + "name": "translate to Chinese" }, "dragging": false, "height": 86, @@ -1276,7 +1276,7 @@ ], "presencePenaltyEnabled": true, "presence_penalty": 0.4, - "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 weatcher information:\n{weather}\n", + "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", "temperature": 0.1, "temperatureEnabled": true, "topPEnabled": true, diff --git a/agent/templates/interpreter.json b/agent/templates/interpreter.json index edb3b8be5..d5892786a 100644 --- a/agent/templates/interpreter.json +++ b/agent/templates/interpreter.json @@ -476,7 +476,7 @@ "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." }, "label": "Note", - "name": "Breif" + "name": "Brief" }, "dragHandle": ".note-drag-handle", "dragging": false, diff --git a/agent/templates/medical_consultation.json b/agent/templates/medical_consultation.json index 17c24b412..c6b228ff0 100644 --- a/agent/templates/medical_consultation.json +++ b/agent/templates/medical_consultation.json @@ -534,7 +534,7 @@ { "data": { "form": { - "text": "A prompt sumerize content from search result from PubMed and Q&A dataset." + "text": "A prompt summarize content from search result from PubMed and Q&A dataset." }, "label": "Note", "name": "N: LLM" diff --git a/agent/templates/seo_blog.json b/agent/templates/seo_blog.json index 1be6d6729..b59251b56 100644 --- a/agent/templates/seo_blog.json +++ b/agent/templates/seo_blog.json @@ -347,7 +347,7 @@ } ], "presence_penalty": 0.4, - "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 artical 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\n{outline}\n\n", + "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\n{outline}\n\n", "query": [], "temperature": 0.1, "top_p": 0.3 diff --git a/agent/templates/text2sql.json b/agent/templates/text2sql.json index 8d69ab3df..cf6dd5307 100644 --- a/agent/templates/text2sql.json +++ b/agent/templates/text2sql.json @@ -440,7 +440,7 @@ { "data": { "form": { - "text": "DDL(Data Definition Language).\n\nSearches for relevent 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." + "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." }, "label": "Note", "name": "N: DDL" diff --git a/agent/templates/websearch_assistant.json b/agent/templates/websearch_assistant.json index 1da685c6b..390c83c45 100644 --- a/agent/templates/websearch_assistant.json +++ b/agent/templates/websearch_assistant.json @@ -577,7 +577,7 @@ "text": "Based on the keywords, searches on Wikipedia and returns the found content." }, "label": "Note", - "name": "N: Wiukipedia" + "name": "N: Wikipedia" }, "dragging": false, "height": 128,