Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
feat: correct the prompt grammar. (#11328)
-LAN-464e6354c57b
diff --git a/api/core/prompt/prompt_templates/advanced_prompt_templates.py b/api/core/prompt/prompt_templates/advanced_prompt_templates.pyindex 0ab7f526cc4..e55966eeee8 100644--- a/api/core/prompt/prompt_templates/advanced_prompt_templates.py+++ b/api/core/prompt/prompt_templates/advanced_prompt_templates.py@@ -5,7 +5,7 @@ BAICHUAN_CONTEXT = "用户在与一个客观的助手对话。助手会尊重找CHAT_APP_COMPLETION_PROMPT_CONFIG = {"completion_prompt_config": {"prompt": {- "text": "{{#pre_prompt#}}\nHere is the chat histories between human and assistant, inside <histories></histories> XML tags.\n\n<histories>\n{{#histories#}}\n</histories>\n\n\nHuman: {{#query#}}\n\nAssistant: " # noqa: E501+ "text": "{{#pre_prompt#}}\nHere are the chat histories between human and assistant, inside <histories></histories> XML tags.\n\n<histories>\n{{#histories#}}\n</histories>\n\n\nHuman: {{#query#}}\n\nAssistant: " # noqa: E501},"conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"},},diff --git a/api/core/workflow/nodes/llm/node.py b/api/core/workflow/nodes/llm/node.pyindex d1d7b983ff5..8ab0d8b2eb2 100644--- a/api/core/workflow/nodes/llm/node.py+++ b/api/core/workflow/nodes/llm/node.py@@ -815,7 +815,7 @@ class LLMNode(BaseNode[LLMNodeData]):"completion_model": {"conversation_histories_role": {"user_prefix": "Human", "assistant_prefix": "Assistant"},"prompt": {- "text": "Here is the chat histories between human and assistant, inside "+ "text": "Here are the chat histories between human and assistant, inside ""<histories></histories> XML tags.\n\n<histories>\n{{""#histories#}}\n</histories>\n\n\nHuman: {{#sys.query#}}\n\nAssistant:","edition_type": "basic",diff --git a/api/core/workflow/nodes/parameter_extractor/prompts.py b/api/core/workflow/nodes/parameter_extractor/prompts.pyindex 58fcecc53b0..e603add1704 100644--- a/api/core/workflow/nodes/parameter_extractor/prompts.py+++ b/api/core/workflow/nodes/parameter_extractor/prompts.py@@ -98,7 +98,7 @@ Step 3: Structure the extracted parameters to JSON object as specified in <strucStep 4: Ensure that the JSON object is properly formatted and valid. The output should not contain any XML tags. Only the JSON object should be outputted.### Memory-Here is the chat histories between human and assistant, inside <histories></histories> XML tags.+Here are the chat histories between human and assistant, inside <histories></histories> XML tags.<histories>{histories}</histories>@@ -125,7 +125,7 @@ CHAT_GENERATE_JSON_PROMPT = """You should always follow the instructions and outThe structure of the JSON object you can found in the instructions.### Memory-Here is the chat histories between human and assistant, inside <histories></histories> XML tags.+Here are the chat histories between human and assistant, inside <histories></histories> XML tags.<histories>{histories}</histories>diff --git a/api/core/workflow/nodes/question_classifier/template_prompts.py b/api/core/workflow/nodes/question_classifier/template_prompts.pyindex 4bca2d9dd4e..53fc136b2c2 100644--- a/api/core/workflow/nodes/question_classifier/template_prompts.py+++ b/api/core/workflow/nodes/question_classifier/template_prompts.py@@ -8,7 +8,7 @@ QUESTION_CLASSIFIER_SYSTEM_PROMPT = """### ConstraintDO NOT include anything other than the JSON array in your response.### Memory- Here is the chat histories between human and assistant, inside <histories></histories> XML tags.+ Here are the chat histories between human and assistant, inside <histories></histories> XML tags.<histories>{histories}</histories>@@ -66,7 +66,7 @@ User:{{"input_text": ["bad service, slow to bring the food"], "categories": [{{"Assistant:{{"keywords": ["bad service", "slow", "food", "tip", "terrible", "waitresses"],"category_id": "f6ff5bc3-aca0-4e4a-8627-e760d0aca78f","category_name": "Experience"}}</example>### Memory-Here is the chat histories between human and assistant, inside <histories></histories> XML tags.+Here are the chat histories between human and assistant, inside <histories></histories> XML tags.<histories>{histories}</histories>