Add LangGraph optimization guide#19180
Conversation
- Introduced a new documentation file for optimizing prompts with LangGraph. - Updated the sidebar configuration to include the new LangGraph optimization guide. - Added a link to the LangGraph optimization guide in the existing prompts documentation. Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com>
|
Documentation preview for f850491 is available at: Changed Pages (2)
More info
|
|
/review You're a professional doc writer. Let's polish this PR ✅ Review completed. Review OutputPerfect! I've completed the documentation review for PR #19180. Here's a summary of what I found: Review SummaryI've reviewed the new LangGraph optimization guide with a focus on documentation quality and polish. The guide is well-structured and follows the existing documentation patterns, but I found several areas for improvement: Issues Found (7 comments added):
Positive aspects:
All review comments have been added to the PR with specific suggestions and include clickable suggestion blocks where applicable, making it easy for the maintainers to apply the changes with one click. |
docs/docs/genai/prompt-registry/optimize-prompts/langgraph-optimization.mdx
Outdated
Show resolved
Hide resolved
BenWilson2
left a comment
There was a problem hiding this comment.
Looks good once the single comment is addressed
…imization.mdx Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR adds a comprehensive optimization guide for LangGraph agents to the MLflow documentation, extending the existing prompt optimization documentation to include support for the LangGraph framework alongside the existing LangChain and OpenAI agent guides.
- Adds a new "LangGraph Optimization" documentation page with a complete example
- Updates the sidebar navigation to include the new guide
- Adds a reference link in the main optimization guide page
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| docs/sidebarsGenAI.ts | Adds sidebar entry for the new LangGraph optimization guide at position 8 |
| docs/docs/genai/prompt-registry/optimize-prompts/langgraph-optimization.mdx | New comprehensive guide demonstrating how to optimize LangGraph agent prompts with a complete customer support example |
| docs/docs/genai/prompt-registry/optimize-prompts.mdx | Adds reference link to the new LangGraph optimization guide in the framework-agnostic section |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com> Signed-off-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com> Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Signed-off-by: Tomu Hirata <tomu.hirata@gmail.com> Signed-off-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com> Co-authored-by: Ben Wilson <39283302+BenWilson2@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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?
Similarly to Langchain and OpenAI agents, this PR introduces the "how to guide" for optimizing LangGraph agents.
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.