> ## Documentation Index
> Fetch the complete documentation index at: https://dsrs.herumbshandilya.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DSRs

> _A DSPy rewrite(not port) with Rust in mind._

<img
  src="https://mintcdn.com/dsrs/EnmpCdQk9Agsq-LH/logo/main.png?fit=max&auto=format&n=EnmpCdQk9Agsq-LH&q=85&s=e1fd836bf48dfa0eabe68c6d61b8394c"
  alt="DSRs - A high-performance DSPy rewrite in Rust"
  style={{
width: '100%',
maxWidth: '768px',
height: 'auto',
borderRadius: '0.5rem',
margin: '0 auto 2rem auto',
display: 'block'
}}
  width="2625"
  height="611"
  data-path="logo/main.png"
/>

DSRs is a rewrite of the DSPy framework, built from the ground up in Rust for programming robust, LM-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](docs/getting-started/quickstart) to build your first pipeline in minutes.

> *Inspired by the original [DSPy](https://github.com/stanfordnlp/dspy) framework, DSRs brings LM application development to the Rust community.*

## Quickstart

<Card title="Start here" icon="rocket" href="docs/getting-started/quickstart" horizontal>
  Get up and running with DSRs in under 5 minutes. Install, configure, and run your first pipeline.
</Card>

## Learn more

Dive deeper into DSRs to gain an in-depth understanding.

<Columns cols={2}>
  <Card title="Building Blocks" icon="puzzle" href="/docs/building-blocks/signature">
    Learn about the foundational concepts of DSRs
  </Card>

  <Card title="Data" icon="folder" href="/docs/data/dataloader">
    Understand data currency in DSRs.
  </Card>

  <Card title="Optimizers" icon="wand-magic-sparkles" href="/docs/optimizers/copro">
    Optimize your LM applications with COPRO, MIPROv2, and GEPA.
  </Card>
</Columns>
