app:
  description: Vector search by specifying knowledge (dataset)
  icon: "\U0001F916"
  icon_background: '#FFEAD5'
  mode: workflow
  name: search-knowledge-by-id
workflow:
  features:
    file_upload:
      image:
        enabled: false
        number_limits: 3
        transfer_methods:
        - local_file
        - remote_url
    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: http-request
      id: 1720304919000-source-1720304927306-target
      source: '1720304919000'
      sourceHandle: source
      target: '1720304927306'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: http-request
        targetType: tool
      id: 1720304927306-source-1720305690962-target
      source: '1720304927306'
      sourceHandle: source
      target: '1720305690962'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: tool
        targetType: http-request
      id: 1720305690962-source-1720305870049-target
      source: '1720305690962'
      sourceHandle: source
      target: '1720305870049'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: http-request
        targetType: tool
      id: 1720305870049-source-1720306393958-target
      source: '1720305870049'
      sourceHandle: source
      target: '1720306393958'
      targetHandle: target
      type: custom
      zIndex: 0
    - data:
        isInIteration: false
        sourceType: tool
        targetType: end
      id: 1720306393958-source-1720305252494-target
      source: '1720306393958'
      sourceHandle: source
      target: '1720305252494'
      targetHandle: target
      type: custom
      zIndex: 0
    nodes:
    - data:
        desc: ''
        selected: false
        title: Start
        type: start
        variables:
        - label: DIFY_APIS_USER_NAME
          max_length: 100
          options: []
          required: true
          type: text-input
          variable: DIFY_APIS_USER_NAME
        - label: DIFY_APIS_USER_PASSWORD
          max_length: 100
          options: []
          required: true
          type: text-input
          variable: DIFY_APIS_USER_PASSWORD
        - label: DIFY_HOST
          max_length: 256
          options: []
          required: true
          type: text-input
          variable: DIFY_HOST
        - label: DATASET_ID
          max_length: 100
          options: []
          required: true
          type: text-input
          variable: DATASET_ID
        - label: SEARCH_QUERY
          max_length: 33024
          options: []
          required: true
          type: paragraph
          variable: SEARCH_QUERY
        - label: TOP_K
          max_length: 48
          options: []
          required: true
          type: number
          variable: TOP_K
      height: 220
      id: '1720304919000'
      position:
        x: 80
        y: 282
      positionAbsolute:
        x: 80
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        authorization:
          config: null
          type: no-auth
        body:
          data: "{\n\n    \"email\": \"{{#1720304919000.DIFY_APIS_USER_NAME#}}\",\n\
            \n    \"password\": \"{{#1720304919000.DIFY_APIS_USER_PASSWORD#}}\",\n\
            \    \"remember_me\": true\n}"
          type: json
        desc: ''
        headers: ''
        method: post
        params: ''
        selected: false
        timeout:
          max_connect_timeout: 0
          max_read_timeout: 0
          max_write_timeout: 0
        title: LoginToDify
        type: http-request
        url: '{{#1720304919000.DIFY_HOST#}}/console/api/login'
        variables: []
      height: 109
      id: '1720304927306'
      position:
        x: 383
        y: 282
      positionAbsolute:
        x: 383
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        outputs:
        - value_selector:
          - '1720306393958'
          - text
          variable: segments
        selected: false
        title: End
        type: end
      height: 90
      id: '1720305252494'
      position:
        x: 1587
        y: 282
      positionAbsolute:
        x: 1587
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        provider_id: json_process
        provider_name: json_process
        provider_type: builtin
        selected: false
        title: get bearer token
        tool_configurations: {}
        tool_label: JSON Parse
        tool_name: parse
        tool_parameters:
          content:
            type: mixed
            value: '{{#1720304927306.body#}}'
          json_filter:
            type: mixed
            value: data
        type: tool
      height: 54
      id: '1720305690962'
      position:
        x: 688
        y: 282
      positionAbsolute:
        x: 688
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        authorization:
          config: null
          type: no-auth
        body:
          data: '{"query":"{{#1720304919000.SEARCH_QUERY#}}","retrieval_model":{"search_method":"hybrid_search","reranking_enable":true,"reranking_model":{"reranking_provider_name":"cohere","reranking_model_name":"rerank-multilingual-v3.0"},"top_k":{{#1720304919000.TOP_K#}},"score_threshold_enabled":false,"score_threshold":0}}'
          type: json
        desc: ''
        headers: authorization:Bearer {{#1720305690962.text#}}
        method: post
        params: ''
        selected: false
        timeout:
          max_connect_timeout: 0
          max_read_timeout: 0
          max_write_timeout: 0
        title: search knowledge
        type: http-request
        url: '{{#1720304919000.DIFY_HOST#}}/console/api/datasets/{{#1720304919000.DATASET_ID#}}/hit-testing'
        variables: []
      height: 144
      id: '1720305870049'
      position:
        x: 988
        y: 282
      positionAbsolute:
        x: 988
        y: 282
      selected: true
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    - data:
        desc: ''
        provider_id: json_process
        provider_name: json_process
        provider_type: builtin
        selected: false
        title: get segments
        tool_configurations: {}
        tool_label: JSON Parse
        tool_name: parse
        tool_parameters:
          content:
            type: mixed
            value: '{{#1720305870049.body#}}'
          json_filter:
            type: mixed
            value: records
        type: tool
      height: 54
      id: '1720306393958'
      position:
        x: 1287
        y: 282
      positionAbsolute:
        x: 1287
        y: 282
      selected: false
      sourcePosition: right
      targetPosition: left
      type: custom
      width: 244
    viewport:
      x: 80.22677728084795
      y: 230.11975200166012
      zoom: 0.6739457125331493
