app:
  description: ''
  icon: 🤖
  icon_background: '#FFEAD5'
  mode: advanced-chat
  name: DeepSeek R1 Chatflow
  use_icon_as_answer_icon: false
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:
        sourceType: llm
        targetType: answer
      id: llm-answer
      source: llm
      sourceHandle: source
      target: answer
      targetHandle: target
      type: custom
    - data:
        isInIteration: false
        sourceType: start
        targetType: tool
      id: 1738252818103-source-1738807877531-target
      source: '1738252818103'
      sourceHandle: source
      target: '1738807877531'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: tool
        targetType: code
      id: 1738807877531-source-1738810200855-target
      source: '1738807877531'
      sourceHandle: source
      target: '1738810200855'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: code
        targetType: llm
      id: 1738810200855-source-llm-target
      source: '1738810200855'
      sourceHandle: source
      target: llm
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: Start
        type: start
        variables: []
      height: 54
      id: '1738252818103'
      position:
        x: 80
        y: 282
      positionAbsolute:
        x: 80
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        memory:
          query_prompt_template: '{{#sys.query#}}'
          role_prefix:
            assistant: ''
            user: ''
          window:
            enabled: false
            size: 10
        model:
          completion_params:
            temperature: 0.7
          mode: chat
          name: deepseek-r1:7b
          provider: ollama
        prompt_template:
        - id: 79bd6025-0c15-4479-bba2-c2f38a672736
          role: system
          text: '你是一个具备联网分析能力的 LLM，基于在线内容给出你的答复。这是用户的初始需求：{{#sys.query#}}

            这是联网搜索内容：{{#1738810200855.result#}}'
        selected: false
        title: LLM
        type: llm
        variables: []
        vision:
          enabled: false
      height: 98
      id: llm
      position:
        x: 1003.3367922956443
        y: 282
      positionAbsolute:
        x: 1003.3367922956443
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        answer: '{{#llm.text#}}'
        desc: ''
        selected: false
        title: Answer
        type: answer
        variables: []
      height: 103
      id: answer
      position:
        x: 1394.4836843335618
        y: 282
      positionAbsolute:
        x: 1394.4836843335618
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        provider_id: google
        provider_name: google
        provider_type: builtin
        selected: false
        title: GoogleSearch
        tool_configurations: {}
        tool_label: GoogleSearch
        tool_name: google_search
        tool_parameters:
          query:
            type: mixed
            value: '{{#sys.query#}}'
        type: tool
      height: 54
      id: '1738807877531'
      position:
        x: 378.6902556457709
        y: 282
      positionAbsolute:
        x: 378.6902556457709
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        code: "def main(json: list) -> dict:\n    # 提取 organic_results 内容\n    organic_results\
          \ = json[0].get(\"organic_results\", [])\n    \n    # 将所有的标题和链接拼接为一个字符串\n\
          \    result_string = \"\"\n    for item in organic_results:\n        result_string\
          \ += f\"Title: {item['title']}\\nLink: {item['link']}\\nSnippet: {item['snippet']}\\\
          n\\n\"\n    \n    # 返回拼接后的字符串作为 result\n    return {\n        \"result\"\
          : result_string,\n    }"
        code_language: python3
        desc: ''
        outputs:
          result:
            children: null
            type: string
        selected: false
        title: 代码执行
        type: code
        variables:
        - value_selector:
          - '1738807877531'
          - json
          variable: json
      height: 54
      id: '1738810200855'
      position:
        x: 685.9540669327553
        y: 282
      positionAbsolute:
        x: 685.9540669327553
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        provider_id: google
        provider_name: google
        provider_type: builtin
        selected: true
        title: GoogleSearch
        tool_configurations: {}
        tool_label: GoogleSearch
        tool_name: google_search
        tool_parameters: {}
        type: tool
      height: 54
      id: '1738812470302'
      position:
        x: 615.4737901207064
        y: 532.8023591473042
      positionAbsolute:
        x: 615.4737901207064
        y: 532.8023591473042
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    viewport:
      x: 155.91975339807186
      y: 142.92827191202696
      zoom: 0.5444265084565377
