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

Fix a few small typos #361

Merged
merged 4 commits into from
Feb 17, 2024
Merged

Fix a few small typos #361

merged 4 commits into from
Feb 17, 2024

Conversation

svilupp
Copy link
Contributor

@svilupp svilupp commented Feb 9, 2024

Thank you for the package!

When reading through the code, I noticed a few typos, so I took the liberty to fix them.

Only one of them is relevant for performance (it's in the prompt for Bayesian teleprompter).

@svilupp
Copy link
Contributor Author

svilupp commented Feb 9, 2024

Btw there is a typo in a kwarg name: https://github.com/thomasahle/dspy/blob/719a8d1805b4a59780ed9cda6840e782be39c013/dspy/teleprompt/bootstrap.py#L99
“bootsraps” vs bootstraps

But I intentionally didn’t fix it, because that could break code and would need to be versioned up.

@okhat
Copy link
Collaborator

okhat commented Feb 11, 2024

Ah thanks for the note. Actually please do feel free to fix max_bootsraps too. It's not used anywhere based on quick search (and I'm pretty sure it's not used outside the library itself, this is super internal). Happy to merge this, thank you!

@@ -81,7 +81,7 @@ class ObservationSummarizer(dspy.Signature):

class DatasetDescriptor(dspy.Signature):
("""Given several examples from a dataset please write observations about trends that hold for most or all of the samples. """
"""Some areas you may consider in your observations: topics, content, syntax, conciceness, etc. """
"""Some areas you may consider in your observations: topics, content, syntax, conciseness, etc. """
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm this is a good fix but it may affect runs :/ so we probably will only want to merge this one at a later version cc: @XenonMolecule

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, whoops, good catch here, svilupp! I'm checking with Krista, but we may both have a version of the Bayesian optimizer running off a branch for the current experiments, so merging may not be a concern for ongoing runs. I will double-check with her and confirm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I remove this fix from the PR to merge the rest or let's keep it open for a few days for you to check?

@svilupp
Copy link
Contributor Author

svilupp commented Feb 12, 2024

Ah thanks for the note. Actually please do feel free to fix max_bootsraps too. It's not used anywhere based on quick search (and I'm pretty sure it's not used outside the library itself, this is super internal). Happy to merge this, thank you!

Added to the PR + refreshed with the latest main

@okhat
Copy link
Collaborator

okhat commented Feb 17, 2024

Ok added back the typo cc: @XenonMolecule let's fix this in our own refactors soon.

Merging now @svilupp ! Thank you so much.

@okhat okhat merged commit 96d803e into stanfordnlp:main Feb 17, 2024
1 check passed
@svilupp svilupp deleted the fix-typo branch February 17, 2024 08:11
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