repo_id stringlengths 15 132 | file_path stringlengths 34 176 | content stringlengths 2 3.52M | __index_level_0__ int64 0 0 |
|---|---|---|---|
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_tools_json_ignored.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_request_id_when_making_http_requests.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_eager_flow_download.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.11.5 (Windows-1... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_with_connection_overwrite.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_azure_cli_perf_TestAzureCliPerf_test_pfazure_run_update.yaml | interactions:
- request:
body: '{"displayName": "test_run", "description": "test_description", "tags":
{"key1": "value1"}}'
headers:
Accept:
- '*/*'
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
Content-Length:
- '90'
Content-Type:
- ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_without_dump.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_connection_operations_TestConnectionOperations_test_get_connection.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_arm_connection_operations_TestArmConnectionOperations_test_get_connection.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_bulk.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_display_name_with_macro.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_cli_with_azure_TestCliWithAzure_test_cli_telemetry.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_flow_operations_TestFlow_test_list_flows_invalid_cases.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.10.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_failed_run_to_dict_exclude.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_get_invalid_run_cases.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_get_details_against_partial_completed_run.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_flow_operations_TestFlow_test_get_flow.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_show_run_details.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_get_detail_against_partial_fail_run.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_stream_failed_run_logs.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_default_run_display_name.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_basic_evaluation.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_azure_cli_perf_TestAzureCliPerf_test_pfazure_run_create.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.9.17 (Windows-1... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_stream_invalid_run_logs.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_telemetry_TestTelemetry_test_custom_event.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_telemetry_TestTelemetry_test_inner_function_call.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_automatic_runtime_with_resources.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_bulk_with_remote_flow.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.10.13 (Windows-... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_bulk_without_retry.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_run_bulk_not_exist.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 promptflow/0.0.1 azure-ai-ml/1.12.1 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_automatic_runtime.yaml | interactions:
- request:
body: null
headers:
Accept:
- application/json
Accept-Encoding:
- gzip, deflate
Connection:
- keep-alive
User-Agent:
- promptflow-sdk/0.0.1 azure-ai-ml/1.12.0 azsdk-python-mgmt-machinelearningservices/0.1.0
Python/3.11.5 (Windows-1... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/sample_bulk_run_cloud.yaml | name: flow_run_20230629_101205
flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: env related
environment_variables: env_file
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/sample_eval_run.yaml | flow: ../flows/classification_accuracy_evaluation
data: ../datas/webClassification1.jsonl
column_mapping:
groundtruth: "${data.answer}"
prediction: "${run.outputs.category}"
variant_id: "${data.variant_id}"
run: flow_run_20230629_101205 # ./sample_bulk_run.yaml
# run config: env related
environment_variables: en... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/bulk_run_invalid_remote_flow_str.yaml | name: flow_run_20230629_101205
description: sample bulk run
# invalid remote flow format should not be supported.
flow: invalid_remote_flow
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: env related
environment_variables: env_fil... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/bulk_run_invalid_flow_path.yaml | name: flow_run_20230629_101205
description: sample bulk run
# flow relative to current working directory should not be supported.
flow: tests/test_configs/flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: en... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/sample_bulk_run_with_resources.yaml | name: flow_run_20230629_101205
flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
resources:
instance_type: Standard_D2 # optional, server default value
idle_time_before_shutdown_minutes: 60 #optional, server ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/run_with_connections_model.yaml | flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: env related
environment_variables: env_file
connections:
classify_with_llm:
connection: new_ai_connection
# model is also supported ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/run_with_env.yaml | flow: ../flows/print_env_var
data: ../datas/env_var_names.jsonl
# run config: env related
environment_variables:
API_BASE: ${azure_open_ai_connection.api_base}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/run_with_connections.yaml | flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: env related
environment_variables: env_file
connections:
classify_with_llm:
connection: new_ai_connection
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/sample_bulk_run.yaml | name: flow_run_20230629_101205
description: sample bulk run
flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
# run config: env related
environment_variables: env_file
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/env_file | FOO=BAR
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/extra_field.yaml | name: flow_run_20230629_101205
description: sample bulk run
flow: ../flows/web_classification
data: ../datas/webClassification1.jsonl
column_mapping:
url: "${data.url}"
variant: ${summarize_text_content.variant_0}
extra_key: extra_value
# run config: env related
environment_variables: env_file | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/input_with_dict_val.yaml | flow: ../flows/flow_with_dict_input
data: ../datas/webClassification1.jsonl
column_mapping:
key:
val1: 1
val2: 2
url: ${data.url}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/meta.json | {"batch_size": 1} | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/instance_results.jsonl | {"line_number": 0, "status": "Completed", "inputs.url": "https://www.youtube.com/watch?v=kYqRtjDBci8", "inputs.line_number": 0, "category": "None", "evidence": "None"}
{"line_number": 1, "status": "Completed", "inputs.url": "https://arxiv.org/abs/2307.04767", "inputs.line_number": 1, "category": "Academic", "evidence":... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/logs.txt | 2023-12-05 04:03:11 +0000 119 promptflow-runtime INFO [web_classification_variant_0_20231205_120253_104100] Receiving v2 bulk run request 679b46cd-3931-4ade-985f-4d74de5e9536: {"flow_id": "web_classification_variant_0_20231205_120253_104100", "flow_run_id": "web_classification_variant_0_20231205_120253_104100",... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/run_metadata.json | {"name": "web_classification_variant_0_20231205_120253_104100", "created_on": "2023-12-05T04:03:05.951095+00:00", "status": "Completed", "display_name": "web_classification_variant_0_20231205_120253_104100", "description": null, "tags": {}, "properties": {"azureml.promptflow.runtime_name": "hod-ci", "azureml.promptflow... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/metrics.json | {} | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/classify_with_llm.jinja2 | system:
Your task is to classify a given url into one of the following categories:
Movie, App, Academic, Channel, Profile, PDF or None based on the text content information.
The classification will be based on the url, the webpage text content summary, or both.
user:
The selection range of the value of "category" must... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/fetch_text_content_from_url.py | import bs4
import requests
from promptflow import tool
@tool
def fetch_text_content_from_url(url: str):
# Send a request to the URL
try:
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) "
"Chrome/113.0.0.0 Safari/537.3... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/convert_to_dict.py | import json
from promptflow import tool
@tool
def convert_to_dict(input_str: str):
try:
return json.loads(input_str)
except Exception as e:
print("The input is not valid, error: {}".format(e))
return {"category": "None", "evidence": "None"}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/data.jsonl | {"url": "https://www.youtube.com/watch?v=kYqRtjDBci8", "answer": "Channel", "evidence": "Both"}
{"url": "https://arxiv.org/abs/2307.04767", "answer": "Academic", "evidence": "Both"}
{"url": "https://play.google.com/store/apps/details?id=com.twitter.android", "answer": "App", "evidence": "Both"}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/summarize_text_content__variant_1.jinja2 | system:
Please summarize some keywords of this paragraph and have some details of each keywords.
Do not add any information that is not in the text.
user:
Text: {{text}}
Summary: | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/requirements.txt | promptflow[azure]
promptflow-tools
bs4 | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/run.yml | $schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json
flow: .
data: data.jsonl
variant: ${summarize_text_content.variant_1}
column_mapping:
url: ${data.url}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/summarize_text_content.jinja2 | system:
Please summarize the following text in one paragraph. 100 words.
Do not add any information that is not in the text.
user:
Text: {{text}}
Summary: | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/README.md | # Web Classification
This is a flow demonstrating multi-class classification with LLM. Given an url, it will classify the url into one web category with just a few shots, simple summarization and classification prompts.
## Tools used in this flow
- LLM Tool
- Python Tool
## What you will learn
In this flow, you wil... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/flow.dag.yaml | inputs:
url:
type: string
default: https://play.google.com/store/apps/details?id=com.twitter.android
is_chat_input: false
outputs:
category:
type: string
reference: ${convert_to_dict.output.category}
evaluation_only: false
is_chat_output: false
evidence:
type: string
reference:... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/run_evaluation.yml | $schema: https://azuremlschemas.azureedge.net/promptflow/latest/Run.schema.json
flow: ../../evaluation/eval-classification-accuracy
data: data.jsonl
run: web_classification_variant_1_20230724_173442_973403 # replace with your run name
column_mapping:
groundtruth: ${data.answer}
prediction: ${run.outputs.category} | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/snapshot/prepare_examples.py | from promptflow import tool
@tool
def prepare_examples():
return [
{
"url": "https://play.google.com/store/apps/details?id=com.spotify.music",
"text_content": "Spotify is a free music and podcast streaming app with millions of songs, albums, and "
"original podcasts. It... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/flow_artifacts/000000000_000000024.jsonl | {"line_number": 0, "run_info": {"run_id": "web_classification_variant_0_20231205_120253_104100_0", "status": "Completed", "error": null, "inputs": {"url": "https://www.youtube.com/watch?v=kYqRtjDBci8", "line_number": 0}, "output": {"category": "None", "evidence": "None"}, "metrics": null, "request": null, "parent_run_i... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100 | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/flow_outputs/output.jsonl | {"line_number": 0, "category": "None", "evidence": "None"}
{"line_number": 1, "category": "Academic", "evidence": "Both"}
{"line_number": 2, "category": "App", "evidence": "Both"}
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/fetch_text_content_from_url/000000001.jsonl | {"node_name": "fetch_text_content_from_url", "line_number": 1, "run_info": {"node": "fetch_text_content_from_url", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_fetch_text_content_from_url_1", "status": "Completed", "inputs": {"url":... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/fetch_text_content_from_url/000000000.jsonl | {"node_name": "fetch_text_content_from_url", "line_number": 0, "run_info": {"node": "fetch_text_content_from_url", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_fetch_text_content_from_url_0", "status": "Completed", "inputs": {"url":... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/fetch_text_content_from_url/000000002.jsonl | {"node_name": "fetch_text_content_from_url", "line_number": 2, "run_info": {"node": "fetch_text_content_from_url", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_fetch_text_content_from_url_2", "status": "Completed", "inputs": {"url":... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/classify_with_llm/000000001.jsonl | {"node_name": "classify_with_llm", "line_number": 1, "run_info": {"node": "classify_with_llm", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_classify_with_llm_1", "status": "Completed", "inputs": {"prompt": "system:\nYour task is to ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/classify_with_llm/000000000.jsonl | {"node_name": "classify_with_llm", "line_number": 0, "run_info": {"node": "classify_with_llm", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_classify_with_llm_0", "status": "Completed", "inputs": {"prompt": "system:\nYour task is to ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/classify_with_llm/000000002.jsonl | {"node_name": "classify_with_llm", "line_number": 2, "run_info": {"node": "classify_with_llm", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_classify_with_llm_2", "status": "Completed", "inputs": {"prompt": "system:\nYour task is to ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/convert_to_dict/000000001.jsonl | {"node_name": "convert_to_dict", "line_number": 1, "run_info": {"node": "convert_to_dict", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_convert_to_dict_1", "status": "Completed", "inputs": {"input_str": "{\"category\": \"Academic\",... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/convert_to_dict/000000000.jsonl | {"node_name": "convert_to_dict", "line_number": 0, "run_info": {"node": "convert_to_dict", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_convert_to_dict_0", "status": "Completed", "inputs": {"input_str": "{\"category\": \"None\", \"e... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/convert_to_dict/000000002.jsonl | {"node_name": "convert_to_dict", "line_number": 2, "run_info": {"node": "convert_to_dict", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_convert_to_dict_2", "status": "Completed", "inputs": {"input_str": "{\"category\": \"App\", \"ev... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/prepare_examples/000000001.jsonl | {"node_name": "prepare_examples", "line_number": 1, "run_info": {"node": "prepare_examples", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_prepare_examples_1", "status": "Completed", "inputs": {}, "output": [{"url": "https://play.goo... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/prepare_examples/000000000.jsonl | {"node_name": "prepare_examples", "line_number": 0, "run_info": {"node": "prepare_examples", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_prepare_examples_0", "status": "Completed", "inputs": {}, "output": [{"url": "https://play.goo... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/prepare_examples/000000002.jsonl | {"node_name": "prepare_examples", "line_number": 2, "run_info": {"node": "prepare_examples", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_prepare_examples_2", "status": "Completed", "inputs": {}, "output": [{"url": "https://play.goo... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/summarize_text_content/000000001.jsonl | {"node_name": "summarize_text_content", "line_number": 1, "run_info": {"node": "summarize_text_content", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_summarize_text_content_1", "status": "Completed", "inputs": {"prompt": "system:\nP... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/summarize_text_content/000000000.jsonl | {"node_name": "summarize_text_content", "line_number": 0, "run_info": {"node": "summarize_text_content", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_summarize_text_content_0", "status": "Completed", "inputs": {"prompt": "system:\nP... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/web_classification_variant_0_20231205_120253_104100/node_artifacts/summarize_text_content/000000002.jsonl | {"node_name": "summarize_text_content", "line_number": 2, "run_info": {"node": "summarize_text_content", "flow_run_id": "web_classification_variant_0_20231205_120253_104100", "run_id": "web_classification_variant_0_20231205_120253_104100_summarize_text_content_2", "status": "Completed", "inputs": {"prompt": "system:\nP... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/illegal/missing_data.yaml | flow: ../flows/classification_accuracy_evaluation
column_mapping:
groundtruth: "${data.answer}"
prediction: "${run.outputs.category}"
run: flow_run_20230629_101205 # ./sample_bulk_run.yaml
# run config: env related
environment_variables: .env
# optional
connections:
node_1:
connection: test_llm_connect... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs | promptflow_repo/promptflow/src/promptflow/tests/test_configs/runs/illegal/non_exist_data.yaml | flow: ../flows/classification_accuracy_evaluation
data: not_exist
column_mapping:
groundtruth: "${data.answer}"
prediction: "${run.outputs.category}"
run: flow_run_20230629_101205 # ./sample_bulk_run.yaml
# run config: env related
environment_variables: .env
# optional
connections:
node_1:
connection: ... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/flow_with_environment/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow():
"""Simple flow without yaml."""
print("Hello world!")
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/flow_with_environment/flow.dag.yaml | path: ./entry.py
entry: my_flow
environment:
python_requirements_txt: requirements.txt
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/long_running/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
import time
def my_flow(input_val) -> str:
"""Simple flow with yaml."""
time.sleep(100)
print(f"Hello world! {input_val}")
... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/long_running/flow.dag.yaml | path: ./entry.py
entry: my_flow
environment:
python_requirements_txt: requirements.txt | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_trace/entry.py | import asyncio
from promptflow import trace
@trace
async def wait(n: int):
await asyncio.sleep(n)
@trace
async def dummy_llm(prompt: str, model: str, wait_seconds: int):
await wait(wait_seconds)
return prompt
async def my_flow(text: str, models: list = []):
tasks = []
for i, model in enumerat... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_trace/flow.dag.yaml | path: ./entry.py
entry: my_flow
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_trace/inputs.jsonl | {"text": "text", "models": ["model"]}
{"text": "text", "models": ["model", "model_2", "model_3"]} | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/primitive_output/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow(input_val: str = "gpt"):
"""Simple flow without yaml."""
# print(f"Hello world! {input_val}")
return f"Hello world!... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/primitive_output/flow.dag.yaml | path: ./entry.py
entry: my_flow | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/invalid_extra_fields_nodes/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow():
"""Simple flow without yaml."""
print("Hello world!")
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/invalid_extra_fields_nodes/flow.dag.yaml | entry: my_func
path: ./entry.py
nodes: [] | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/simple_without_yaml/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow(input_val: str):
"""Simple flow without yaml."""
print(f"Hello world! {input_val}")
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/simple_with_yaml/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow(input_val: str = "gpt") -> str:
"""Simple flow without yaml."""
return f"Hello world! {input_val}"
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/simple_with_yaml/flow.dag.yaml | path: ./entry.py
entry: my_flow | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/invalid_no_path/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow():
"""Simple flow without yaml."""
print("Hello world!")
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/invalid_no_path/flow.dag.yaml | entry: my_func | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/multiple_entries/entry1.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow1():
"""Simple flow without yaml."""
print("Hello world!")
def my_flow2():
"""Simple flow without yaml."""
pri... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/multiple_entries/entry2.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow1():
"""Simple flow without yaml."""
print("Hello world!")
def my_flow2():
"""Simple flow without yaml."""
pri... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/simple_with_req/entry.py | # ---------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# ---------------------------------------------------------
def my_flow(input_val) -> str:
"""Simple flow with yaml."""
print(f"Hello world! {input_val}")
return f"Hello world! {input_val... | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/simple_with_req/flow.dag.yaml | path: ./entry.py
entry: my_flow
environment:
python_requirements_txt: requirements.txt | 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/flow_with_dataclass_output/entry.py | from dataclasses import dataclass
@dataclass
class Data:
text: str
models: list
def my_flow(text: str = "default_text", models: list = ["default_model"]):
return Data(text=text, models=models)
| 0 |
promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows | promptflow_repo/promptflow/src/promptflow/tests/test_configs/eager_flows/flow_with_dataclass_output/flow.dag.yaml | path: ./entry.py
entry: my_flow | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.