Add a Prompt Registry discoverability step to mlflow-onboarding - #34
Open
adamgurary wants to merge 1 commit into
Open
Add a Prompt Registry discoverability step to mlflow-onboarding#34adamgurary wants to merge 1 commit into
adamgurary wants to merge 1 commit into
Conversation
No skill covered how to register a UC-backed prompt or make it discoverable in the MLflow UI. Add a step 4 to the GenAI Integration section covering: - workspace Prompt Registry preview must be enabled - mlflow.genai.register_prompt() with UC three-part name - register_prompt logs a UI link and auto-links the experiment Prompts tab (older versions: set mlflow.promptRegistryLocation manually) - prompt_version.uri as the programmatic load handle Co-authored-by: Isaac Signed-off-by: Adam Gurary <guraryadam@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
No step in
mlflow-onboardingcovered how to register a Unity Catalog-backed prompt withmlflow.genai.register_promptor how to make registered prompts discoverable in the MLflow UI.A user following the existing onboarding skill would register a prompt successfully but find:
The root cause is that the Prompts tab requires the
mlflow.promptRegistryLocationexperiment tag to be set, and nothing in the skill mentioned this. Recent mlflow versions set this tag automatically duringregister_prompt, but the skill gave no guidance on this behavior or the manual fallback for older versions.Changes
Added step 4 ("Prompt Registry") to the GenAI Integration section of
mlflow-onboarding/SKILL.md:mlflow.genai.register_prompt(name="catalog.schema.my_prompt", template=...)for a UC-backed promptregister_promptlogs a UI link on success and auto-links the active experiment's Prompts tab to the schema (via themlflow.promptRegistryLocationtag) on recent mlflow versionsprompt_version.uri(prompts:/catalog.schema.my_prompt/1) as the programmatic handle to load the prompt latermlflow.promptRegistryLocationmanually withmlflow.set_experiment_tag