This repository contains a collection of example AI programs built using DSPy and maitained by the Langtrace AI team.
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.
- Each subdirectory within
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.
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.
To run an example:
- Navigate to the desired program folder.
- Execute the
run.py
file.
We welcome contributions to this repository! Here's how you can contribute:
- Fork the repository
- Create a new branch for your feature or bug fix
- Make your changes and commit them with a clear message
- Push your changes to your fork
- 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!
This project is licensed under the MIT License.