
{
    "id": 9,
    "title": {
        "en": "Technical Docs QA",
        "zh": "技术文档问答"},
    "description": {
        "en": "This is a document question-and-answer system based on a knowledge base. When a user asks a question, it retrieves relevant document content to provide accurate answers.",
        "zh": "基于知识库的文档问答系统，当用户提出问题时，会检索相关本地文档并提供准确回答。"},
    "canvas_type": "Customer Support",
    "dsl": {
            "components": {
                "Agent:StalePandasDream": {
                    "downstream": [
                        "Message:BrownPugsStick"
                    ],
                    "obj": {
                        "component_name": "Agent",
                        "params": {
                            "delay_after_error": 1,
                            "description": "",
                            "exception_comment": "",
                            "exception_default_value": "",
                            "exception_goto": [],
                            "exception_method": null,
                            "frequencyPenaltyEnabled": false,
                            "frequency_penalty": 0.7,
                            "llm_id": "deepseek-chat@DeepSeek",
                            "maxTokensEnabled": false,
                            "max_retries": 3,
                            "max_rounds": 5,
                            "max_tokens": 256,
                            "mcp": [],
                            "message_history_window_size": 12,
                            "outputs": {
                                "content": {
                                    "type": "string",
                                    "value": ""
                                }
                            },
                            "presencePenaltyEnabled": false,
                            "presence_penalty": 0.4,
                            "prompts": [
                                {
                                    "content": "The user query is {sys.query}",
                                    "role": "user"
                                }
                            ],
                            "sys_prompt": "# Role\n\nYou are the **Docs QA Agent**, a specialized knowledge base assistant responsible for providing accurate answers based strictly on the connected documentation repository.\n\n# Core Principles\n\n1. **Knowledge Base Only**: Answer questions EXCLUSIVELY based on information retrieved from the connected knowledge base.\n\n2. **No Content Creation**: Never generate, infer, or create information that is not explicitly present in the retrieved documents.\n\n3. **Source Transparency**: Always indicate when information comes from the knowledge base vs. when it's unavailable.\n\n4. **Accuracy Over Completeness**: Prefer incomplete but accurate answers over complete but potentially inaccurate ones.\n\n# Response Guidelines\n\n## When Information is Available\n\n- Provide direct answers based on retrieved content\n\n- Quote relevant sections when helpful\n\n- Cite the source document/section if available\n\n- Use phrases like: \"According to the documentation...\" or \"Based on the knowledge base...\"\n\n## When Information is Unavailable\n\n- Clearly state: \"I cannot find this information in the current knowledge base.\"\n\n- Do NOT attempt to fill gaps with general knowledge\n\n- Suggest alternative questions that might be covered in the docs\n\n- Use phrases like: \"The documentation does not cover...\" or \"This information is not available in the knowledge base.\"\n\n# Response Format\n\n```markdown\n\n## Answer\n\n[Your response based strictly on knowledge base content]\n\n**Always do these:**\n\n- Use the Retrieval tool for every question\n\n- Be transparent about information availability\n\n- Stick to documented facts only\n\n- Acknowledge knowledge base limitations\n\n",
                            "temperature": 0.1,
                            "temperatureEnabled": true,
                            "tools": [
                                {
                                    "component_name": "Retrieval",
                                    "name": "Retrieval",
                                    "params": {
                                        "cross_languages": [],
                                        "description": "This is  a technical docs knowledge bases.",
                                        "empty_response": "",
                                        "kb_ids": [],
                                        "keywords_similarity_weight": 0.7,
                                        "outputs": {
                                            "formalized_content": {
                                                "type": "string",
                                                "value": ""
                                            }
                                        },
                                        "rerank_id": "",
                                        "similarity_threshold": 0.2,
                                        "top_k": 1024,
                                        "top_n": 8,
                                        "use_kg": false
                                    }
                                }
                            ],
                            "topPEnabled": false,
                            "top_p": 0.3,
                            "user_prompt": "",
                            "visual_files_var": ""
                        }
                    },
                    "upstream": [
                        "begin"
                    ]
                },
                "Message:BrownPugsStick": {
                    "downstream": [],
                    "obj": {
                        "component_name": "Message",
                        "params": {
                            "content": [
                                "{Agent:StalePandasDream@content}"
                            ]
                        }
                    },
                    "upstream": [
                        "Agent:StalePandasDream"
                    ]
                },
                "begin": {
                    "downstream": [
                        "Agent:StalePandasDream"
                    ],
                    "obj": {
                        "component_name": "Begin",
                        "params": {}
                    },
                    "upstream": []
                }
            },
            "globals": {
                "sys.conversation_turns": 0,
                "sys.files": [],
                "sys.query": "",
                "sys.user_id": ""
            },
            "graph": {
                "edges": [
                    {
                        "data": {
                            "isHovered": false
                        },
                        "id": "xy-edge__beginstart-Agent:StalePandasDreamend",
                        "source": "begin",
                        "sourceHandle": "start",
                        "target": "Agent:StalePandasDream",
                        "targetHandle": "end"
                    },
                    {
                        "data": {
                            "isHovered": false
                        },
                        "id": "xy-edge__Agent:StalePandasDreamstart-Message:BrownPugsStickend",
                        "source": "Agent:StalePandasDream",
                        "sourceHandle": "start",
                        "target": "Message:BrownPugsStick",
                        "targetHandle": "end"
                    },
                    {
                        "id": "xy-edge__Agent:StalePandasDreamtool-Tool:PrettyMasksFloatend",
                        "source": "Agent:StalePandasDream",
                        "sourceHandle": "tool",
                        "target": "Tool:PrettyMasksFloat",
                        "targetHandle": "end"
                    }
                ],
                "nodes": [
                    {
                        "data": {
                            "label": "Begin",
                            "name": "begin"
                        },
                        "dragging": false,
                        "id": "begin",
                        "measured": {
                            "height": 48,
                            "width": 200
                        },
                        "position": {
                            "x": 47.500000000000014,
                            "y": 199.5
                        },
                        "selected": false,
                        "sourcePosition": "left",
                        "targetPosition": "right",
                        "type": "beginNode"
                    },
                    {
                        "data": {
                            "form": {
                                "delay_after_error": 1,
                                "description": "",
                                "exception_comment": "",
                                "exception_default_value": "",
                                "exception_goto": [],
                                "exception_method": null,
                                "frequencyPenaltyEnabled": false,
                                "frequency_penalty": 0.7,
                                "llm_id": "deepseek-chat@DeepSeek",
                                "maxTokensEnabled": false,
                                "max_retries": 3,
                                "max_rounds": 5,
                                "max_tokens": 256,
                                "mcp": [],
                                "message_history_window_size": 12,
                                "outputs": {
                                    "content": {
                                        "type": "string",
                                        "value": ""
                                    }
                                },
                                "presencePenaltyEnabled": false,
                                "presence_penalty": 0.4,
                                "prompts": [
                                    {
                                        "content": "The user query is {sys.query}",
                                        "role": "user"
                                    }
                                ],
                                "sys_prompt": "# Role\n\nYou are the **Docs QA Agent**, a specialized knowledge base assistant responsible for providing accurate answers based strictly on the connected documentation repository.\n\n# Core Principles\n\n1. **Knowledge Base Only**: Answer questions EXCLUSIVELY based on information retrieved from the connected knowledge base.\n\n2. **No Content Creation**: Never generate, infer, or create information that is not explicitly present in the retrieved documents.\n\n3. **Source Transparency**: Always indicate when information comes from the knowledge base vs. when it's unavailable.\n\n4. **Accuracy Over Completeness**: Prefer incomplete but accurate answers over complete but potentially inaccurate ones.\n\n# Response Guidelines\n\n## When Information is Available\n\n- Provide direct answers based on retrieved content\n\n- Quote relevant sections when helpful\n\n- Cite the source document/section if available\n\n- Use phrases like: \"According to the documentation...\" or \"Based on the knowledge base...\"\n\n## When Information is Unavailable\n\n- Clearly state: \"I cannot find this information in the current knowledge base.\"\n\n- Do NOT attempt to fill gaps with general knowledge\n\n- Suggest alternative questions that might be covered in the docs\n\n- Use phrases like: \"The documentation does not cover...\" or \"This information is not available in the knowledge base.\"\n\n# Response Format\n\n```markdown\n\n## Answer\n\n[Your response based strictly on knowledge base content]\n\n**Always do these:**\n\n- Use the Retrieval tool for every question\n\n- Be transparent about information availability\n\n- Stick to documented facts only\n\n- Acknowledge knowledge base limitations\n\n",
                                "temperature": 0.1,
                                "temperatureEnabled": true,
                                "tools": [
                                    {
                                        "component_name": "Retrieval",
                                        "name": "Retrieval",
                                        "params": {
                                            "cross_languages": [],
                                            "description": "This is  a technical docs knowledge bases.",
                                            "empty_response": "",
                                            "kb_ids": [],
                                            "keywords_similarity_weight": 0.7,
                                            "outputs": {
                                                "formalized_content": {
                                                    "type": "string",
                                                    "value": ""
                                                }
                                            },
                                            "rerank_id": "",
                                            "similarity_threshold": 0.2,
                                            "top_k": 1024,
                                            "top_n": 8,
                                            "use_kg": false
                                        }
                                    }
                                ],
                                "topPEnabled": false,
                                "top_p": 0.3,
                                "user_prompt": "",
                                "visual_files_var": ""
                            },
                            "label": "Agent",
                            "name": "Docs QA Agent"
                        },
                        "dragging": false,
                        "id": "Agent:StalePandasDream",
                        "measured": {
                            "height": 87,
                            "width": 200
                        },
                        "position": {
                            "x": 351.5,
                            "y": 231
                        },
                        "selected": true,
                        "sourcePosition": "right",
                        "targetPosition": "left",
                        "type": "agentNode"
                    },
                    {
                        "data": {
                            "form": {
                                "content": [
                                    "{Agent:StalePandasDream@content}"
                                ]
                            },
                            "label": "Message",
                            "name": "Message_0"
                        },
                        "dragging": false,
                        "id": "Message:BrownPugsStick",
                        "measured": {
                            "height": 56,
                            "width": 200
                        },
                        "position": {
                            "x": 671.5,
                            "y": 192.5
                        },
                        "selected": false,
                        "sourcePosition": "right",
                        "targetPosition": "left",
                        "type": "messageNode"
                    },
                    {
                        "data": {
                            "form": {
                                "description": "This is an agent for a specific task.",
                                "user_prompt": "This is the order you need to send to the agent."
                            },
                            "label": "Tool",
                            "name": "flow.tool_0"
                        },
                        "dragging": false,
                        "id": "Tool:PrettyMasksFloat",
                        "measured": {
                            "height": 48,
                            "width": 200
                        },
                        "position": {
                            "x": 234.5,
                            "y": 370.5
                        },
                        "selected": false,
                        "sourcePosition": "right",
                        "targetPosition": "left",
                        "type": "toolNode"
                    },
                    {
                        "data": {
                            "form": {
                                "text": "This is a document question-and-answer system based on a knowledge base. When a user asks a question, it retrieves relevant document content to provide accurate answers.\nProcess Steps\n\n#Begin\n\nWorkflow entry: Receive user questions\n\nDocs QA Agent\n\nAI Model: deepseek-chat\n\nFunction: Analyze user questions and understand query intent\n\nRetrieval\n\nFunction: Search for relevant information from connected document knowledge bases\n\nFeature: Ensures answers are based on actual document content\n\nMessage_0 (Output Response)\n\nReturns accurate answers to the user based on the knowledge base\n\n#Core Features\n\nAccuracy: Answers are strictly based on knowledge base content\n\nReliability: Avoid AI illusions and only provide information that is verifiable\n\nSimplicity: Linear process with fast response\n\n#Applicable Scenarios\n\nProduct Documentation Query\n\nTechnical Support Q&A\n\nInternal Enterprise Knowledge Base Search\n\nUser Manual Consultation"
                            },
                            "label": "Note",
                            "name": "Workflow Overall Description"
                        },
                        "dragHandle": ".note-drag-handle",
                        "dragging": false,
                        "height": 154,
                        "id": "Note:SwiftSuitsFlow",
                        "measured": {
                            "height": 154,
                            "width": 374
                        },
                        "position": {
                            "x": 349.65276636527506,
                            "y": 28.869446726944993
                        },
                        "resizing": false,
                        "selected": false,
                        "sourcePosition": "right",
                        "targetPosition": "left",
                        "type": "noteNode",
                        "width": 374
                    }
                ]
            },
            "history": [],
            "messages": [],
            "path": [],
            "retrieval": []
        },
    "avatar": "data:image/png;base64,[encoded data, 9464 characters]"
}

