|
As we have been having conversations with Airflow users, who are using Airflow for Gen AI applications, there are a couple of features that have been brought up as being desirable. As context, based on the most recent Airflow survey, over 8% of Airflow users are now using Airflow for Gen AI use cases.
One of the desired features is to have "human interaction" within the context of the overall orchestration flow. Here are the most common flows:
For a lot of Airflow users, these operations above are expected to be performed through the Airflow UI.
However, Airflow users especially those who use Airflow within the context of other applications may choose to build their own UX mechanisms for these human interactions. For those reasons, an API-driven interaction for the above workflows is also important.
Though the urgency of the requirement for “human in the loop” interactions is driven by Gen AI applications, this need has existed in data pipelines earlier. A common use case within enterprise data pipelines has been for “human validations” to supplement “automated system validations”.
At a high level, we propose to make the following changes:
Existing unchanged DAG / task behaviour of relevance:
To be figured out:
Current users of Airflow, using Airflow for existing use cases, will be unaffected by this change.
Current users who don't use this new feature are unaffected by this change.
The only other AIP which is currently in progress which could be leveraged / impacted (though not necessarily) is AIP-68 Extended Plugin Interface.
Human failure to respond:
Being able to create DAGs with the three flows described in the beginning of the document and run them through the Airflow UI and using the API (i.e. without the UI).