DSRs - A high-performance DSPy rewrite in Rust DSRs is a rewrite of the DSPy framework, built from the ground up in Rust for programming robust, LLM-powered applications. By leveraging Rust’s type system, memory safety, and concurrency, DSRs offers a more efficient and reliable foundation for language model workflows.
  • Not just a port: DSRs reimagines DSPy’s abstractions with Rust’s strengths in mind.
  • Modern Rust API: Take advantage of Rust’s ecosystem, async support, and strong typing.
  • Core features: Includes signatures, modules, adapters, etc.
  • Easy to get started: Install via Cargo, and follow the Quickstart to build your first pipeline in minutes.
Inspired by the original DSPy framework, DSRs brings LLM application development to the Rust community.

Setting up

Get your documentation site up and running in minutes.

Start here

Get up and running with DSRs in under 5 minutes. Install, configure, and run your first pipeline.

Learn More

Understand in-depth about the building blocks of DSRs