Files
ragflow_python/agent/templates/investment_advisor.json

407 lines
43 KiB
JSON
Raw Normal View History

{
"id": 8,
"title": "Intelligent investment advisor",
"description": "An intelligent investment advisor that can answer your financial questions based on real-time domestic financial data and financial information.",
"canvas_type": "chatbot",
"dsl": {
"answer": [],
"components": {
"AkShare:CalmHotelsKnow": {
"downstream": [
"Generate:RottenMangosSmash"
],
"obj": {
"component_name": "AkShare",
"params": {
"top_n": 10
}
},
"upstream": [
"KeywordExtract:AllGarlicsPress"
]
},
"Generate:RottenMangosSmash": {
"downstream": [
"answer:0"
],
"obj": {
"component_name": "Generate",
"params": {
"cite": true,
"frequency_penalty": 0.7,
"llm_id": "deepseek-chat",
"message_history_window_size": 0,
"parameters": [
{
"component_id": "WenCai:TenParksOpen",
"id": "6045431c-3206-4aae-8f4e-c36c27c488d1",
"key": "wencai_input"
},
{
"component_id": "AkShare:CalmHotelsKnow",
"id": "1eca5d40-9718-4a62-8e4c-afbd48fd3929",
"key": "ak_input"
}
],
"presence_penalty": 0.4,
"prompt": "Role: You are a professional financial counseling assistant.\n\nTasks\nStep 1: Organize and output the content provided by Man Finance in the form of a table based on the user's questions.\nStep 2: Organize and output the news information provided by AkShare, making sure that each news item has a corresponding URL link.\n\nNotice:\n- All data provided by WenCai needs to be collated and output, you cannot replace the output data with ellipses!\n- Output no more than 5 news items from AkShare.\n\nContent provided by Wencai: \n{wencai_input}\n\nContent provided by AkShare: \n{ak_input}",
"temperature": 0.1,
"top_p": 0.3
}
},
"upstream": [
"WenCai:TenParksOpen",
"AkShare:CalmHotelsKnow"
]
},
"KeywordExtract:AllGarlicsPress": {
"downstream": [
"AkShare:CalmHotelsKnow"
],
"obj": {
"component_name": "KeywordExtract",
"params": {
"frequencyPenaltyEnabled": true,
"frequency_penalty": 0.7,
"llm_id": "deepseek-chat",
"maxTokensEnabled": true,
"max_tokens": 256,
"presencePenaltyEnabled": true,
"presence_penalty": 0.4,
"temperature": 0.1,
"temperatureEnabled": true,
"topPEnabled": true,
"top_n": 2,
"top_p": 0.3
}
},
"upstream": [
"answer:0"
]
},
"WenCai:TenParksOpen": {
"downstream": [
"Generate:RottenMangosSmash"
],
"obj": {
"component_name": "WenCai",
"params": {
"query_type": "stock",
"top_n": 5
}
},
"upstream": [
"answer:0"
]
},
"answer:0": {
"downstream": [
"WenCai:TenParksOpen",
"KeywordExtract:AllGarlicsPress"
],
"obj": {
"component_name": "Answer",
"params": {}
},
"upstream": [
"begin",
"Generate:RottenMangosSmash"
]
},
"begin": {
"downstream": [
"answer:0"
],
"obj": {
"component_name": "Begin",
"params": {
"prologue": "Hi there!"
}
},
"upstream": []
}
},
"graph": {
"edges": [
{
"id": "81de838d-a541-4b3f-9d68-9172ffd7c6b4",
"label": "",
"source": "begin",
"target": "answer:0"
},
{
"id": "reactflow__edge-WenCai:TenParksOpenb-Generate:RottenMangosSmashc",
"markerEnd": "logo",
"source": "WenCai:TenParksOpen",
"sourceHandle": "b",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "Generate:RottenMangosSmash",
"targetHandle": "c",
"type": "buttonEdge"
},
{
"id": "reactflow__edge-AkShare:CalmHotelsKnowb-Generate:RottenMangosSmashc",
"markerEnd": "logo",
"source": "AkShare:CalmHotelsKnow",
"sourceHandle": "b",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "Generate:RottenMangosSmash",
"targetHandle": "c",
"type": "buttonEdge"
},
{
"id": "reactflow__edge-Generate:RottenMangosSmashd-answer:0d",
"markerEnd": "logo",
"source": "Generate:RottenMangosSmash",
"sourceHandle": "d",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "answer:0",
"targetHandle": "d",
"type": "buttonEdge"
},
{
"id": "reactflow__edge-answer:0b-WenCai:TenParksOpenc",
"markerEnd": "logo",
"source": "answer:0",
"sourceHandle": "b",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "WenCai:TenParksOpen",
"targetHandle": "c",
"type": "buttonEdge"
},
{
"id": "reactflow__edge-answer:0b-KeywordExtract:AllGarlicsPressc",
"markerEnd": "logo",
"source": "answer:0",
"sourceHandle": "b",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "KeywordExtract:AllGarlicsPress",
"targetHandle": "c",
"type": "buttonEdge"
},
{
"id": "reactflow__edge-KeywordExtract:AllGarlicsPressb-AkShare:CalmHotelsKnowc",
"markerEnd": "logo",
"source": "KeywordExtract:AllGarlicsPress",
"sourceHandle": "b",
"style": {
"stroke": "rgb(202 197 245)",
"strokeWidth": 2
},
"target": "AkShare:CalmHotelsKnow",
"targetHandle": "c",
"type": "buttonEdge"
}
],
"nodes": [
{
"data": {
"form": {
"prologue": "Hi there!"
},
"label": "Begin",
"name": "Opening"
},
"dragging": false,
"height": 50,
"id": "begin",
"position": {
"x": -327.8118264317484,
"y": -2.9994670375766646
},
"positionAbsolute": {
"x": -327.8118264317484,
"y": -2.9994670375766646
},
"selected": false,
"sourcePosition": "left",
"targetPosition": "right",
"type": "beginNode",
"width": 50
},
{
"data": {
"form": {},
"label": "Answer",
"name": "Interface"
},
"dragging": false,
"height": 100,
"id": "answer:0",
"position": {
"x": -186.4123883768126,
"y": -27.957575810677824
},
"positionAbsolute": {
"x": -186.4123883768126,
"y": -27.957575810677824
},
"selected": false,
"sourcePosition": "left",
"targetPosition": "right",
"type": "logicNode",
"width": 100
},
{
"data": {
"form": {
"query_type": "stock",
"top_n": 5
},
"label": "WenCai",
"name": "wencai"
},
"dragging": false,
"height": 50,
"id": "WenCai:TenParksOpen",
"position": {
"x": -21.020232062982387,
"y": -47.73820863114301
},
"positionAbsolute": {
"x": -21.020232062982387,
"y": -47.73820863114301
},
"selected": false,
"sourcePosition": "right",
"targetPosition": "left",
"type": "ragNode",
"width": 50
},
{
"data": {
"form": {
"top_n": 10
},
"label": "AkShare",
"name": "akshare"
},
"dragging": false,
"height": 50,
"id": "AkShare:CalmHotelsKnow",
"position": {
"x": 99.2973230068406,
"y": 62.01564509712426
},
"positionAbsolute": {
"x": 99.2973230068406,
"y": 62.01564509712426
},
"selected": false,
"sourcePosition": "right",
"targetPosition": "left",
"type": "ragNode",
"width": 50
},
{
"data": {
"form": {
"frequencyPenaltyEnabled": true,
"frequency_penalty": 0.7,
"llm_id": "deepseek-chat",
"maxTokensEnabled": true,
"max_tokens": 256,
"presencePenaltyEnabled": true,
"presence_penalty": 0.4,
"temperature": 0.1,
"temperatureEnabled": true,
"topPEnabled": true,
"top_n": 2,
"top_p": 0.3
},
"label": "KeywordExtract",
"name": "keywords"
},
"dragging": false,
"height": 70,
"id": "KeywordExtract:AllGarlicsPress",
"position": {
"x": -18.700715327199163,
"y": 51.73207329420393
},
"positionAbsolute": {
"x": -18.700715327199163,
"y": 51.73207329420393
},
"selected": false,
"sourcePosition": "right",
"targetPosition": "left",
"type": "logicNode",
"width": 70
},
{
"data": {
"form": {
"cite": true,
"frequencyPenaltyEnabled": true,
"frequency_penalty": 0.7,
"llm_id": "deepseek-chat",
"maxTokensEnabled": false,
"max_tokens": 2048,
"message_history_window_size": 0,
"parameter": "Precise",
"parameters": [
{
"component_id": "WenCai:TenParksOpen",
"id": "6045431c-3206-4aae-8f4e-c36c27c488d1",
"key": "wencai_input"
},
{
"component_id": "AkShare:CalmHotelsKnow",
"id": "1eca5d40-9718-4a62-8e4c-afbd48fd3929",
"key": "ak_input"
}
],
"presencePenaltyEnabled": true,
"presence_penalty": 0.4,
"prompt": "Role: You are a professional financial counseling assistant.\n\nTasks\nStep 1: Organize and output the content provided by Man Finance in the form of a table based on the user's questions.\nStep 2: Organize and output the news information provided by AkShare, making sure that each news item has a corresponding URL link.\n\nNotice:\n- All data provided by WenCai needs to be collated and output, you cannot replace the output data with ellipses!\n- Output no more than 5 news items from AkShare.\n\nContent provided by Wencai: \n{wencai_input}\n\nContent provided by AkShare: \n{ak_input}",
"temperature": 0.1,
"temperatureEnabled": true,
"topPEnabled": true,
"top_p": 0.3
},
"label": "Generate",
"name": "generate"
},
"dragging": false,
"height": 150,
"id": "Generate:RottenMangosSmash",
"position": {
"x": 271.2569202344237,
"y": -154.181391877237
},
"positionAbsolute": {
"x": 271.2569202344237,
"y": -154.181391877237
},
"selected": true,
"sourcePosition": "right",
"targetPosition": "left",
"type": "logicNode",
"width": 150
}
]
},
"history": [],
"messages": [],
"path": [],
"reference": []
},
"avatar": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACEwAAAhMAfPPw2UAAE5xSURBVHhe7b15tC3XXR741ZnHOw/v3fvmUfMs2ZI8ISwLYwabBSYEN8RmNSE0hBWg6QR6BXcW0EPyT3qtzlrdIU1CDLEDqzGebVmyZCRkzbP05vm9O89nnqq/71dV59Y5976n93QlCOZ89+6zd+3atcevfvv327VPHccl0EMPbxMR3++hh7eFHoF62BJ6BOphS+gRqIctoUegHraEHoF62BJ6BOphS+gRqIctoUegHraEHoF62BJ6BOphS+gRqIctoUegHraEHoF62BJ6BOphS+gRqIctoUegHraEHoF62BJ6BOphS+gRqIctoUegHraEv1PfynBbDTjNBtCqAc063GaNx3W0Ggy7Td4NjqVrsUlOJAonGgOicSCWYDjB2yUBl3FOhPE9vCP4b5dAjQpQK6JVXoVTXwWqy8DaApxGgfE8rqzBLS3TraFeXkNMXHE8gdpqtVCvkzfpDCLpPrh0kVQ/kMjDjdNlhuBkBoBkP5w0/UQWiKfs2h6uDf9tEYgkcQvzcJfPwV27gEh5DigvkjBrcGol1pYEcVpkCNM2We1my8jSZLjVcimFlAmlDz8j/IhGIubbh66N6rQDt96Ek8qQTDkgO4JWegTo34nI0B44+VEgPaiM3nV84QtfwMmTJ/Hbv/3bfszfPfytE8itSLJchLt4HFg5B6cwDRTnOeVo0EUSujqJQtcgWUQYckT/3ofS2AHR9oMAIWLRU5TDLCP8iJJQsSgnPDqKLYks5s/zeZIpP4HI8F5g9ICRysm8e2T6gz/4A/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