{
    "id": 19,
    "title": {
		"en": "Choose Your Knowledge Base Agent",
		"zh": "选择知识库智能体"},
    "description": {
		"en": "Select your desired knowledge base from the dropdown menu. The Agent will only retrieve from the selected knowledge base and use this content  to generate responses.",
		"zh": "从下拉菜单中选择知识库，智能体将仅根据所选知识库内容生成回答。"},
	"canvas_type": "Agent", 
    "dsl": {
		"components": {
			"Agent:BraveParksJoke": {
				"downstream": [
					"Message:HotMelonsObey"
				],
				"obj": {
					"component_name": "Agent",
					"params": {
						"delay_after_error": 1,
						"description": "",
						"exception_default_value": "",
						"exception_goto": [],
						"exception_method": "",
						"frequencyPenaltyEnabled": false,
						"frequency_penalty": 0.7,
						"llm_id": "deepseek-chat@DeepSeek",
						"maxTokensEnabled": false,
						"max_retries": 3,
						"max_rounds": 1,
						"max_tokens": 256,
						"mcp": [],
						"message_history_window_size": 12,
						"outputs": {
							"content": {
								"type": "string",
								"value": ""
							}
						},
						"presencePenaltyEnabled": false,
						"presence_penalty": 0.4,
						"prompts": [
							{
								"content": "{sys.query}",
								"role": "user"
							}
						],
						"sys_prompt": "#Role\nYou are a **Docs QA Agent**, a specialized knowledge base assistant responsible for providing accurate answers based strictly on the connected documentation repository.\n\n# Core Principles\n1. **Rapid Output**\nRetrieve and answer questions directly from the knowledge base using the retrieval tool. Immediately return results upon successful retrieval without additional reflection rounds. Prioritize rapid output even before reaching maximum iteration limits.\n2. **Knowledge Base Only**: Answer questions EXCLUSIVELY based on information retrieved from the connected knowledge base.\n3. **No Content Creation**: Never generate, infer, or create information that is not explicitly present in the retrieved documents.\n4. **Source Transparency**: Always indicate when information comes from the knowledge base vs. when it's unavailable.\n5. **Accuracy Over Completeness**: Prefer incomplete but accurate answers over complete but potentially inaccurate ones.\n# Response Guidelines\n## When Information is Available\n- Provide direct answers based on retrieved content\n- Quote relevant sections when helpful\n- Cite the source document/section if available\n- Use phrases like: \"According to the documentation...\" or \"Based on the knowledge base...\"\n## When Information is Unavailable\n- Clearly state: \"I cannot find this information in the current knowledge base.\"\n- Do NOT attempt to fill gaps with general knowledge\n- Suggest alternative questions that might be covered in the docs\n- Use phrases like: \"The documentation does not cover...\" or \"This information is not available in the knowledge base.\"\n# Response Format\n```markdown\n## Answer\n[Your response based strictly on knowledge base content]\n**Always do these:**\n- Use the Retrieval tool for every question\n- Be transparent about information availability\n- Stick to documented facts only\n- Acknowledge knowledge base limitations",
						"temperature": 0.1,
						"temperatureEnabled": true,
						"tools": [
							{
								"component_name": "Retrieval",
								"name": "Retrieval",
								"params": {
									"cross_languages": [],
									"description": "Retrieve from the knowledge bases.",
									"empty_response": "",
									"kb_ids": [
										"begin@knowledge base"
									],
									"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:HotMelonsObey": {
				"downstream": [],
				"obj": {
					"component_name": "Message",
					"params": {
						"content": [
							"{Agent:BraveParksJoke@content}"
						]
					}
				},
				"upstream": [
					"Agent:BraveParksJoke"
				]
			},
			"begin": {
				"downstream": [
					"Agent:BraveParksJoke"
				],
				"obj": {
					"component_name": "Begin",
					"params": {
						"enablePrologue": true,
						"inputs": {
							"knowledge base": {
								"name": "knowledge base",
								"optional": false,
								"options": [
									"knowledge base 1",
									"knowledge base 2",
									"knowledge base 3"
								],
								"type": "options"
							}
						},
						"mode": "conversational",
						"prologue": "Hi! I'm your retrieval assistant. What do you want to ask?"
					}
				},
				"upstream": []
			}
		},
		"globals": {
			"sys.conversation_turns": 0,
			"sys.files": [],
			"sys.query": "",
			"sys.user_id": ""
		},
		"graph": {
			"edges": [
				{
					"data": {
						"isHovered": false
					},
					"id": "xy-edge__beginstart-Agent:BraveParksJokeend",
					"selected": false,
					"source": "begin",
					"sourceHandle": "start",
					"target": "Agent:BraveParksJoke",
					"targetHandle": "end"
				},
				{
					"data": {
						"isHovered": false
					},
					"id": "xy-edge__Agent:BraveParksJoketool-Tool:TangyWolvesDreamend",
					"source": "Agent:BraveParksJoke",
					"sourceHandle": "tool",
					"target": "Tool:TangyWolvesDream",
					"targetHandle": "end"
				},
				{
					"data": {
						"isHovered": false
					},
					"id": "xy-edge__Agent:BraveParksJokestart-Message:HotMelonsObeyend",
					"source": "Agent:BraveParksJoke",
					"sourceHandle": "start",
					"target": "Message:HotMelonsObey",
					"targetHandle": "end"
				}
			],
			"nodes": [
				{
					"data": {
						"form": {
							"enablePrologue": true,
							"inputs": {
								"knowledge base": {
									"name": "knowledge base",
									"optional": false,
									"options": [
										"knowledge base 1",
										"knowledge base 2",
										"knowledge base 3"
									],
									"type": "options"
								}
							},
							"mode": "conversational",
							"prologue": "Hi! I'm your retrieval assistant. What do you want to ask?"
						},
						"label": "Begin",
						"name": "begin"
					},
					"dragging": false,
					"id": "begin",
					"measured": {
						"height": 76,
						"width": 200
					},
					"position": {
						"x": 174.93384234796846,
						"y": -272.9638317458806
					},
					"selected": false,
					"sourcePosition": "left",
					"targetPosition": "right",
					"type": "beginNode"
				},
				{
					"data": {
						"form": {
							"delay_after_error": 1,
							"description": "",
							"exception_default_value": "",
							"exception_goto": [],
							"exception_method": "",
							"frequencyPenaltyEnabled": false,
							"frequency_penalty": 0.7,
							"llm_id": "deepseek-chat@DeepSeek",
							"maxTokensEnabled": false,
							"max_retries": 3,
							"max_rounds": 1,
							"max_tokens": 256,
							"mcp": [],
							"message_history_window_size": 12,
							"outputs": {
								"content": {
									"type": "string",
									"value": ""
								}
							},
							"presencePenaltyEnabled": false,
							"presence_penalty": 0.4,
							"prompts": [
								{
									"content": "{sys.query}",
									"role": "user"
								}
							],
							"sys_prompt": "#Role\nYou are a **Docs QA Agent**, a specialized knowledge base assistant responsible for providing accurate answers based strictly on the connected documentation repository.\n\n# Core Principles\n1. **Rapid Output**\nRetrieve and answer questions directly from the knowledge base using the retrieval tool. Immediately return results upon successful retrieval without additional reflection rounds. Prioritize rapid output even before reaching maximum iteration limits.\n2. **Knowledge Base Only**: Answer questions EXCLUSIVELY based on information retrieved from the connected knowledge base.\n3. **No Content Creation**: Never generate, infer, or create information that is not explicitly present in the retrieved documents.\n4. **Source Transparency**: Always indicate when information comes from the knowledge base vs. when it's unavailable.\n5. **Accuracy Over Completeness**: Prefer incomplete but accurate answers over complete but potentially inaccurate ones.\n# Response Guidelines\n## When Information is Available\n- Provide direct answers based on retrieved content\n- Quote relevant sections when helpful\n- Cite the source document/section if available\n- Use phrases like: \"According to the documentation...\" or \"Based on the knowledge base...\"\n## When Information is Unavailable\n- Clearly state: \"I cannot find this information in the current knowledge base.\"\n- Do NOT attempt to fill gaps with general knowledge\n- Suggest alternative questions that might be covered in the docs\n- Use phrases like: \"The documentation does not cover...\" or \"This information is not available in the knowledge base.\"\n# Response Format\n```markdown\n## Answer\n[Your response based strictly on knowledge base content]\n**Always do these:**\n- Use the Retrieval tool for every question\n- Be transparent about information availability\n- Stick to documented facts only\n- Acknowledge knowledge base limitations",
							"temperature": 0.1,
							"temperatureEnabled": true,
							"tools": [
								{
									"component_name": "Retrieval",
									"name": "Retrieval",
									"params": {
										"cross_languages": [],
										"description": "Retrieve from the knowledge bases.",
										"empty_response": "",
										"kb_ids": [
											"begin@knowledge base"
										],
										"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": "Agent"
					},
					"dragging": false,
					"id": "Agent:BraveParksJoke",
					"measured": {
						"height": 84,
						"width": 200
					},
					"position": {
						"x": 699.8147585743118,
						"y": -512.1229013834202
					},
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "agentNode"
				},
				{
					"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"
					},
					"id": "Tool:TangyWolvesDream",
					"measured": {
						"height": 48,
						"width": 200
					},
					"position": {
						"x": 617.8147585743118,
						"y": -372.1229013834202
					},
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "toolNode"
				},
				{
					"data": {
						"form": {
							"content": [
								"{Agent:BraveParksJoke@content}"
							]
						},
						"label": "Message",
						"name": "Message"
					},
					"id": "Message:HotMelonsObey",
					"measured": {
						"height": 56,
						"width": 200
					},
					"position": {
						"x": 999.8147585743118,
						"y": -512.1229013834202
					},
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "messageNode"
				},
				{
					"data": {
						"form": {
							"text": "Configure the dropdown menu with your knowledge bases for retrieval."
						},
						"label": "Note",
						"name": "Note: Begin"
					},
					"dragHandle": ".note-drag-handle",
					"id": "Note:CurlyGoatsRun",
					"measured": {
						"height": 136,
						"width": 250
					},
					"position": {
						"x": 240,
						"y": -135
					},
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "noteNode"
				},
				{
					"data": {
						"form": {
							"text": "The Agent will only retrieve from the selected knowledge base and use this content  to generate responses.\n\nThe Agent prioritizes rapid response per system prompt configuration. Adjust reflection rounds by modifying the system prompt or via Agent > Advanced Settings > Max Rounds."
						},
						"label": "Note",
						"name": "Note: Agent"
					},
					"dragHandle": ".note-drag-handle",
					"dragging": false,
					"height": 186,
					"id": "Note:GentleShowersAct",
					"measured": {
						"height": 186,
						"width": 456
					},
					"position": {
						"x": 759.6166714488969,
						"y": -303.3174949046285
					},
					"resizing": false,
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "noteNode",
					"width": 456
				},
				{
					"data": {
						"form": {
							"text": "Select your desired knowledge base from the dropdown menu. \nThe Agent will only retrieve from the selected knowledge base and use this content  to generate responses."
						},
						"label": "Note",
						"name": "Workflow overall description"
					},
					"dragHandle": ".note-drag-handle",
					"dragging": false,
					"height": 169,
					"id": "Note:FineCandlesDig",
					"measured": {
						"height": 169,
						"width": 357
					},
					"position": {
						"x": 177.69466666666665,
						"y": -531.9333333333334
					},
					"resizing": false,
					"selected": false,
					"sourcePosition": "right",
					"targetPosition": "left",
					"type": "noteNode",
					"width": 357
				}
			]
		},
		"history": [],
		"messages": [],
		"path": [],
		"retrieval": []
	},                                   
    "avatar": "data:image/png;base64,[encoded data, 7632 characters]"
}

