$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json environment: python_requirements_txt: requirements.txt inputs: url: type: string default: https://play.google.com/store/apps/details?id=com.twitter.android outputs: category: type: string reference: ${convert_to_dict.output.category} evidence: type: string reference: ${convert_to_dict.output.evidence} nodes: - name: fetch_text_content_from_url type: python source: type: code path: fetch_text_content_from_url.py inputs: url: ${inputs.url} - name: summarize_text_content use_variants: true - name: prepare_examples type: python source: type: code path: prepare_examples.py inputs: {} - name: classify_with_llm type: llm source: type: code path: classify_with_llm.jinja2 inputs: deployment_name: gpt-35-turbo model: gpt-3.5-turbo max_tokens: 128 temperature: 0.2 url: ${inputs.url} text_content: ${summarize_text_content.output} examples: ${prepare_examples.output} connection: open_ai_connection api: chat - name: convert_to_dict type: python source: type: code path: convert_to_dict.py inputs: input_str: ${classify_with_llm.output} node_variants: summarize_text_content: default_variant_id: variant_0 variants: variant_0: node: type: llm source: type: code path: summarize_text_content.jinja2 inputs: deployment_name: gpt-35-turbo model: gpt-3.5-turbo max_tokens: 128 temperature: 0.2 text: ${fetch_text_content_from_url.output} connection: open_ai_connection api: chat variant_1: node: type: llm source: type: code path: summarize_text_content__variant_1.jinja2 inputs: deployment_name: gpt-35-turbo model: gpt-3.5-turbo max_tokens: 256 temperature: 0.3 text: ${fetch_text_content_from_url.output} connection: open_ai_connection api: chat