🤖

电费单识别

暂无描述

⬡ 23 节点 ↓ 11 下载 ⚙ workflow ⭐ 75/100 2026-05-28

工作流图谱

YAML 源码

app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: workflow
  name: 电费单识别
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/tongyi:0.0.11@5077dd5c6ff5bc5dc1b2772e460325ae2cc2619a7c0fd151d69bc5841edba5bd
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/siliconflow:0.0.7@8b9d2f57d314120744c245b6fe4f8701e1a7490a500d9fb74e9e9dceeaea5f70
kind: app
version: 0.1.5
workflow:
  conversation_variables: []
  environment_variables: []
  features:
    file_upload:
      allowed_file_extensions:
      - .JPG
      - .JPEG
      - .PNG
      - .GIF
      - .WEBP
      - .SVG
      allowed_file_types:
      - image
      allowed_file_upload_methods:
      - local_file
      - remote_url
      enabled: false
      fileUploadConfig:
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        image_file_size_limit: 10
        video_file_size_limit: 100
        workflow_file_upload_limit: 10
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
      number_limits: 3
    opening_statement: ''
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions: []
    suggested_questions_after_answer:
      enabled: false
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        sourceType: start
        targetType: if-else
      id: 1741051454636-source-1741051457893-target
      selected: false
      source: '1741051454636'
      sourceHandle: source
      target: '1741051457893'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1741051457893-true-1741051559532-target
      selected: false
      source: '1741051457893'
      sourceHandle: 'true'
      target: '1741051559532'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: document-extractor
      id: 1741051457893-false-1741247875227-target
      selected: false
      source: '1741051457893'
      sourceHandle: 'false'
      target: '1741247875227'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: code
        targetType: if-else
      id: 1741662885830-source-1741660579933-target
      selected: false
      source: '1741662885830'
      sourceHandle: source
      target: '1741660579933'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1741660579933-a1a9e88c-8f8e-4473-a8d2-6cecc88b9b1b-17416737913850-target
      selected: false
      source: '1741660579933'
      sourceHandle: a1a9e88c-8f8e-4473-a8d2-6cecc88b9b1b
      target: '17416737913850'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: variable-aggregator
        targetType: code
      id: 1741763153946-source-1741662885830-target
      selected: false
      source: '1741763153946'
      sourceHandle: source
      target: '1741662885830'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: variable-aggregator
      id: 1741051559532-source-1741763153946-target
      selected: false
      source: '1741051559532'
      sourceHandle: source
      target: '1741763153946'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: document-extractor
        targetType: template-transform
      id: 1741247875227-source-1741763450516-target
      selected: false
      source: '1741247875227'
      sourceHandle: source
      target: '1741763450516'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: template-transform
        targetType: variable-aggregator
      id: 1741763450516-source-1741763153946-target
      selected: false
      source: '1741763450516'
      sourceHandle: source
      target: '1741763153946'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: llm
      id: 1741660579933-true-17415730053870-target
      source: '1741660579933'
      sourceHandle: 'true'
      target: '17415730053870'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: if-else
        targetType: llm
      id: 1741660579933-7d05ee0d-fc89-49cb-a74d-98e542f1712a-17421260850840-target
      source: '1741660579933'
      sourceHandle: 7d05ee0d-fc89-49cb-a74d-98e542f1712a
      target: '17421260850840'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: http-request
        targetType: end
      id: 1742126144055-source-17416625693020-target
      source: '1742126144055'
      sourceHandle: source
      target: '17416625693020'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: llm
      id: 17421260850840-source-1742126281476-target
      source: '17421260850840'
      sourceHandle: source
      target: '1742126281476'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: http-request
      id: 1742126281476-source-1742126144055-target
      source: '1742126281476'
      sourceHandle: source
      target: '1742126144055'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: llm
        targetType: llm
      id: 17415730053870-source-1742126281476-target
      source: '17415730053870'
      sourceHandle: source
      target: '1742126281476'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInLoop: false
        sourceType: llm
        targetType: llm
      id: 17416737913850-source-1742126281476-target
      source: '17416737913850'
      sourceHandle: source
      target: '1742126281476'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables:
        - allowed_file_extensions: []
          allowed_file_types:
          - image
          - document
          allowed_file_upload_methods:
          - local_file
          label: doc
          max_length: 10
          options: []
          required: true
          type: file-list
          variable: doc
      height: 88
      id: '1741051454636'
      position:
        x: 30
        y: 287
      positionAbsolute:
        x: 30
        y: 287
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        cases:
        - case_id: 'true'
          conditions:
          - comparison_operator: contains
            id: e42815ee-33b3-4c03-87bb-d74ae332b1ae
            sub_variable_condition:
              case_id: c7e43395-e9d8-4cdd-b341-2f4553b6f1a6
              conditions:
              - comparison_operator: in
                id: 17994788-a207-4f0f-b080-134afea55a96
                key: type
                value:
                - image
                varType: string
              logical_operator: and
            value: ''
            varType: array[file]
            variable_selector:
            - '1741051454636'
            - doc
          id: 'true'
          logical_operator: and
        desc: ''
        selected: false
        title: 条件分支
        type: if-else
      height: 148
      id: '1741051457893'
      position:
        x: 334
        y: 287
      positionAbsolute:
        x: 334
        y: 287
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 243
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        model:
          completion_params:
            frequency_penalty: 0.5
            max_tokens: 512
            temperature: 0.7
            top_p: 0.7
          mode: chat
          name: qwen2.5-vl-72b-instruct
          provider: langgenius/tongyi/tongyi
        prompt_template:
        - id: 5e85986a-b6fc-4b1b-85e3-7a5e5aa523ef
          role: system
          text: "#角色:\n电费账单识别助手,按规范格式提取图片信息。\n#图片特征\n顶部:国家电网标识+电力公司名称+「电费账单」标题\n企业信息区:含账单周期、户号、用电地址等字段\n\
            居中显示本期电量(千瓦时)和电费金额\n左侧表格区含多层子表结构:\n实线分隔主表,虚线分隔行项目\n按电能表编号分表头,含示数类型、抄见电量等9列数据\n\
            #数据格式规范\n需提取以下结构化数据:\n企业基础信息\n本期总电量/总电费\n分电能表号的明细表:\nmarkdown\n复制电能表编号:[编号]\
            \ \n电价:[价格]\n示数类型 | 上期示数 | 本期示数 | 倍率 | 抄见电量 | 变损 | 线损 | 扣除分表 | 计费电量\n\
            ---------------------------------------------\n正向有功(总) | ... | ... | ...\
            \ | ... | ... | ... | ... | ... \n正向有功(尖峰) | ... | ... | ... | ... | ...\
            \ | ... | ... | ...\n\n#输出要求\n完整提取账单所有字段信息\n按电能表编号分组呈现明细表\n保留原始计量单位(千瓦时/千瓦)\n\
            异常数据项需标红备注"
        selected: false
        title: 图片识别
        type: llm
        variables: []
        vision:
          configs:
            detail: high
            variable_selector:
            - '1741051454636'
            - doc
          enabled: true
      height: 88
      id: '1741051559532'
      position:
        x: 942
        y: 287
      positionAbsolute:
        x: 942
  ...(过长已截断)