Skip to content

Conversation

@chenmoneygithub
Copy link
Collaborator

@chenmoneygithub chenmoneygithub commented Aug 16, 2025

We have seen confusion from users on what is adapter, and how to pick the right adapter. i am writing this tutorial to fill in the gap.

I am not including XMLAdapter and BAMLAdapter in the tutorial because very few people are using it, and we don't have clear information on where they best fit in.

@chenmoneygithub chenmoneygithub changed the title add guide on adapters Add tutorial on adapters Aug 16, 2025
@okhat okhat merged commit 1b90b4b into stanfordnlp:main Aug 16, 2025
12 checks passed
@torchss
Copy link

torchss commented Aug 16, 2025

Chen,

unsure if this is the right place to ask this question, or I should make a new issue or join the discord, but is an adapter what I would need to build to add Outlines (https://github.com/dottxt-ai/outlines) support to dspy, if I wanted to control the logits instead of hoping the LLM was "good enough" to output high quality JSON or similar?

Or should I be subclassing dspy.LM instead? (in this case are there some examples I could look at?)

Outlines isn't backend agnostic (due to the need to control the logits) and my first implementation would be using vLLM.

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.

3 participants