Skip to content

Update quickstart and LM inspection documentation - #137

Open
arthurianresolve wants to merge 125 commits into
krypticmouse:mainfrom
arthurianresolve:fix-quickstart-documentation
Open

arthurianresolve wants to merge 125 commits into
krypticmouse:mainfrom
arthurianresolve:fix-quickstart-documentation

Conversation

@arthurianresolve

@arthurianresolve arthurianresolve commented Nov 10, 2026 •

Copy link
Copy Markdown

Summary of Fix

Stacked on #136, which includes #135 and #134. Merge #134 → #135 → #136 → this PR.

  • Update the existing README and step-by-step quickstart while retaining their tutorial structure and navigation.

  • Keep inline examples for signatures, modules, evaluation, COPRO/MIPROv2, typed data loading, predictor discovery, multi-step pipelines, chain of thought and trace capture.

  • Preserve the quickstart's custom types, few-shot demos, constraints, pipeline example and navigation cards, plus the README's contribution, acknowledgment and community links.

  • Use one complete 00-quickstart.rs example in the README and guide, including offline --inspect-only prompt preview and raw/parsed history inspection.

  • Correct metric signatures, row-based data loading, explicit predictor discovery, optimizer entry points, tracing APIs and generated-output ownership.

  • Clarify dependency aliases, feature requirements, native Ollama configuration and the difference between this checkout and a published release.

  • Document and test the existing typed #[dspy_rs::cot] helper, including the generated reasoning and function-named answer field.

Fixes #12
Fixes #50

Why

The guides mixed current typed APIs with obsolete examples. The quickstart described the return value as the complete signature rather than Predicted<QAOutput>; other snippets used old metric, loader, optimizer, discovery and tracing interfaces.

The existing learning material remains inline with corrected examples. A shared complete quickstart shows how to inspect a prompt before sending it and inspect the executed invocation afterwards. Detailed component guides supplement those examples.

The changes owned by this branch update the existing guides, add the runnable quickstart and a typed CoT regression. They preserve the tutorial structure while replacing obsolete snippets and incorrect descriptions. The full PR diff also includes its unmerged runtime parents.

Related work

Testing

  • Final integrated cache-enabled release checks: 61 tests passed using --no-default-features --features cache (three live tests excluded from this offline run). This covers invocation history, persistent storage, tool-loop limits, native/scalar output and trace/history parity.

  • Integrate the current Add provider-native structured output and scoped sampling #121/Decouple execution history and feature-gate response caching #134 typed special fields and persistent interaction storage through the existing prerequisite stack.

  • The restored tutorial snippets previously compiled together in a temporary harness with minimal and default/data features. The harness supplies the surrounding context described in the guides and is not included in the PR.

  • The new test_cot_helper passed using the actual helper macro and typed generated output.

  • The resolved stack at 2b4590f0174dc05582347b8da75b6b58fbce9ca0 passed 209 tests with --no-default-features and 247 with default data/cache features (2 live tests ignored per offline run). These are focused library and integration suites, not the full workspace test suite. Later ancestry-only integration merges preserve the validated source trees.

  • cargo +1.99.1 check --workspace --all-targets --locked -j1 — passed with defaults.

  • cargo +1.99.1 check -p dspy-rs --all-targets --no-default-features --locked -j1 — passed.

  • Minimal-feature rustdoc — 14 passed (including the rejected root-import compile-fail case), 19 ignored.

  • Both runnable prompt previews passed with --inspect-only; the Ollama example used an unreachable endpoint to verify it made no request.

  • Complete quickstart blocks, local links and MDX/Markdown structure are checked against the runnable source.

  • git diff --check — passed. A rendered Mintlify preview was not verified.

AI Disclosure

  • OpenAI Codex assisted with implementation, tests, and PR drafting.
  • all fixes and drafts have been human-architected, human-directed and human-reviewed before publication of PR requests.

…-structured-output

# Conflicts:
#	crates/dspy-rs/src/core/lm/mod.rs
#	crates/dspy-rs/src/trace/span.rs
@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Preview approval required

This pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit 83c1b5c.

Approve preview

@arthurianresolve
arthurianresolve force-pushed the fix-quickstart-documentation branch from ee0b886 to 22dbb3f Compare November 10, 2026 08:11
arthurianresolve added a commit to arthurianresolve/DSRs that referenced this pull request Nov 19, 2026
Integrate krypticmouse#137 — Update quickstart and LM inspection documentation

This branch has not been deployed

No deployments
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.

#cot helper Todo list: Docs

1 participant