Skip to content

A collection of example AI programs built using DSPy and maitained by the Langtrace AI team.

License

Notifications You must be signed in to change notification settings

Scale3-Labs/dspy-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSPy AI Program Examples

This repository contains a collection of example AI programs built using DSPy and maitained by the Langtrace AI team.

Repository Structure

  • src/: The top-level directory containing all examples.
    • Each subdirectory within src/ represents a distinct example.
      • Within each example directory, you'll find one or more program folders.

Program Structure

Each program folder typically includes the following files:

  • dataset: Contains the data used by the program.
  • program.py: The main program logic.
  • signatures.py: Defines the signatures used in the program.
  • run.py: The entry point for executing the program.

Compound Systems

Some examples may consist of multiple DSPy programs working together as a compound system. In such cases, you'll find multiple program folders within a single example directory.

Getting Started

To run an example:

  1. Navigate to the desired program folder.
  2. Execute the run.py file.

Contributing

We welcome contributions to this repository! Here's how you can contribute:

  1. Fork the repository
  2. Create a new branch for your feature or bug fix
  3. Make your changes and commit them with a clear message
  4. Push your changes to your fork
  5. Submit a pull request with a description of your changes

Please ensure your code follows the existing style and includes appropriate documentation. We appreciate your help in improving this project!

License

This project is licensed under the MIT License.

About

A collection of example AI programs built using DSPy and maitained by the Langtrace AI team.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages