-
Notifications
You must be signed in to change notification settings - Fork 2k
docs(update) | design principles / why-dspy / optimizers #8433
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
Open
ammirsm
wants to merge
10
commits into
main
Choose a base branch
from
update-docs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
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
Include MathJax configuration script and necessary polyfills in the MkDocs setup. Update `mkdocs.yml` to load `mathjax-config.js` and relevant polyfills for enhanced math rendering capabilities.
…ription, outlining the optimization process, and clarifying functionality. Include links to related resources and specific usage examples for zero-shot and full optimization scenarios.
…y its functionality, usage, and benefits. Enhance sections on problem-solving, solution methodology, operational stages, practical examples, expectations, strengths, limitations, and best practices. Include technical details on optimization challenges and strategies, as well as comparisons with other optimizers, ensuring comprehensive guidance for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enriches DSPy’s documentation by adding conceptual guides, enhancing optimizer references, and enabling mathematical notation in the docs site.
- Added new community pages (“Why DSPy?” and “Design Principles”)
- Integrated MathJax for LaTeX support and updated site navigation
- Expanded optimizer docs with problem statements, detailed stages, and usage examples
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
docs/mkdocs.yml | Added nav entries for new community pages and MathJax scripts |
docs/docs/why-dspy.md | Introduced “Why DSPy?” conceptual overview |
docs/docs/js/mathjax-config.js | Added MathJax configuration for in-doc LaTeX rendering |
docs/docs/design-principles.md | Introduced DSPy philosophy and design principles |
docs/docs/api/optimizers/MIPROv2.md | Expanded MIPROv2 reference with problem context, technical details, and examples |
docs/docs/api/optimizers/BootstrapFewShotWithRandomSearch.md | Expanded Bootstrapping optimizer reference with stages, examples, and best practices |
Comments suppressed due to low confidence (1)
docs/docs/api/optimizers/MIPROv2.md:3
- The phrase "an prompt optimizer" is grammatically incorrect; it should be "a prompt optimizer."
`MIPROv2` (<u>M</u>ultiprompt <u>I</u>nstruction <u>PR</u>oposal <u>O</u>ptimizer Version 2) is an prompt optimizer capable of optimizing both instructions and few-shot examples jointly. It does this by bootstrapping few-shot example candidates, proposing instructions grounded in different dynamics of the task, and finding an optimized combination of these options using Bayesian Optimization. It can be used for optimizing few-shot examples & instructions jointly, or just instructions for 0-shot optimization.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.
Overview
This PR significantly expands and improves DSPy's documentation, especially around prompt optimization and the project’s core philosophy. It introduces detailed docs for major optimizers, new community/introductory material, and improved support for mathematical notation in the docs site.
Major Changes
1. Optimizer Documentation Improvements
BootstrapFewShotWithRandomSearch
MIPROv2
2. New Conceptual & Community Docs
design-principles.md
why-dspy.md
3. Docs Site Enhancements
mathjax-config.js & MathJax Integration
mkdocs.yml Navigation & Scripts
Motivation
Impact
Please review for clarity, accuracy, and completeness. Feedback and suggestions welcome!