Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set source on workflow execution inference requests #293

Merged
merged 5 commits into from Feb 28, 2024

Conversation

hansent
Copy link
Contributor

@hansent hansent commented Feb 28, 2024

Description

adds source and source_info parameters to InferenceConfiguration and pass workflow-execution as source on inference requests made by the workflow execution engine so the requests can be id'd as being part of workflow execution
List any dependencies that are required for this change.

This enables model monitoring to filtr / group by which inference request were made via workflow execution

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How has this change been tested, please provide a testcase or example of how you tested the change?

NOT YET!

Any specific deployment considerations

Docs

  • Docs updated? What were the changes:

… pass `workflow-execution` as source on inference requests made by the workflow execution engine so the requests can be id'd as being part of workflow execution
@@ -187,6 +187,7 @@ def construct_classification_request(
image=image,
confidence=resolve(step.confidence),
disable_active_learning=resolve(step.disable_active_learning),
source="workflow-execution",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally would want to pass source_info as the workflow id/name, but don't have that context available here easily?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we do not have that

@hansent hansent marked this pull request as ready for review February 28, 2024 19:23
@hansent hansent merged commit 7429c9a into main Feb 28, 2024
5 checks passed
@hansent hansent deleted the workflow-inference-source-param branch February 28, 2024 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants