Replies: 1 comment
-
Thanks for reaching us, for now promptflow does not have 'loop' operator, but you can still achieve this in two ways.
f = load_flow(Path(__file__).parent / "my_llm_flow")
@tool
def execute_flow_tool(connection: AzureOpenAIConnection):
f.context.connections = {"classify_with_llm": {"connection": connection}}
f(url=sample_url) # Execute flow |
Beta Was this translation helpful? Give feedback.
-
Hi team,
we would like call recursively a custom_llm node based on the output of a python node that reads file from a dir and emits the contents for llm analysis. Next step should get output from llm and save as output.
Is this possible or we should put the iteration logic outside promptflow?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions