🤖

教学-生成题目

自动生成各个科目的题目

⬡ 16 节点 ↓ 15 下载 ⚙ workflow ⭐ 95/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/deepseek:0.0.5@fd6efd37c2a931911de8ab9ca3ba2da303bef146d45ee87ad896b04b36d09403
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: 50
        file_size_limit: 1024
        image_file_size_limit: 1000
        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: 1739934248028--1740035745161-target
      selected: false
      source: '1739934248028'
      sourceHandle: source
      target: '1740035745161'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-true-1739934350000-target
      selected: false
      source: '1740035745161'
      sourceHandle: 'true'
      target: '1739934350000'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-ff24f701-82cd-4f6b-a61c-d48dcd4aea31-17400359158000-target
      selected: false
      source: '1740035745161'
      sourceHandle: ff24f701-82cd-4f6b-a61c-d48dcd4aea31
      target: '17400359158000'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-false-17400362075990-target
      selected: false
      source: '1740035745161'
      sourceHandle: 'false'
      target: '17400362075990'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-46406432-aec3-4679-9b54-e94425800edf-17400384250420-target
      selected: false
      source: '1740035745161'
      sourceHandle: 46406432-aec3-4679-9b54-e94425800edf
      target: '17400384250420'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-a6ec157d-08c8-4d18-b119-f676e1d68f67-17400384358620-target
      selected: false
      source: '1740035745161'
      sourceHandle: a6ec157d-08c8-4d18-b119-f676e1d68f67
      target: '17400384358620'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 1739934350000--1740039638246-target
      source: '1739934350000'
      sourceHandle: source
      target: '1740039638246'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17400359158000--1740039647542-target
      source: '17400359158000'
      sourceHandle: source
      target: '1740039647542'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17400384250420--1740039656542-target
      source: '17400384250420'
      sourceHandle: source
      target: '1740039656542'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17400384358620--1740039664910-target
      source: '17400384358620'
      sourceHandle: source
      target: '1740039664910'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17400362075990--1740039673558-target
      source: '17400362075990'
      sourceHandle: source
      target: '1740039673558'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-996aaf4d-7204-42d0-87e5-bfa237b9fe6a-17403651742300-target
      source: '1740035745161'
      sourceHandle: 996aaf4d-7204-42d0-87e5-bfa237b9fe6a
      target: '17403651742300'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17403651742300-source-17403651985540-target
      source: '17403651742300'
      sourceHandle: source
      target: '17403651985540'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: if-else
        targetType: llm
      id: 1740035745161-28150218-ef03-4d33-8f18-5c453852940a-17403662845110-target
      source: '1740035745161'
      sourceHandle: 28150218-ef03-4d33-8f18-5c453852940a
      target: '17403662845110'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: llm
        targetType: end
      id: 17403662845110--1740366325475-target
      source: '17403662845110'
      sourceHandle: source
      target: '1740366325475'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: 开始
        type: start
        variables:
        - label: 题型
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: questionType
        - label: 科目
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: subject
        - label: 课题内容
          max_length: 1000
          options: []
          required: true
          type: paragraph
          variable: topicContent
        - label: 应用场景
          max_length: 48
          options: []
          required: true
          type: text-input
          variable: questionPlace
        - label: 题目细节
          max_length: 1000
          options: []
          required: true
          type: paragraph
          variable: questionDetail
        - label: 描述
          max_length: 2000
          options: []
          required: false
          type: paragraph
          variable: detailContent
      height: 220
      id: '1739934248028'
      position:
        x: -356.69662055368616
        y: -84.1686800131371
      positionAbsolute:
        x: -356.69662055368616
        y: -84.1686800131371
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        context:
          enabled: false
          variable_selector: []
        desc: ''
        model:
          completion_params:
            max_tokens: 8192
            response_format: json_object
            temperature: 0.7
          mode: chat
          name: deepseek-chat
          provider: langgenius/deepseek/deepseek
        prompt_config:
          jinja2_variables:
          - value_selector:
            - '1739934248028'
            - questionType
            variable: questionType
          - value_selector:
            - '1739934248028'
            - subject
            variable: subject
          - value_selector:
            - '1739934248028'
            - topicContent
            variable: topicContent
          - value_selector:
            - '1739934248028'
            - questionPlace
            variable: questionPlace
          - value_selector:
            - '1739934248028'
            - questionDetail
            variable: questionDetail
          - value_selector:
            - '1739934248028'
            - detailContent
            variable: detailContent
        prompt_template:
        - edition_type: jinja2
          id: dc300075-c512-48f8-9747-74ff4d40ee78
          jinja2_text: "课题:{{ topicContent }}{% if detailContent != none and detailContent\
            \ != '' %}\r\n描述:{{ detailContent }}\r\n{% endif %}"
          role: system
          text: ''
        - edition_type: basic
          id: 476b09e1-eff3-4c53-8dce-6ab3b594b1c3
          jinja2_text: '我是一名高中{{ questionSubject }}老师,需要生成{{ questionPlace }},请基于课题:{{
            topicContent }},帮我生成{{ questionType }}题,具体要求如下:{{ questionDetail }};请以如下json格式返回数据:{"questions":
            [{"question": "","answer": "","analysis": "","options": []}]},options表示选项,需要以大写英文字母标识,answer只需要正确的选项字母即可。'
          role: user
          text: '我是一名高中{{#1739934248028.subject#}}老师,需要生成{{#1739934248028.questionPlace#}},请基于上述内容,帮我生成{{#1739934248028.questionType#}}题,具体要求如下:{{#1739934248028.questionDetail#}};请以如下json格式返回数据:{"questions":
            [{"question": "","answer": "","analysis": "","options": []}]},options表示选项,需要以大写英文字母标识,answer只需要正确的选项字母即可。'
        selected: false
        title: 单选LLM
        type: llm
        variables: []
        vision:
          enabled: false
      height: 90
      id: '1739934350000'
      position:
        x: 491.8490474083212
        y: -147.58919042577557
  ...(过长已截断)