DSPy llms.txt · AI Docs Browser · mdream

[llms.txt Tools](https://mdream.dev/llms-txt/dspy/llms-txt)

# DSPy llms.txt

Browse DSPy documentation as markdown. Click any page in the sidebar to view it, or copy the full llms.txt for your AI tools.

dspy.ai/llms.txt

[Raw llms.txt](https://dspy.ai/llms.txt) [Raw llms-full.txt](https://dspy.ai/llms-full.txt)

Copy Markdown [](https://dspy.ai/llms.txt)

llms.txt

Get Started

Overview

Getting Started

Changing modules

Class-based signatures

Composing modules

Expanding signatures

Your first program

GEPA optimization

Setting up DSPy

Metrics

Program, don't prompt

Tools with ReAct

Saving and loading

Where to go next

Diving Deeper

Adapters: how signatures become prompts

BootstrapFewShot family

Built-in module variants

Optimizers: choosing one

GEPA in depth

Metrics and evaluation

Modules: composing your own

RLM: exploring large contexts with code

Saving and loading

Settings and context()

Signatures in depth

Tools, ReAct, and MCP

Tutorials - Docs

Tutorials Overview

Building a Creative Text-Based AI Game

Async

Overview

Cache

Classification

Managing Conversation History

Overview

Deployment

Email Information Extraction

Overview

Generating llms.txt

Use MCP in DSPy

Memory-Enabled ReAct Agents

Debugging & Observability

Overview

Tracking DSPy Optimizers

Output Refinement

Privacy-Conscious Delegation

Overview

Overview

Code Generation for Unfamiliar Libraries

Saving and Loading

Streaming

Financial Analysis with Yahoo Finance

Tutorials - Notebooks

Building RAG as Agent

Audio

Classification Finetuning

Building AI Applications by Customizing DSPy Modules

Building AI Agents with DSPy

Cohort analysis demo

Entity Extraction

Finetuning Agents

GEPA for AIME (Math)

GEPA for Structured Information Extraction for Enterprise Tasks

GEPA for Privacy-Conscious Delegation

GEPA for Code Backdoor Classification (AI control)

Image Generation Prompt iteration

Math Reasoning

Multi-Hop RAG

Program Of Thought

Retrieval-Augmented Generation (RAG)

RL for Multi-Hop Research

RL for Privacy-Conscious Delegation

Advanced Tool Use

Community

Built with DSPy

Resources

Contributing

Normalized LM API Migration

Use Cases

FAQ

FAQ

Cheatsheet

API Reference

API Reference

Adapters

Adapter

ChatAdapter

JSONAdapter

TwoStepAdapter

XMLAdapter

Evaluation

CompleteAndGrounded

Evaluate

EvaluationResult

SemanticF1

answer_exact_match

answer_passage_match

Experimental

Citations

Document

Models

BaseLM

Embedder

LM

Modules

BestOfN

ChainOfThought

CodeAct

Module

MultiChainComparison

Parallel

Predict

ProgramOfThought

RLM

ReAct

Refine

Optimizers

BetterTogether

BootstrapFewShot

BootstrapFewShotWithRandomSearch

BootstrapFinetune

BootstrapRS

COPRO

Ensemble

InferRules

KNN

KNNFewShot

LabeledFewShot

MIPROv2

SIMBA

2. GEPA Advanced

1. GEPA Overview

Primitives

Audio

Code

Example

History

Image

Prediction

Tool

ToolCalls

Signatures

InputField

OutputField

Signature

Tools

ColBERTv2

Embeddings

PythonInterpreter

Utils

Errors

StatusMessage

StatusMessageProvider

StreamListener

asyncify

configure

configure_cache

context

disable_litellm_logging

disable_logging

enable_litellm_logging

enable_logging

inspect_history

load

streamify

## What is DSPy's llms.txt?

DSPy publishes an `/llms.txt` file that provides AI systems with a structured index of its documentation. It follows the [llms.txt specification](https://llmstxt.org), organizing links to guides, API references, and tutorials under section headings so that LLMs like ChatGPT, Claude, and Gemini can quickly understand what DSPy offers and where to find details.

Pass

Spec

8

Sections

159

Links

11.8 KB

Size

~3.0k

Tokens

Sections: Get Started · Getting Started · Diving Deeper · Tutorials - Docs · Tutorials - Notebooks · Community · and 2 more

## Add DSPy Docs to Your AI Assistant

Select your tool to see how to add DSPy's llms.txt as a documentation source.

Cursor

 Windsurf

 Claude Code

 ChatGPT

 Zed

 Copilot

1. 1

   Open any chat or composer panel
2. 2

   Type @Docs and select "Add new doc"
3. 3

   Paste the URL: https://dspy.ai/llms.txt
4. 4

   Wait for the green dot (indexing complete)
5. 5

   Reference @Docs in chat when asking about DSPy

Cursor crawls the URL and indexes all subpages. Add a trailing slash to index child pages too.

## Spec Compliance 3 notes

## Frequently Asked Questions

Where is DSPy's llms.txt file?

DSPy publishes its llms.txt at https://dspy.ai/llms.txt. This file provides a structured, markdown-formatted index of DSPy's documentation that AI systems can consume to understand the project's APIs, guides, and references.

How do I use DSPy's llms.txt with AI coding assistants?

Copy the llms.txt content and paste it into your AI assistant (Cursor, Windsurf, Claude, ChatGPT) as context. This gives the AI an accurate map of DSPy's documentation so it can provide better code suggestions and answers about DSPy.

What does DSPy's llms.txt contain?

DSPy's llms.txt contains 8 sections and 159 documentation links in 11.8 KB (~3.0k tokens). Key sections include Get Started, Getting Started, Diving Deeper, Tutorials - Docs, Tutorials - Notebooks, Community.

How many tokens does DSPy's llms.txt use?

The concise llms.txt index is approximately 3.0k tokens (11.8 KB). Most AI assistants can fit this within their context window. For the full expanded documentation, look for an llms-full.txt variant which embeds all content inline.

What is DSPy?

The framework for programming - rather than prompting - language models.. DSPy's llms.txt file helps AI systems understand this by providing a structured overview of its documentation, making it easier for developers to get accurate AI-assisted help when working with DSPy.

Can I generate an llms.txt for my own project?

Yes. Use the free llms.txt generator at mdream.dev/tools/llms-txt/generator to crawl your site and produce a spec-compliant llms.txt file. You can also validate existing files with the llms.txt validator.

## Browse More llms.txt Files

[Preact Documentation**Tip:** HTM also provides a convenient single-import Preact version:](https://mdream.dev/llms-txt/dspy/llms-txt/preactjs) [Loops](https://mdream.dev/llms-txt/dspy/llms-txt/loops) [FalkorDB Ultra-fast, Multi-tenant Graph Database](https://mdream.dev/llms-txt/dspy/llms-txt/falkordb) [Fabric](https://mdream.dev/llms-txt/dspy/llms-txt/fabric) [Easy!Appointments Online Appointment Scheduler](https://mdream.dev/llms-txt/dspy/llms-txt/easy-appointments) [Strapi Documentation](https://mdream.dev/llms-txt/dspy/llms-txt/strapi) [OpenAI API docs Guides and conceptual documentation for building with the OpenAI API.](https://mdream.dev/llms-txt/dspy/llms-txt/platform) [React Bits React Bits is an open source collection of memorable UI elements - Components, Animations, Backgrounds, and Text Animations - provided in four implementation variants: JavaScript + CSS, JavaScript + Tailwind, TypeScript + CSS, and TypeScript + Tailwind. Components are copy-friendly and installable via CLI (jsrepo or shadcn).](https://mdream.dev/llms-txt/dspy/llms-txt/react-bits)

[View all 99 projects ](https://mdream.dev/llms-txt/dspy/llms-txt)

## Related Tools

[<h3>llms.txt Generator</h3>Generate an llms.txt for your own project.](https://mdream.dev/llms-txt/dspy/tools/llms-txt/generator) [<h3>llms.txt Validator</h3>Validate your llms.txt against the official spec.](https://mdream.dev/llms-txt/dspy/tools/llms-txt/validator)

© 2026 [Harlan Wilton](https://github.com/harlan-zw) · [MIT](https://github.com/harlan-zw/mdream/blob/main/license)

[GitHub](https://github.com/harlan-zw/mdream) [Discord](https://discord.com/invite/275MBUBvgP)