text
stringlengths
8
1.72M
id
stringlengths
22
143
metadata
dict
__index_level_0__
int64
0
104
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # pylint: disable=wrong-import-position import json import time from promptflow._cli._pf._experiment import add_experiment_parser, dispatch...
promptflow/src/promptflow/promptflow/_cli/_pf/entry.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_cli/_pf/entry.py", "repo_id": "promptflow", "token_count": 2529 }
26
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json inputs: {% for arg, typ in flow_inputs.items() %} {{ arg }}: type: {{ typ }} {% endfor %} outputs: output: type: string reference: {% raw %}${{% endraw %}{{ main_node_name }}.output} nodes: {% for param_name, file in promp...
promptflow/src/promptflow/promptflow/_cli/data/entry_flow/flow.dag.yaml.jinja2/0
{ "file_path": "promptflow/src/promptflow/promptflow/_cli/data/entry_flow/flow.dag.yaml.jinja2", "repo_id": "promptflow", "token_count": 517 }
27
{"text": "Hello World!"}
promptflow/src/promptflow/promptflow/_cli/data/standard_flow/data.jsonl/0
{ "file_path": "promptflow/src/promptflow/promptflow/_cli/data/standard_flow/data.jsonl", "repo_id": "promptflow", "token_count": 9 }
28
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import asyncio import json from contextvars import ContextVar from datetime import datetime, timezone from types import GeneratorType from ...
promptflow/src/promptflow/promptflow/_core/run_tracker.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_core/run_tracker.py", "repo_id": "promptflow", "token_count": 8635 }
29
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import datetime from enum import Enum from typing import List, Optional, Union from sqlalchemy import TEXT, Boolean, Column, Index from sq...
promptflow/src/promptflow/promptflow/_sdk/_orm/experiment.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_orm/experiment.py", "repo_id": "promptflow", "token_count": 2618 }
30
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from promptflow._sdk._service.entry import main import sys import win32serviceutil # ServiceFramework and commandline helper import win32s...
promptflow/src/promptflow/promptflow/_sdk/_service/pfsvc.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_service/pfsvc.py", "repo_id": "promptflow", "token_count": 630 }
31
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import contextlib import functools import threading import uuid from contextvars import ContextVar from datetime import datetime from typing...
promptflow/src/promptflow/promptflow/_sdk/_telemetry/activity.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_telemetry/activity.py", "repo_id": "promptflow", "token_count": 3256 }
32
Exported Dockerfile & its dependencies are located in the same folder. The structure is as below: - flow: the folder contains all the flow files - ... - connections: the folder contains yaml files to create all related connections - ... - Dockerfile: the dockerfile to build the image - settings.json: a json file to...
promptflow/src/promptflow/promptflow/_sdk/data/docker_csharp/README.md/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/data/docker_csharp/README.md", "repo_id": "promptflow", "token_count": 165 }
33
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import copy import datetime import json import shutil import uuid from os import PathLike from pathlib import Path from typing import Any, D...
promptflow/src/promptflow/promptflow/_sdk/entities/_experiment.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/entities/_experiment.py", "repo_id": "promptflow", "token_count": 6676 }
34
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import importlib.util import inspect import io import json import logging import pkgutil from dataclasses import asdict from os import PathL...
promptflow/src/promptflow/promptflow/_sdk/operations/_tool_operations.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/operations/_tool_operations.py", "repo_id": "promptflow", "token_count": 10170 }
35
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from typing import AbstractSet, Any, Dict, List, Mapping from promptflow._utils.logger_utils import logger from promptflow.contracts.flow i...
promptflow/src/promptflow/promptflow/_utils/execution_utils.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_utils/execution_utils.py", "repo_id": "promptflow", "token_count": 923 }
36
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore from ._component import COMMAND_COMPONENT_SPEC_TEMPLATE, ...
promptflow/src/promptflow/promptflow/azure/_constants/__init__.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/_constants/__init__.py", "repo_id": "promptflow", "token_count": 138 }
37
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.0, generator: @autorest/python@5.12.2) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ------------------------------...
promptflow/src/promptflow/promptflow/azure/_restclient/flow/models/__init__.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/_restclient/flow/models/__init__.py", "repo_id": "promptflow", "token_count": 33469 }
38
# Marker file for PEP 561.
promptflow/src/promptflow/promptflow/azure/_restclient/flow/py.typed/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/_restclient/flow/py.typed", "repo_id": "promptflow", "token_count": 10 }
39
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import asyncio import concurrent import copy import hashlib import json import os import shutil import sys import time from concurrent.futur...
promptflow/src/promptflow/promptflow/azure/operations/_run_operations.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/operations/_run_operations.py", "repo_id": "promptflow", "token_count": 18051 }
40
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from dataclasses import dataclass from datetime import datetime from enum import Enum from typing import Any, Dict, List, Mapping, Optional...
promptflow/src/promptflow/promptflow/contracts/run_info.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/contracts/run_info.py", "repo_id": "promptflow", "token_count": 3703 }
41
import multiprocessing import queue import signal from dataclasses import dataclass from enum import Enum from functools import partial from multiprocessing import Queue from typing import List import psutil from promptflow._core.operation_context import OperationContext from promptflow._utils.logger_utils import Log...
promptflow/src/promptflow/promptflow/executor/_process_manager.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/executor/_process_manager.py", "repo_id": "promptflow", "token_count": 6562 }
42
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import os import re from pathlib import Path from typing import Any, Match, cast from setuptools import find_packages, setup PACKAGE_NAME...
promptflow/src/promptflow/setup.py/0
{ "file_path": "promptflow/src/promptflow/setup.py", "repo_id": "promptflow", "token_count": 2306 }
43
import os from pathlib import Path from tempfile import mkdtemp import pytest from promptflow._utils.multimedia_utils import MIME_PATTERN, _create_image_from_file, _is_url, is_multimedia_dict from promptflow.batch._batch_engine import OUTPUT_FILE_NAME, BatchEngine from promptflow.batch._result import BatchResult from...
promptflow/src/promptflow/tests/executor/e2etests/test_image.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/e2etests/test_image.py", "repo_id": "promptflow", "token_count": 7025 }
44
from dataclasses import dataclass from promptflow import tool from promptflow._core.tools_manager import register_connections from promptflow.contracts.types import Secret @dataclass class TestConnection: name: str secret: Secret register_connections(TestConnection) @tool def tool_with_test_conn(conn: Te...
promptflow/src/promptflow/tests/executor/package_tools/tool_with_connection.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/package_tools/tool_with_connection.py", "repo_id": "promptflow", "token_count": 121 }
45
import textwrap from pathlib import Path from unittest.mock import patch import pytest from mock import MagicMock from promptflow import tool from promptflow._core._errors import InputTypeMismatch, InvalidSource, PackageToolNotFoundError from promptflow._core.tools_manager import ( BuiltinsManager, ToolLoader...
promptflow/src/promptflow/tests/executor/unittests/_core/test_tools_manager.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/unittests/_core/test_tools_manager.py", "repo_id": "promptflow", "token_count": 5269 }
46
import pytest from promptflow.contracts.flow import ActivateCondition, InputAssignment, Node from promptflow.executor._dag_manager import DAGManager def create_test_node(name, input, activate=None): input = InputAssignment.deserialize(input) activate = ActivateCondition.deserialize(activate, name) if activat...
promptflow/src/promptflow/tests/executor/unittests/executor/test_dag_manager.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/unittests/executor/test_dag_manager.py", "repo_id": "promptflow", "token_count": 1632 }
47
import signal from azure.identity import AzureCliCredential, DefaultAzureCredential def get_cred(): """get credential for azure storage""" # resolve requests try: credential = AzureCliCredential() token = credential.get_token("https://management.azure.com/.default") except Exception: ...
promptflow/src/promptflow/tests/sdk_cli_azure_test/_azure_utils.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_azure_test/_azure_utils.py", "repo_id": "promptflow", "token_count": 242 }
48
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- ENVIRON_TEST_MODE = "PROMPT_FLOW_TEST_MODE" class TestMode: LIVE = "live" RECORD = "record" REPLAY = "replay" FILTER_HEADER...
promptflow/src/promptflow/tests/sdk_cli_azure_test/recording_utilities/constants.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_azure_test/recording_utilities/constants.py", "repo_id": "promptflow", "token_count": 1086 }
49
import os import shutil import sys import tempfile import uuid from pathlib import Path import numpy as np import pandas as pd import pytest from marshmallow import ValidationError from pytest_mock import MockerFixture from promptflow import PFClient from promptflow._constants import PROMPTFLOW_CONNECTIONS from promp...
promptflow/src/promptflow/tests/sdk_cli_test/e2etests/test_flow_run.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_test/e2etests/test_flow_run.py", "repo_id": "promptflow", "token_count": 25678 }
50
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from pathlib import Path import pytest from promptflow._sdk._serving._errors import UnexpectedConnectionProviderReturn, UnsupportedConnect...
promptflow/src/promptflow/tests/sdk_cli_test/unittests/test_flow_invoker.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_test/unittests/test_flow_invoker.py", "repo_id": "promptflow", "token_count": 550 }
51
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import json import uuid from dataclasses import fields from pathlib import Path import pytest from promptflow import PFClient from prompt...
promptflow/src/promptflow/tests/sdk_pfs_test/e2etests/test_run_apis.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_pfs_test/e2etests/test_run_apis.py", "repo_id": "promptflow", "token_count": 3037 }
52
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/QdrantConnection.schema.json name: my_qdrant_connection type: qdrant api_key: "<to-be-replaced>" api_base: "endpoint"
promptflow/src/promptflow/tests/test_configs/connections/qdrant_connection.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/connections/qdrant_connection.yaml", "repo_id": "promptflow", "token_count": 73 }
53
{"text": "text"} {"text": "text"}
promptflow/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_exception/inputs.jsonl/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/eager_flows/dummy_flow_with_exception/inputs.jsonl", "repo_id": "promptflow", "token_count": 13 }
54
from promptflow import tool @tool def pass_through(input1: str) -> str: return 'hello ' + input1
promptflow/src/promptflow/tests/test_configs/flows/activate_condition_always_met/pass_through.py/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/activate_condition_always_met/pass_through.py", "repo_id": "promptflow", "token_count": 33 }
55
inputs: text: type: string default: hi outputs: output: type: string reference: ${nodeB.output} nodes: - name: nodeA type: python source: type: code path: pass_through.py inputs: input1: ${inputs.text} activate: when: ${inputs.text} is: world - name: nodeB type: python ...
promptflow/src/promptflow/tests/test_configs/flows/all_depedencies_bypassed_with_activate_met/flow.dag.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/all_depedencies_bypassed_with_activate_met/flow.dag.yaml", "repo_id": "promptflow", "token_count": 199 }
56
from promptflow import tool async def raise_exception_async(s): msg = f"In raise_exception_async: {s}" raise Exception(msg) @tool async def raise_an_exception_async(s: str): try: await raise_exception_async(s) except Exception as e: raise Exception(f"In tool raise_an_exception_async: ...
promptflow/src/promptflow/tests/test_configs/flows/async_tools_failures/async_fail.py/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/async_tools_failures/async_fail.py", "repo_id": "promptflow", "token_count": 137 }
57
from promptflow import tool @tool def icm_retriever(content: str) -> str: return "ICM: " + content
promptflow/src/promptflow/tests/test_configs/flows/conditional_flow_with_activate/icm_retriever.py/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/conditional_flow_with_activate/icm_retriever.py", "repo_id": "promptflow", "token_count": 35 }
58
[ { "case": "double", "value": 1 }, { "case": "double", "value": 2 }, { "case": "square", "value": 3 }, { "case": "square", "value": 4 } ]
promptflow/src/promptflow/tests/test_configs/flows/conditional_flow_with_aggregate_bypassed/inputs.json/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/conditional_flow_with_aggregate_bypassed/inputs.json", "repo_id": "promptflow", "token_count": 147 }
59
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/CustomConnection.schema.json type: custom name: custom_connection configs: CHAT_DEPLOYMENT_NAME: gpt-35-turbo AZURE_OPENAI_API_BASE: https://gpt-test-eus.openai.azure.com/ secrets: AZURE_OPENAI_API_KEY: ${env:CUSTOM_CONNECTION_AZURE_OPENAI_API_KEY} m...
promptflow/src/promptflow/tests/test_configs/flows/export/linux/connections/custom_connection.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/export/linux/connections/custom_connection.yaml", "repo_id": "promptflow", "token_count": 144 }
60
from promptflow import tool @tool def character_generator(text: str): """Generate characters from a string.""" for char in text: yield char
promptflow/src/promptflow/tests/test_configs/flows/generator_tools/char_generator.py/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/generator_tools/char_generator.py", "repo_id": "promptflow", "token_count": 57 }
61
{"question": "What is the capital of the United States of America?", "chat_history": [], "stream": true} {"question": "What is the capital of the United States of America?", "chat_history": [], "stream": false}
promptflow/src/promptflow/tests/test_configs/flows/openai_chat_api_flow/inputs.jsonl/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/openai_chat_api_flow/inputs.jsonl", "repo_id": "promptflow", "token_count": 56 }
62
inputs: key: type: string default: text outputs: output: type: string reference: ${print_secret.output} nodes: - name: print_secret type: python source: type: code path: print_secret.py inputs: connection: custom_connection text: ${inputs.key}
promptflow/src/promptflow/tests/test_configs/flows/print_secret_flow/flow.dag.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/print_secret_flow/flow.dag.yaml", "repo_id": "promptflow", "token_count": 113 }
63
[ {"idx": 1, "mod": 3, "mod_2": 5}, {"idx": 2, "mod": 3, "mod_2": 5}, {"idx": 3, "mod": 3, "mod_2": 5}, {"idx": 4, "mod": 3, "mod_2": 5}, {"idx": 5, "mod": 3, "mod_2": 5}, {"idx": 6, "mod": 3, "mod_2": 5}, {"idx": 7, "mod": 3, "mod_2": 5}, {"idx": 8, "mod": 3, "mod_2": 5}, {"idx": 9,...
promptflow/src/promptflow/tests/test_configs/flows/python_tool_partial_failure/samples.json/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/python_tool_partial_failure/samples.json", "repo_id": "promptflow", "token_count": 223 }
64
[ { "question": "How about London next week?" } ]
promptflow/src/promptflow/tests/test_configs/flows/sample_flow_with_functions/samples.json/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/sample_flow_with_functions/samples.json", "repo_id": "promptflow", "token_count": 31 }
65
{ "name": "script_with_special_character", "type": "python", "inputs": { "input1": { "type": [ "string" ] } }, "source": "script_with_special_character.py", "function": "print_special_character" }
promptflow/src/promptflow/tests/test_configs/flows/script_with_special_character/script_with_special_character.meta.json/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/script_with_special_character/script_with_special_character.meta.json", "repo_id": "promptflow", "token_count": 105 }
66
from promptflow import tool import time @tool def python_node(input: str, index: int) -> str: time.sleep(index + 5) return input
promptflow/src/promptflow/tests/test_configs/flows/simple_flow_with_ten_inputs/python_node.py/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/flows/simple_flow_with_ten_inputs/python_node.py", "repo_id": "promptflow", "token_count": 48 }
67
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-...
promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_basic_evaluation_without_data.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_basic_evaluation_without_data.yaml", "repo_id": "promptflow", "token_count": 85951 }
68
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...
promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_requirements_in_additional_includes.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_requirements_in_additional_includes.yaml", "repo_id": "promptflow", "token_count": 117214 }
69
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-...
promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_show_run_details.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/recordings/test_run_operations_TestFlowRun_test_show_run_details.yaml", "repo_id": "promptflow", "token_count": 76292 }
70
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
promptflow/src/promptflow/tests/test_configs/runs/run_with_connections.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/runs/run_with_connections.yaml", "repo_id": "promptflow", "token_count": 106 }
71
inputs: groundtruth: type: string prediction: type: string outputs: grade: type: string reference: ${grade.output} nodes: - name: grade type: python source: type: code path: grade.py inputs: groundtruth: ${inputs.groundtruth} prediction: ${inputs.prediction} - name: calculate...
promptflow/src/promptflow/tests/test_configs/wrong_flows/non_aggregation_reference_aggregation/flow.dag.yaml/0
{ "file_path": "promptflow/src/promptflow/tests/test_configs/wrong_flows/non_aggregation_reference_aggregation/flow.dag.yaml", "repo_id": "promptflow", "token_count": 229 }
72
With prompt flow, you can use variants to tune your prompt. In this article, you'll learn the prompt flow variants concept. # Variants A variant refers to a specific version of a tool node that has distinct settings. Currently, variants are supported only in the LLM tool. For example, in the LLM tool, a new variant c...
promptflow/docs/concepts/concept-variants.md/0
{ "file_path": "promptflow/docs/concepts/concept-variants.md", "repo_id": "promptflow", "token_count": 642 }
0
# Referencing external files/folders in a flow Sometimes, pre-existing code assets are essential for the flow reference. In most cases, you can accomplish this by importing a Python package into your flow. However, if a Python package is not available or it is heavy to create a package, you can still reference externa...
promptflow/docs/how-to-guides/develop-a-flow/referencing-external-files-or-folders-in-a-flow.md/0
{ "file_path": "promptflow/docs/how-to-guides/develop-a-flow/referencing-external-files-or-folders-in-a-flow.md", "repo_id": "promptflow", "token_count": 1053 }
1
# Manage runs :::{admonition} Experimental feature This is an experimental feature, and may change at any time. Learn [more](faq.md#stable-vs-experimental). ::: This documentation will walk you through how to manage your runs with CLI, SDK and VS Code Extension. In general: - For `CLI`, you can run `pf/pfazure run -...
promptflow/docs/how-to-guides/manage-runs.md/0
{ "file_path": "promptflow/docs/how-to-guides/manage-runs.md", "repo_id": "promptflow", "token_count": 2998 }
2
api_key=<your_api_key>
promptflow/examples/connections/.env.example/0
{ "file_path": "promptflow/examples/connections/.env.example", "repo_id": "promptflow", "token_count": 11 }
3
import sys import os sys.path.append( os.path.join(os.path.dirname(os.path.abspath(__file__)), "chat_with_pdf") )
promptflow/examples/flows/chat/chat-with-pdf/__init__.py/0
{ "file_path": "promptflow/examples/flows/chat/chat-with-pdf/__init__.py", "repo_id": "promptflow", "token_count": 52 }
4
# Azure OpenAI, uncomment below section if you want to use Azure OpenAI # Note: EMBEDDING_MODEL_DEPLOYMENT_NAME and CHAT_MODEL_DEPLOYMENT_NAME are deployment names for Azure OpenAI OPENAI_API_TYPE=azure OPENAI_API_BASE=<your_AOAI_endpoint> OPENAI_API_KEY=<your_AOAI_key> OPENAI_API_VERSION=2023-05-15 EMBEDDING_MODEL_DEP...
promptflow/examples/flows/chat/chat-with-pdf/chat_with_pdf/.env.example/0
{ "file_path": "promptflow/examples/flows/chat/chat-with-pdf/chat_with_pdf/.env.example", "repo_id": "promptflow", "token_count": 353 }
5
You are able to reason from previous conversation and the recent question, to come up with a rewrite of the question which is concise but with enough information that people without knowledge of previous conversation can understand the question. A few examples: # Example 1 ## Previous conversation user: Who is Bill C...
promptflow/examples/flows/chat/chat-with-pdf/chat_with_pdf/rewrite_question_prompt.md/0
{ "file_path": "promptflow/examples/flows/chat/chat-with-pdf/chat_with_pdf/rewrite_question_prompt.md", "repo_id": "promptflow", "token_count": 342 }
6
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json inputs: chat_history: type: list default: [] pdf_url: type: string default: https://arxiv.org/pdf/1810.04805.pdf question: type: string is_chat_input: true default: what is BERT? config: type: object...
promptflow/examples/flows/chat/chat-with-pdf/flow.dag.yaml/0
{ "file_path": "promptflow/examples/flows/chat/chat-with-pdf/flow.dag.yaml", "repo_id": "promptflow", "token_count": 778 }
7
import re import bs4 import requests from promptflow import tool def decode_str(string): return string.encode().decode("unicode-escape").encode("latin1").decode("utf-8") def remove_nested_parentheses(string): pattern = r"\([^()]+\)" while re.search(pattern, string): string = re.sub(pattern, ""...
promptflow/examples/flows/chat/chat-with-wikipedia/get_wiki_url.py/0
{ "file_path": "promptflow/examples/flows/chat/chat-with-wikipedia/get_wiki_url.py", "repo_id": "promptflow", "token_count": 1054 }
8
{"groundtruth": "Tomorrow's weather will be sunny.","prediction": "The weather will be sunny tomorrow."}
promptflow/examples/flows/evaluation/eval-basic/data.jsonl/0
{ "file_path": "promptflow/examples/flows/evaluation/eval-basic/data.jsonl", "repo_id": "promptflow", "token_count": 25 }
9
# Entity match rate evaluation This is a flow evaluates: entity match rate. Tools used in this flow: - `python` tool ## Prerequisites Install promptflow sdk and other dependencies: ```bash pip install -r requirements.txt ``` ### 1. Test flow/node ```bash # test with default input value in flow.dag.yaml pf flow te...
promptflow/examples/flows/evaluation/eval-entity-match-rate/README.md/0
{ "file_path": "promptflow/examples/flows/evaluation/eval-entity-match-rate/README.md", "repo_id": "promptflow", "token_count": 227 }
10
from typing import List from promptflow import tool @tool def aggregate(perceived_intelligence_score: List[float]): aggregated_results = {"perceived_intelligence_score": 0.0, "count": 0} # Calculate average perceived_intelligence_score for i in range(len(perceived_intelligence_score)): aggregated...
promptflow/examples/flows/evaluation/eval-perceived-intelligence/aggregate.py/0
{ "file_path": "promptflow/examples/flows/evaluation/eval-perceived-intelligence/aggregate.py", "repo_id": "promptflow", "token_count": 225 }
11
system: You are an AI assistant. You will be given the definition of an evaluation metric for assessing the quality of an answer in a question-answering task. Your job is to compute an accurate evaluation score using the provided evaluation metric. user: Relevance measures how well the answer addresses the main aspects...
promptflow/examples/flows/evaluation/eval-qna-non-rag/gpt_relevance_prompt.jinja2/0
{ "file_path": "promptflow/examples/flows/evaluation/eval-qna-non-rag/gpt_relevance_prompt.jinja2", "repo_id": "promptflow", "token_count": 648 }
12
system: Your task is to break down compound sentences into separate sentences. For simple sentences just repeat the user input. Remember to use a json array for the output. user: The output must be a json array. Here are a few examples: user input: Play Eric Clapton and turn down the volume. OUTPUT: ["Play Eric Clap...
promptflow/examples/flows/integrations/azure-ai-language/multi_intent_conversational_language_understanding/chat.jinja2/0
{ "file_path": "promptflow/examples/flows/integrations/azure-ai-language/multi_intent_conversational_language_understanding/chat.jinja2", "repo_id": "promptflow", "token_count": 166 }
13
from bs4 import BeautifulSoup import re import requests def decode_str(string): return string.encode().decode("unicode-escape").encode("latin1").decode("utf-8") def get_page_sentence(page, count: int = 10): # find all paragraphs paragraphs = page.split("\n") paragraphs = [p.strip() for p in paragrap...
promptflow/examples/flows/standard/autonomous-agent/wiki_search.py/0
{ "file_path": "promptflow/examples/flows/standard/autonomous-agent/wiki_search.py", "repo_id": "promptflow", "token_count": 975 }
14
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json environment: python_requirements_txt: requirements.txt inputs: text: type: string default: Hello World! outputs: output: type: string reference: ${llm.output} nodes: - name: hello_prompt type: prompt source: t...
promptflow/examples/flows/standard/basic/flow.dag.yaml/0
{ "file_path": "promptflow/examples/flows/standard/basic/flow.dag.yaml", "repo_id": "promptflow", "token_count": 230 }
15
from promptflow import tool @tool def class_check(llm_result: str) -> str: intentions_list = ["order_search", "product_info", "product_recommendation"] matches = [intention for intention in intentions_list if intention in llm_result.lower()] return matches[0] if matches else "unknown"
promptflow/examples/flows/standard/conditional-flow-for-switch/class_check.py/0
{ "file_path": "promptflow/examples/flows/standard/conditional-flow-for-switch/class_check.py", "repo_id": "promptflow", "token_count": 91 }
16
This is the docstring style of sphinx: """Description of the function. :param [ParamName]: [ParamDescription](, defaults to [DefaultParamVal].) :type [ParamName]: [ParamType](, optional) ... :raises [ErrorType]: [ErrorDescription] ... :return: [ReturnDescription] :rtype: [ReturnType] """ Note: For custom class types,...
promptflow/examples/flows/standard/gen-docstring/doc_format.jinja2/0
{ "file_path": "promptflow/examples/flows/standard/gen-docstring/doc_format.jinja2", "repo_id": "promptflow", "token_count": 534 }
17
<jupyter_start><jupyter_code># setup pf client and execution path from promptflow import PFClient import json import os pf = PFClient() root = os.path.join(os.getcwd(), "../") flow = os.path.join(root, "maths-to-code") data = os.path.join(flow, "math_data.jsonl") eval_flow = os.path.join(root, "../evaluation/eval-ac...
promptflow/examples/flows/standard/maths-to-code/math_test.ipynb/0
{ "file_path": "promptflow/examples/flows/standard/maths-to-code/math_test.ipynb", "repo_id": "promptflow", "token_count": 1340 }
18
my_tool_package.tools.tool_with_file_path_input.my_tool: function: my_tool inputs: input_file: type: - file_path input_text: type: - string module: my_tool_package.tools.tool_with_file_path_input name: Tool with FilePath Input description: This is a tool to demonstrate the usag...
promptflow/examples/tools/tool-package-quickstart/my_tool_package/yamls/tool_with_file_path_input.yaml/0
{ "file_path": "promptflow/examples/tools/tool-package-quickstart/my_tool_package/yamls/tool_with_file_path_input.yaml", "repo_id": "promptflow", "token_count": 135 }
19
# Basic flow with tool using a dynamic list input This is a flow demonstrating how to use a tool with a dynamic list input. Tools used in this flow: - `python` Tool Connections used in this flow: - None ## Prerequisites Install promptflow sdk and other dependencies: ```bash pip install -r requirements.txt ``` ## R...
promptflow/examples/tools/use-cases/dynamic-list-input-tool-showcase/README.md/0
{ "file_path": "promptflow/examples/tools/use-cases/dynamic-list-input-tool-showcase/README.md", "repo_id": "promptflow", "token_count": 111 }
20
from promptflow import tool from promptflow.connections import AzureOpenAIConnection @tool def echo_connection(flow_input: str, node_input: str, connection: AzureOpenAIConnection): print(f"Flow input: {flow_input}") print(f"Node input: {node_input}") print(f"Flow connection: {connection._to_dict()}") ...
promptflow/examples/tutorials/flow-deploy/create-service-with-flow/echo_connection_flow/echo_connection.py/0
{ "file_path": "promptflow/examples/tutorials/flow-deploy/create-service-with-flow/echo_connection_flow/echo_connection.py", "repo_id": "promptflow", "token_count": 128 }
21
<jupyter_start><jupyter_text>Execute flow as a function**Requirements** - In order to benefit from this tutorial, you will need:- A python environment- Installed prompt flow SDK**Learning Objectives** - By the end of this tutorial, you should be able to:- Execute a flow as a function- Execute a flow function with in-me...
promptflow/examples/tutorials/get-started/flow-as-function.ipynb/0
{ "file_path": "promptflow/examples/tutorials/get-started/flow-as-function.ipynb", "repo_id": "promptflow", "token_count": 1011 }
22
import argparse import json import os import re from datetime import datetime, timedelta from azure.storage.blob import ( AccountSasPermissions, BlobServiceClient, ContentSettings, ResourceTypes, generate_account_sas, ) def get_connection_string(storage_account, storage_key): return f"Default...
promptflow/scripts/distributing/publish_package.py/0
{ "file_path": "promptflow/scripts/distributing/publish_package.py", "repo_id": "promptflow", "token_count": 3675 }
23
<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <!-- Project --> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">x86<...
promptflow/scripts/installer/windows/promptflow.wixproj/0
{ "file_path": "promptflow/scripts/installer/windows/promptflow.wixproj", "repo_id": "promptflow", "token_count": 1537 }
24
import argparse from pathlib import Path from jinja2 import Environment, FileSystemLoader from ghactions_driver.readme_parse import readme_parser from ghactions_driver.readme_step import ReadmeStepsManage def write_readme_shell(readme_path: str, output_folder: str): full_text = readme_parser(readme_path) Pat...
promptflow/scripts/readme/extract_steps_from_readme.py/0
{ "file_path": "promptflow/scripts/readme/extract_steps_from_readme.py", "repo_id": "promptflow", "token_count": 549 }
25
- name: {{ step_name }} working-directory: examples run: | if [[ -e requirements.txt ]]; then python -m pip install --upgrade pip pip install -r requirements.txt fi
promptflow/scripts/readme/ghactions_driver/workflow_steps/step_install_deps.yml.jinja2/0
{ "file_path": "promptflow/scripts/readme/ghactions_driver/workflow_steps/step_install_deps.yml.jinja2", "repo_id": "promptflow", "token_count": 67 }
26
from promptflow import ToolProvider, tool import urllib.request class {{ class_name }}(ToolProvider): def __init__(self, url: str): super().__init__() # Load content from url might be slow, so we do it in __init__ method to make sure it is loaded only once. self.content = urllib.request.u...
promptflow/scripts/tool/templates/tool2.py.j2/0
{ "file_path": "promptflow/scripts/tool/templates/tool2.py.j2", "repo_id": "promptflow", "token_count": 171 }
27
# Development Guide ## Prerequisites ```bash pip install -r requirements.txt pip install pytest pytest-mock ``` ## Run tests - Create connection config file by `cp connections.json.example connections.json`. - Fill in fields manually in `connections.json`. - `cd tests` and run `pytest -s -v` to run all tests. ## R...
promptflow/src/promptflow-tools/README.dev.md/0
{ "file_path": "promptflow/src/promptflow-tools/README.dev.md", "repo_id": "promptflow", "token_count": 991 }
28
promptflow.tools.aoai_gpt4v.AzureOpenAI.chat: name: Azure OpenAI GPT-4 Turbo with Vision description: Use Azure OpenAI GPT-4 Turbo with Vision to leverage AOAI vision ability. type: custom_llm module: promptflow.tools.aoai_gpt4v class_name: AzureOpenAI function: chat tool_state: preview icon: light:...
promptflow/src/promptflow-tools/promptflow/tools/yamls/aoai_gpt4v.yaml/0
{ "file_path": "promptflow/src/promptflow-tools/promptflow/tools/yamls/aoai_gpt4v.yaml", "repo_id": "promptflow", "token_count": 1018 }
29
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import argparse import json import re import shutil from pathlib import Path from promptflow._cli._params import add_param_set_tool_extra_...
promptflow/src/promptflow/promptflow/_cli/_pf/_tool.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_cli/_pf/_tool.py", "repo_id": "promptflow", "token_count": 3192 }
30
$schema: https://azuremlschemas.azureedge.net/promptflow/latest/Flow.schema.json inputs: chat_history: type: list is_chat_history: true default: [] question: type: string is_chat_input: true outputs: answer: type: string reference: ${chat.output} is_chat_output: true nodes: - name:...
promptflow/src/promptflow/promptflow/_cli/data/chat_flow/template/flow.dag.yaml.jinja2/0
{ "file_path": "promptflow/src/promptflow/promptflow/_cli/data/chat_flow/template/flow.dag.yaml.jinja2", "repo_id": "promptflow", "token_count": 257 }
31
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import asyncio import functools import importlib import inspect import logging import os from datetime import datetime from importlib.metad...
promptflow/src/promptflow/promptflow/_core/openai_injector.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_core/openai_injector.py", "repo_id": "promptflow", "token_count": 3923 }
32
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore from promptflow._sdk._orm.run_info import RunInfo from ....
promptflow/src/promptflow/promptflow/_sdk/_orm/__init__.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_orm/__init__.py", "repo_id": "promptflow", "token_count": 140 }
33
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import argparse import json import logging import os import sys import waitress from promptflow._cli._utils import _get_cli_activity_name ...
promptflow/src/promptflow/promptflow/_sdk/_service/entry.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_service/entry.py", "repo_id": "promptflow", "token_count": 1683 }
34
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from pathlib import Path from typing import Callable, Union from promptflow import PFClient from promptflow._constants import LINE_NUMBER_...
promptflow/src/promptflow/promptflow/_sdk/_serving/flow_invoker.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_serving/flow_invoker.py", "repo_id": "promptflow", "token_count": 4000 }
35
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- # this file is a middle layer between the local SDK and executor, it'll have some similar logic with cloud PFS. import contextlib import os...
promptflow/src/promptflow/promptflow/_sdk/_submitter/utils.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/_submitter/utils.py", "repo_id": "promptflow", "token_count": 6479 }
36
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import abc import importlib import json import types from os import PathLike from pathlib import Path from typing import Dict, List, Union ...
promptflow/src/promptflow/promptflow/_sdk/entities/_connection.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/entities/_connection.py", "repo_id": "promptflow", "token_count": 16239 }
37
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import copy import datetime import json import logging import shutil from dataclasses import asdict, dataclass from functools import partia...
promptflow/src/promptflow/promptflow/_sdk/operations/_local_storage_operations.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_sdk/operations/_local_storage_operations.py", "repo_id": "promptflow", "token_count": 9375 }
38
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from dataclasses import fields, is_dataclass from datetime import datetime from enum import Enum from typing import Any, Callable, Dict, Li...
promptflow/src/promptflow/promptflow/_utils/dataclass_serializer.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/_utils/dataclass_serializer.py", "repo_id": "promptflow", "token_count": 2062 }
39
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.0, generator: @autorest/python@5.12.2) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ------------------------------...
promptflow/src/promptflow/promptflow/azure/_restclient/flow/aio/operations/_flows_provider_operations.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/_restclient/flow/aio/operations/_flows_provider_operations.py", "repo_id": "promptflow", "token_count": 2881 }
40
# coding=utf-8 # -------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.0, generator: @autorest/python@5.12.2) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ------------------------------...
promptflow/src/promptflow/promptflow/azure/_restclient/flow/operations/_flows_provider_operations.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/_restclient/flow/operations/_flows_provider_operations.py", "repo_id": "promptflow", "token_count": 3934 }
41
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import os from collections import defaultdict from functools import cached_property from multiprocessing import Lock from pathlib import Pat...
promptflow/src/promptflow/promptflow/azure/operations/_fileshare_storeage_helper.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/azure/operations/_fileshare_storeage_helper.py", "repo_id": "promptflow", "token_count": 4252 }
42
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import json import logging import sys from dataclasses import asdict, dataclass from enum import Enum from pathlib import Path from typing ...
promptflow/src/promptflow/promptflow/contracts/flow.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/contracts/flow.py", "repo_id": "promptflow", "token_count": 13223 }
43
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import re from promptflow._core._errors import NotSupported from promptflow.contracts.flow import InputAssignment, InputValueType from pro...
promptflow/src/promptflow/promptflow/executor/_input_assignment_parser.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/executor/_input_assignment_parser.py", "repo_id": "promptflow", "token_count": 2155 }
44
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import json from dataclasses import asdict, dataclass from datetime import datetime from promptflow._utils.dataclass_serializer import ser...
promptflow/src/promptflow/promptflow/storage/run_records.py/0
{ "file_path": "promptflow/src/promptflow/promptflow/storage/run_records.py", "repo_id": "promptflow", "token_count": 1297 }
45
import logging import multiprocessing import os import re import shutil import sys from pathlib import Path from types import GeneratorType import pytest from promptflow.contracts.run_info import Status from promptflow.exceptions import UserErrorException from promptflow.executor import FlowExecutor from promptflow.e...
promptflow/src/promptflow/tests/executor/e2etests/test_executor_happypath.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/e2etests/test_executor_happypath.py", "repo_id": "promptflow", "token_count": 6745 }
46
import pytest from promptflow._core._errors import RunRecordNotFound from promptflow._core.generator_proxy import GeneratorProxy from promptflow._core.run_tracker import RunTracker from promptflow.connections import AzureOpenAIConnection from promptflow.contracts.run_info import Status class UnserializableClass: ...
promptflow/src/promptflow/tests/executor/unittests/_core/test_run_tracker.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/unittests/_core/test_run_tracker.py", "repo_id": "promptflow", "token_count": 2794 }
47
import inspect from typing import Union import pytest from promptflow._core._errors import DuplicateToolMappingError from promptflow._utils.tool_utils import ( DynamicListError, ListFunctionResponseError, _find_deprecated_tools, append_workspace_triple_to_func_input_params, function_to_interface, ...
promptflow/src/promptflow/tests/executor/unittests/_utils/test_tool_utils.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/unittests/_utils/test_tool_utils.py", "repo_id": "promptflow", "token_count": 7564 }
48
import json from pathlib import Path from typing import Union, Dict from promptflow._utils.yaml_utils import load_yaml from promptflow.contracts.flow import Flow from promptflow.contracts.run_info import FlowRunInfo from promptflow.contracts.run_info import RunInfo as NodeRunInfo from promptflow.storage import Abstrac...
promptflow/src/promptflow/tests/executor/utils.py/0
{ "file_path": "promptflow/src/promptflow/tests/executor/utils.py", "repo_id": "promptflow", "token_count": 1627 }
49
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- from .bases import PFAzureIntegrationTestRecording from .constants import SanitizedValues from .utils import get_created_flow_name_from_flo...
promptflow/src/promptflow/tests/sdk_cli_azure_test/recording_utilities/__init__.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_azure_test/recording_utilities/__init__.py", "repo_id": "promptflow", "token_count": 208 }
50
import tempfile import pytest from pytest_mock import MockerFixture from promptflow.azure import PFClient from promptflow.exceptions import UserErrorException @pytest.mark.unittest class TestRunOperations: def test_download_run_with_invalid_workspace_datastore(self, pf: PFClient, mocker: MockerFixture): ...
promptflow/src/promptflow/tests/sdk_cli_azure_test/unittests/test_run_operations.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_azure_test/unittests/test_run_operations.py", "repo_id": "promptflow", "token_count": 274 }
51
# --------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # --------------------------------------------------------- import shutil from pathlib import Path from tempfile import TemporaryDirectory from types import GeneratorType import pytest from promptfl...
promptflow/src/promptflow/tests/sdk_cli_test/e2etests/test_flow_as_func.py/0
{ "file_path": "promptflow/src/promptflow/tests/sdk_cli_test/e2etests/test_flow_as_func.py", "repo_id": "promptflow", "token_count": 4569 }
52