Skip to content

Conversation

@juntaoyou
Copy link

@juntaoyou juntaoyou commented Dec 15, 2025

This PR adds concise Google-style docstrings for four public methods in
dspy/predict/parallel.py

  • Provide a docstring for Parallel Class, and provide an executable example.

This is my first time contributing to an open-source project. I use Qwen-Max as an assistant to provide suggestions. Although I’ve carefully reviewed my changes, I’d appreciate a second look to make sure there are no mistakes. @chenmoneygithub

Copy link
Collaborator

@chenmoneygithub chenmoneygithub left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! some minor comments

dspy.configure(lm=dspy.LM("openai/gpt-4o-mini"))
# define a module to process data
class MyModule(dspy.Module):
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is LLM hallucination, let's use module=dspy.Predict("question->answer")

# create execution pairs
exec_pairs = [(module, example) for example in examples]
# parallel execution
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can remove these excessive comments, which add little extra information from the code itself.

@juntaoyou
Copy link
Author

Thank you! I’ve updated the docstring accordingly.

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.

2 participants