medstudio:基于大模型的胸外科医患问答助手项目

学习研发相关agent项目

Branch1Tags0
FilesLast commitLast update
4 months ago
4 months ago

app: mode: workflow name: 胸外科全知助手 subMode: chat kind: app version: 0.1.0 workflow: graph: edges: - id: LLM_TH0t-LLM_TH0t-LLM_8whQ-LLM_8whQ source: LLM_TH0t sourceHandle: LLM_TH0t target: LLM_8whQ targetHandle: LLM_8whQ - id: LLM_8whQ-LLM_8whQ-End_TQq7-End_TQq7 source: LLM_8whQ sourceHandle: LLM_8whQ target: End_TQq7 targetHandle: End_TQq7 - id: Start_iPbZ-Start_iPbZ-Retrieval_w5lz-Retrieval_w5lz source: Start_iPbZ sourceHandle: Start_iPbZ target: Retrieval_w5lz targetHandle: Retrieval_w5lz - id: Retrieval_w5lz-Retrieval_w5lz-LLM_TH0t-LLM_TH0t source: Retrieval_w5lz sourceHandle: Retrieval_w5lz target: LLM_TH0t targetHandle: LLM_TH0t nodes: - id: Start_iPbZ type: Start name: 开始 x: -818 y: -1135 config: inputParams: [] outputParams: [] nodeParam: {} - id: End_TQq7 type: End name: 结束 x: 123 y: -1139 config: inputParams: [] outputParams: [] nodeParam: jsonParams: [] streamSwitch: true outputType: text textTemplate: "LLM8whQ.result"−id:LLMTH0ttype:LLMname:大模型1x:−396y:−1070config:inputParams:[]outputParams:−key:resulttype:Stringdesc:文本输出−key:reasoningContenttype:Stringdesc:深度思考nodeParam:promptContent:"{LLM_8whQ.result}" - id: LLM_TH0t type: LLM name: 大模型1 x: -396 y: -1070 config: inputParams: [] outputParams: - key: result type: String desc: 文本输出 - key: reasoningContent type: String desc: 深度思考 nodeParam: promptContent: "{MCP_kMuO.result.content}" shortMemory: enabled: false type: self round: 3 param: key: historyList type: Array valueFrom: refer value: "sys.historyList"tryCatchConfig:strategy:noopdefaultValues:−key:resulttype:Stringdesc:文本输出isSystem:truebatchEnable:falsemodelConfig:modelId:qwen3−max−previewparams:topp:0.8temperature:0.7enablethinking:truethinkingbudget:4000resultformat:messagereferParams:[]modelName:Qwen3−Max−Previewcapabilities:−TG−ReasoningretryConfig:retryEnabled:falsemaxRetries:3retryInterval:500concurrentSize:5processCanOutput:falsecontextParam:key:historyListtype:Array<String>valueFrom:refervalue:"{sys.historyList}" tryCatchConfig: strategy: noop defaultValues: - key: result type: String desc: 文本输出 isSystem: true batchEnable: false modelConfig: modelId: qwen3-max-preview params: top_p: 0.8 temperature: 0.7 enable_thinking: true thinking_budget: 4000 result_format: message referParams: [] modelName: Qwen3-Max-Preview capabilities: - TG - Reasoning retryConfig: retryEnabled: false maxRetries: 3 retryInterval: 500 concurrentSize: 5 processCanOutput: false contextParam: key: historyList type: Array<String> valueFrom: refer value: "{sys.historyList}" sysPromptContent: | 你是一位搜索内容重排序的专家 1.对输入的内容进行筛选排序按照权威高低进行排序 2.筛选权威前面前2条的内容(百科优先级最高,官网信息次之) batchSize: 50 contextSwitch: false - id: LLM_8whQ type: LLM name: 大模型2 x: -95 y: -1306 config: inputParams: [] outputParams: - key: result type: String desc: 文本输出 - key: reasoningContent type: String desc: 深度思考 nodeParam: promptContent: "${sys.query}${LLM_TH0t.result}" shortMemory: enabled: false type: self round: 3 param: key: historyList type: Array valueFrom: refer value: "sys.historyList"tryCatchConfig:strategy:noopdefaultValues:−key:resulttype:Stringdesc:文本输出isSystem:truebatchEnable:falsemodelConfig:modelId:qwen3.7−maxparams:topp:0.8temperature:0.24enablethinking:falsethinkingbudget:13882referParams:[]modelName:Qwen3.7−Maxcapabilities:−Reasoning−TGretryConfig:retryEnabled:falsemaxRetries:3retryInterval:500concurrentSize:5processCanOutput:falsecontextParam:key:historyListtype:Array<String>valueFrom:refervalue:"{sys.historyList}" tryCatchConfig: strategy: noop defaultValues: - key: result type: String desc: 文本输出 isSystem: true batchEnable: false modelConfig: modelId: qwen3.7-max params: top_p: 0.8 temperature: 0.24 enable_thinking: false thinking_budget: 13882 referParams: [] modelName: Qwen3.7-Max capabilities: - Reasoning - TG retryConfig: retryEnabled: false maxRetries: 3 retryInterval: 500 concurrentSize: 5 processCanOutput: false contextParam: key: historyList type: Array<String> valueFrom: refer value: "{sys.historyList}" sysPromptContent: |+ 你是一名胸外科的专家,名叫牛教授 工作流 1.耐心且富有同情心对患者进行先抚慰再耐心解答患者提问 2.解答不能随意编造内容必须依据输入的内容进行回答 ###输出约束 1.输出内容首先进行介绍自己,然后先关心下患者,安抚一下情绪 2.依此按条理输出患者问题答案及相关注意事项

      batchSize: 50
      contextSwitch: false
- id: Retrieval_w5lz
  type: Retrieval
  name: 知识库1
  x: -586
  y: -1273
  config:
    inputParams:
    - key: content
      type: String
      valueFrom: refer
    - key: imageList
      type: Array<String>
      valueFrom: refer
    - key: searchFilters
      type: String
      value: "${sys.query}"
      valueFrom: refer
    outputParams:
    - key: result
      type: Object
      desc: 输出结果
      properties:
      - key: chunkList
        type: Array<Object>
        desc: 召回片段列表
        properties:
        - key: content
          type: String
          desc: 内容
        - key: title
          type: String
          desc: 标题
        - key: documentName
          type: String
          desc: 文档名称
        - key: score
          type: Number
          desc: 分数
        - key: id
          type: String
          desc: 切片id
        - key: dataId
          type: String
          desc: 文档id
        - key: docUrl
          type: String
          desc: 源文件下载链接
        - key: knowledgeBaseId
          type: String
          desc: 知识库id
        - key: nid
          type: String
          desc: 原文标识
        - key: images
          type: Array<String>
          desc: 图片列表
        - key: pageNumber
          type: Array<Number>
          desc: 页码
      - key: rewriteQuery
        type: String
        desc: 改写后内容
    nodeParam:
      topK: 10
      scene_config:
        image:
          prompt_strategy:
            rerank_top_n: 5
            prompt_max_token_length: 2000
            prompt_strategy_name: topk
          rewrite:
            enable_rewrite: true
        document:
          prompt_strategy:
            rerank_top_n: 5
            prompt_max_token_length: 2000
            prompt_strategy_name: topk
          rewrite:
            enable_rewrite: true
        table:
          prompt_strategy:
            rerank_top_n: 5
            prompt_max_token_length: 2000
            prompt_strategy_name: topk
          rewrite:
            enable_rewrite: true
      search_mode: direct_search
      knowledgeBaseCodeList:
      - qfmd4l4zom

globalConfig: historyConfig: historySwitch: true historyMaxRound: 5 historyMaxRound: 5

Introduction

学习研发相关agent项目

Customize your domain