Revise prompt optimization documentation for clarity#18579
Revise prompt optimization documentation for clarity#18579TomeHirata merged 7 commits intomlflow:masterfrom
Conversation
…framework agnosticism. Highlight key benefits and ease of integration with various agent frameworks, ensuring users understand the minimal code changes required for optimization. Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
There was a problem hiding this comment.
Pull Request Overview
This PR updates the documentation for MLflow's prompt optimization feature to emphasize its framework-agnostic nature and ease of use. The changes reframe the feature's value proposition to highlight minimal code changes and universal compatibility across agent frameworks.
- Added marketing-focused taglines emphasizing simplicity and lack of vendor lock-in
- Restructured the benefits section to highlight framework agnosticism and minimal code changes
- Updated section heading from "Use Agent Framework" to "Works with Any Agent Framework" with expanded framework-agnostic messaging
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Documentation preview for 7451985 is available at: Changed Pages (1)More info
|
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
|
|
||
| # Training data with inputs and expected outputs | ||
| # Training data with medical paper sentences and ground truth labels | ||
| raw_data = [ |
There was a problem hiding this comment.
Use a bit more complex example so that users can see the improvement just by copy-pasting the example code
| optimizer=GepaPromptOptimizer( | ||
| reflection_model="openai:/gpt-5", max_metric_calls=300 | ||
| ), | ||
| scorers=[Correctness(model="openai:/gpt-5-mini")], |
There was a problem hiding this comment.
any particular reason we use mini for scorer?
There was a problem hiding this comment.
Just for the cost purpose, mini should be sufficient 😄
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
🛠 DevTools 🛠
Install mlflow from this PR
For Databricks, use the following command:
Related Issues/PRs
n/a
What changes are proposed in this pull request?
Revise prompt optimization documentation for clarity and emphasis on framework agnosticism. Highlight key benefits and ease of integration with various agent frameworks, ensuring users understand the minimal code changes required for optimization.
How is this PR tested?
Does this PR require documentation update?
Release Notes
Is this a user-facing change?
What component(s), interfaces, languages, and integrations does this PR affect?
Components
area/tracking: Tracking Service, tracking client APIs, autologgingarea/models: MLmodel format, model serialization/deserialization, flavorsarea/model-registry: Model Registry service, APIs, and the fluent client calls for Model Registryarea/scoring: MLflow Model server, model deployment tools, Spark UDFsarea/evaluation: MLflow model evaluation features, evaluation metrics, and evaluation workflowsarea/gateway: MLflow AI Gateway client APIs, server, and third-party integrationsarea/prompts: MLflow prompt engineering features, prompt templates, and prompt managementarea/tracing: MLflow Tracing features, tracing APIs, and LLM tracing functionalityarea/projects: MLproject format, project running backendsarea/uiux: Front-end, user experience, plotting, JavaScript, JavaScript dev serverarea/build: Build and test infrastructure for MLflowarea/docs: MLflow documentation pagesHow should the PR be classified in the release notes? Choose one:
rn/none- No description will be included. The PR will be mentioned only by the PR number in the "Small Bugfixes and Documentation Updates" sectionrn/breaking-change- The PR will be mentioned in the "Breaking Changes" sectionrn/feature- A new user-facing feature worth mentioning in the release notesrn/bug-fix- A user-facing bug fix worth mentioning in the release notesrn/documentation- A user-facing documentation change worth mentioning in the release notesShould this PR be included in the next patch release?
Yesshould be selected for bug fixes, documentation updates, and other small changes.Noshould be selected for new features and larger changes. If you're unsure about the release classification of this PR, leave this unchecked to let the maintainers decide.What is a minor/patch release?
Bug fixes, doc updates and new features usually go into minor releases.
Bug fixes and doc updates usually go into patch releases.