Skip to content
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

Feature/make signatures replaceable with context manager #1090

Conversation

mikeedjones
Copy link

Adds one method to dspy.Signaturewhich allows users to update any of the internal Signatures used by DSPy's various modules with an easy to use context manager. Grants users the ability to address issues such as #729 and #409

Adds a helper function which allows multiple signatures to be replaced according to a mapping.

Adds tests for the above.

Adds docs for the above with examples.

@arnavsinghvi11
Copy link
Collaborator

Thanks @mikeedjones for the PR! made some minor spelling/docs fixes and merging.

@arnavsinghvi11 arnavsinghvi11 merged commit 4a958ec into stanfordnlp:main Jun 17, 2024
4 checks passed
arnavsinghvi11 added a commit that referenced this pull request Jul 12, 2024
…laceable-with-context-manager

Feature/make signatures replaceable with context manager
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.

None yet

2 participants