Skip to content

docs: the search prompt asks about JAX gradient-based inference - #1591

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/search-prompt-jax-gradient
Sep 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/search-prompt-jax-gradient

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The "Choose a search" prompt on the Natural Language Inference page now reads:

Show me the available non-linear searches, including those which support gradient based inference using JAX. For this example fit, our likelihood function is not implemented using JAX, so lets use Dynesty nested sampling with 100 live points to estimate the posterior and evidence.

The list had to change with it

The prompt now asks about gradient-based/JAX searches, but the list underneath named only nested sampling, MCMC and optimisation — the page would have asked a question it never answers. Added a fourth bullet:

Gradient-based (JAX): BlackJAXNUTS for Hamiltonian / NUTS sampling, and MultiStartAdam / MultiStartProdigy for optimisation. These take gradients of your likelihood automatically, so they require it to be written in JAX — which is why this example, whose likelihood is plain NumPy, uses Dynesty.

Those three names were verified against the installed autofit public API, not written from memory — the whole point of the prompt is that a reader can ask for them by name.

Typo in the supplied text fixed: "likelihood funciton" → "function". The rest is verbatim, including "lets".

Test Plan

  • python -m sphinx -b html docs … → 30 warnings, unchanged against the baseline.
  • The old prompt wording appears nowhere in docs/.
  • BlackJAXNUTS, MultiStartAdam, MultiStartProdigy all present in dir(autofit).

Companion PR: PyAutoLabs/autofit_assistant#35 makes the same change to the README, which carries the same walkthrough.

🤖 Generated with Claude Code

https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk

The "Choose a search" prompt now asks to see the searches that support
gradient based inference using JAX, and says explicitly that this example's
likelihood is not JAX, which is why it uses Dynesty.

The list below it answers that question: a Gradient-based (JAX) bullet
naming BlackJAXNUTS, MultiStartAdam and MultiStartProdigy — verified against
the installed `autofit` public API rather than written from memory — and the
reason a NumPy likelihood rules them out here. Without it the page would ask
a question it never answers.

Typo in the supplied text fixed: "likelihood funciton" -> "function".

Sphinx: 30 warnings, unchanged against the baseline.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015LXave3uvSeLEq7S68NjXk
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Sep 9, 2026
@Jammy2211
Jammy2211 merged commit b083209 into main Sep 9, 2026
4 checks passed
@Jammy2211
Jammy2211 deleted the feature/search-prompt-jax-gradient branch September 9, 2026 17:47
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 26, 2026
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.

1 participant