Overseas access: www.kdjingpai.com
Bookmark Us
Current Position:fig. beginning " AI Answers

What process should I follow if I want to contribute new examples to the DSPy sample code base?

2025-09-10 2.0 K

Contributing new examples requires adherence to the following normalized process:

1. Preliminary preparations

  • Fork main repository to personal GitHub account
  • Create the feature branch locally:git checkout -b feature-summarizer

2. Content development

  • Create a new example folder under src/, keeping the same directory structure as the existing project
  • Ensure that the minimum runnable unit is included:
    • dataset/(sample data)
    • program.py (main logic)
    • signatures.py (signature definition)
    • run.py (execution entry)
  • Write README.md describing sample functions and usage

3. Submission for review

  • fulfillmentgit add . && git commit -m "feat: add summarizer example"
  • Push the branch and create a Pull Request
  • Detailed in the PR description:
    • Example application scenarios
    • DSPy key technology points used
    • Test validation status

It is recommended that you consult the repository CONTRIBUTING.md file prior to development for specific specifications such as code style and testing requirements.

Recommended

Can't find AI tools? Try here!

Just type in the keyword Accessibility Bing SearchYou can quickly find all the AI tools on this site.

Top