app:
  description: 依維修手冊知識庫，協助線上操作員排查 CNC 設備故障。
  icon: 🔧
  icon_background: '#FEF3C7'
  icon_type: emoji
  mode: advanced-chat
  name: 設備故障診斷助手
  use_icon_as_answer_icon: false
dependencies:
- current_identifier: null
  type: marketplace
  value:
    marketplace_plugin_unique_identifier: langgenius/anthropic:0.3.24@c5e50da8c13c7ac75348df5ac75b9418c79736eb506064669dd7ca06cbd83537
    version: null
kind: app
version: 0.6.0
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:
        attachment_image_file_size_limit: 2
        audio_file_size_limit: 50
        batch_count_limit: 5
        file_size_limit: 15
        file_upload_limit: 20
        image_file_batch_limit: 10
        image_file_size_limit: 10
        single_chunk_attachment_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: 我是設備故障診斷助手 🔧 請描述機台型號與故障現象（例如『CNC 主軸溫度警報 ALM-401』），我會依維修手冊給你排查步驟。
    retriever_resource:
      enabled: true
    sensitive_word_avoidance:
      enabled: false
    speech_to_text:
      enabled: false
    suggested_questions:
    - 主軸過熱 ALM-401 怎麼處理？
    - X 軸伺服過負載 ALM-522 排查步驟
    - 換刀失敗 ALM-310 要檢查什麼？
    - 每日保養要做哪些？
    suggested_questions_after_answer:
      enabled: true
    text_to_speech:
      enabled: false
      language: ''
      voice: ''
  graph:
    edges:
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: start
        targetType: knowledge-retrieval
      id: 14s-14kr
      source: 14s
      sourceHandle: source
      target: 14kr
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: knowledge-retrieval
        targetType: llm
      id: 14kr-14l
      source: 14kr
      sourceHandle: source
      target: 14l
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        isInLoop: false
        sourceType: llm
        targetType: answer
      id: 14l-14a
      source: 14l
      sourceHandle: source
      target: 14a
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        selected: false
        title: 開始
        type: start
        variables: []
      height: 73
      id: 14s
      position:
        x: 80
        y: 300
      positionAbsolute:
        x: 80
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        dataset_ids:
        - kGFLjKnJhYuHJOYaeoqFhCOwYjH5KdZE9062A1eeSAEEZMBaOgHkOOTUXtQ6owfZ
        multiple_retrieval_config:
          reranking_enable: false
          reranking_mode: reranking_model
          reranking_model:
            model: ''
            provider: ''
          score_threshold: null
          top_k: 3
          weights: null
        query_variable_selector:
        - sys
        - query
        retrieval_mode: multiple
        selected: true
        title: 知識檢索
        type: knowledge-retrieval
      height: 90
      id: 14kr
      position:
        x: 360
        y: 300
      positionAbsolute:
        x: 360
        y: 300
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        context:
          enabled: true
          variable_selector:
          - 14kr
          - result
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.2
          mode: chat
          name: claude-sonnet-5
          provider: langgenius/anthropic/anthropic
        prompt_template:
        - id: sys-14
          role: system
          text: '你是工廠設備課的『設備故障診斷助手』，協助線上操作員快速排查 CNC 加工中心的故障。

            請【只根據】下方【參考資料】回答，並遵守以下規則：

            1. 先判斷可能的故障方向，再條列『建議排查步驟』（由簡到繁、操作員能自行做的優先）。

            2. 涉及主軸、伺服、機械拆解的動作，務必提醒『通報設備課、勿自行拆機、執行 LOTO 上鎖掛牌』。

            3. 若參考資料沒有相關內容，明說『手冊中查無此故障，請通報設備課』，不要憑空捏造。

            4. 一律使用繁體中文，語氣冷靜、條列清楚。


            【參考資料】

            {{#context#}}'
        selected: false
        title: LLM
        type: llm
        vision:
          enabled: false
      height: 88
      id: 14l
      position:
        x: 640
        y: 300
      positionAbsolute:
        x: 640
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    - data:
        answer: '{{#14l.text#}}'
        selected: false
        title: 直接回覆
        type: answer
        variables: []
      height: 103
      id: 14a
      position:
        x: 920
        y: 300
      positionAbsolute:
        x: 920
        y: 300
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 242
    viewport:
      x: 20
      y: 60
      zoom: 0.85
  rag_pipeline_variables: []
