Skip to content

Commit

Permalink
Fix typos (#3887)
Browse files Browse the repository at this point in the history
### 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 <haijin.chn@gmail.com>
  • Loading branch information
JinHai-CN authored Dec 6, 2024
1 parent 0d5486a commit c76e7b1
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions agent/templates/DB Assistant.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions agent/templates/customer_service.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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?"
Expand Down Expand Up @@ -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"
Expand Down
18 changes: 9 additions & 9 deletions agent/templates/general_chat_bot.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -1011,7 +1011,7 @@
"top_p": 0.3
},
"label": "Generate",
"name": "tranlate to Chinese"
"name": "translate to Chinese"
},
"dragging": false,
"height": 86,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion agent/templates/interpreter.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion agent/templates/medical_consultation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion agent/templates/seo_blog.json
Original file line number Diff line number Diff line change
Expand Up @@ -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<article_outline>\n{outline}\n\n<article_body>",
"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>",
"query": [],
"temperature": 0.1,
"top_p": 0.3
Expand Down
2 changes: 1 addition & 1 deletion agent/templates/text2sql.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion agent/templates/websearch_assistant.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c76e7b1

Please sign in to comment.