# DSPy

DSPy is a Python framework for building AI systems, providing structured signatures, modules, and optimizers for maintainable and optimizable programs.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Schema-Validated LLM Workflows: A Benchmark Protocol and Comparative Evaluation Across Six Python Implementations

DevFeed: [Schema-Validated LLM Workflows: A Benchmark Protocol and Comparative Evaluation Across Six Python Implementations](<https://devfeed.tech/articles/schema-validated-llm-workflows-a-benchmark-protocol-and-comparative-evaluation-across-six-python-implementations-148263.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.27106>)

Author: Sidney Shapiro, Sanad Al-Khatib, Aurora Pinz\\'on Arzola, Emiliano Sebastian Gonzalez Venegas, Daniel Pearson

Published: 2026-11-23T05:00:00Z

Content type: comparison

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [DSPy](<https://devfeed.tech/topics/dspy.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Python](<https://devfeed.tech/topics/python.md>), [Pydantic](<https://devfeed.tech/topics/pydantic.md>)

Tags: [agno](<https://devfeed.tech/tags/agno.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [api](<https://devfeed.tech/tags/api.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [compliance](<https://devfeed.tech/tags/compliance.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [failures](<https://devfeed.tech/tags/failures.md>), [framework](<https://devfeed.tech/tags/framework.md>), [langgraph](<https://devfeed.tech/tags/langgraph.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-workflows](<https://devfeed.tech/tags/llm-workflows.md>), [protocol](<https://devfeed.tech/tags/protocol.md>), [python](<https://devfeed.tech/tags/python.md>), [schema](<https://devfeed.tech/tags/schema.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

### AI overview

The benchmark separates schema validity from task correctness across five business workflows and six Python implementations. In the eligible confirmatory run, overall schema validity was 0.684 and mean automated quality was 0.638. PydanticAI, LangGraph, and DSPy had near-ceiling schema validity and mean quality of 0.91-0.94; the plain SDK, Agno, and CrewAI scored substantially lower in this package and model configuration. Schema-valid outputs still drew many task-score flags, especially in extraction and compliance QA, and failures varied by condition and task, including a workflow collapse for CrewAI. The results are system-configuration findings, not causal evidence about marketed library features.

### Source excerpt

arXiv:2611.27106v1 Announce Type: new Abstract: Large language models are increasingly used to extract records, generate SQL, summarize reports, answer policy questions, and route operational work. At these software boundaries, parseable output is necessary but does not establish task correctness. We present a reproducible benchmark protocol, a public executable artifact, and a confirmatory live API evaluation that separate structural validity from task-specific correctness across five business workflow tasks and six Python implementation conditions: PydanticAI, LangGraph, DSPy, CrewAI, Agno, and a framework-free SDK reference. We hypothesize that (H1) schema validity and task quality are separable, (H2) structured-output binding paths are heterogeneous under a shared model and lowest-common-denominator contract, and (H3) condition-by-task interactions concentrate failures rather than shifting all tasks equally. Confirmatory analysis uses distinct task instances (100 extraction and 50 per other task, with three nested replicates) under a frozen analysis plan, yielding a 5400-row primary matrix with equivalence margins and Holm-adjusted contrasts against the SDK reference. In the eligible confirmatory run, overall schema validity was 0.684 and mean automated quality was 0.638. PydanticAI, LangGraph, and DSPy retained near-ceiling schema validity with mean quality 0.91-0.94, while the plain SDK, Agno, and CrewAI conditions were substantially lower in this package and model configuration. Schema-valid rows still produced many task-score flags, especially in extraction and compliance QA, and quality residuals show strong condition-by-task interactions (including a workflow collapse for CrewAI). Labelled ablations address retry budgets and feature-using mechanisms; primary contrasts remain system-configuration findings, not causal attributions to marketed library features.

## Simplicity Goes Far: Auditing Prompt Optimizers with Demonstration-Conditioned Prompt Search

DevFeed: [Simplicity Goes Far: Auditing Prompt Optimizers with Demonstration-Conditioned Prompt Search](<https://devfeed.tech/articles/simplicity-goes-far-auditing-prompt-optimizers-with-demonstration-conditioned-prompt-search-140056.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.22605>)

Author: Bohe Chen

Published: 2026-11-18T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [Enhancing AI model performance](<https://devfeed.tech/topics/enhancing-ai-model-performance.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [prompt](<https://devfeed.tech/topics/prompt.md>), [DSPy](<https://devfeed.tech/topics/dspy.md>), [audit](<https://devfeed.tech/topics/audit.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [auditing](<https://devfeed.tech/tags/auditing.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [classification](<https://devfeed.tech/tags/classification.md>), [classification-accuracy](<https://devfeed.tech/tags/classification-accuracy.md>), [control](<https://devfeed.tech/tags/control.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [generate](<https://devfeed.tech/tags/generate.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [reflection](<https://devfeed.tech/tags/reflection.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [search](<https://devfeed.tech/tags/search.md>), [select](<https://devfeed.tech/tags/select.md>), [selection](<https://devfeed.tech/tags/selection.md>), [structured](<https://devfeed.tech/tags/structured.md>), [systems](<https://devfeed.tech/tags/systems.md>), [token-usage](<https://devfeed.tech/tags/token-usage.md>)

### AI overview

Demonstration-Conditioned Prompt Search (DCPS) isolates prompt generation and candidate selection from heavier optimizer mechanisms. It freezes the generator, conditions proposals on randomly sampled demonstrations, scores them on validation data, and retains the best candidate, without learned updates, reflection, or evolution. In StablePrompt, DCPS matches PPO classification accuracy within 0.5 percentage points at roughly one-third the measured cost. In DSPy-based systems on GPT-4.1-mini, it matches GEPA's macro accuracy under the reported budgets with 55% fewer rollouts and 32% lower average measured API cost. Results vary by task: proposal and selection recover much of heavier methods' performance on structured and instruction-following tasks, while added mechanisms retain advantages on some open-ended and reasoning-heavy tasks. The authors recommend comparing optimizers with generate-and-select controls and reporting rollouts, token use, and dollar costs alongside accuracy.

### Source excerpt

arXiv:2611.22605v1 Announce Type: new Abstract: Automatic prompt optimization is growing more elaborate. Recent methods stack policy-gradient updates, trace reflection, and evolutionary search. These methods share a generate-and-select step; without controlling for it, reported gains may conflate the contributions of optimizer mechanisms and larger sampling budgets. We isolate this step as Demonstration-Conditioned Prompt Search (DCPS), repurposing the Automatic Prompt Engineer (APE) recipe as a mechanism-attribution control: it freezes the generator, conditions it on randomly sampled demonstrations, scores candidates on validation data, and keeps the best---no learned update, reflection, or evolution. Across two optimizer families, DCPS replaces Proximal Policy Optimization (PPO) in StablePrompt, matching classification accuracy within 0.5 pp at roughly one-third the measured cost; in DSPy-based compound AI systems, under the reported budgets, it matches GEPA's macro accuracy on GPT-4.1-mini while using 55% fewer rollouts at 32% lower measured API cost on average. The audit reveals a task-dependent pattern: proposal and selection recover much of heavier optimizers' performance on structured and instruction-following tasks, while additional mechanisms retain advantages in some open-ended and reasoning-heavy settings. We recommend benchmarking prompt optimizers against generate-and-select controls and reporting rollout counts, token usage, and dollar costs alongside accuracy. Code and artifacts: https://github.com/bhc6/DCPS.

## Cmpnd Releases dspy-wsp: Weight-Space Programming Comes to DSPy

DevFeed: [Cmpnd Releases dspy-wsp: Weight-Space Programming Comes to DSPy](<https://devfeed.tech/articles/cmpnd-releases-dspy-wsp-weight-space-programming-comes-to-dspy-134130.md>)

Original publisher: [Read original article](<https://www.marktechpost.com/2026/11/14/cmpnd-dspy-wsp-weight-space-programming/>)

Author: Asif Razzaq

Published: 2026-11-14T16:45:48Z

Content type: release

Language: en

Sources: [MarkTechPost](<https://devfeed.tech/sources/marktechpost.md>)

Topics: [DSPy](<https://devfeed.tech/topics/dspy.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [releases](<https://devfeed.tech/topics/releases.md>)

Tags: [agentic-ai](<https://devfeed.tech/tags/agentic-ai.md>), [ai-infrastructure](<https://devfeed.tech/tags/ai-infrastructure.md>), [ai-shorts](<https://devfeed.tech/tags/ai-shorts.md>), [apple-silicon](<https://devfeed.tech/tags/apple-silicon.md>), [applications](<https://devfeed.tech/tags/applications.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [astra](<https://devfeed.tech/tags/astra.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [d1-2b](<https://devfeed.tech/tags/d1-2b.md>), [decision-models](<https://devfeed.tech/tags/decision-models.md>), [deep-learning](<https://devfeed.tech/tags/deep-learning.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [editors-pick](<https://devfeed.tech/tags/editors-pick.md>), [for-devs](<https://devfeed.tech/tags/for-devs.md>), [language-model](<https://devfeed.tech/tags/language-model.md>), [llm](<https://devfeed.tech/tags/llm.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [new-releases](<https://devfeed.tech/tags/new-releases.md>), [python](<https://devfeed.tech/tags/python.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [staff](<https://devfeed.tech/tags/staff.md>), [tech-news](<https://devfeed.tech/tags/tech-news.md>), [technology](<https://devfeed.tech/tags/technology.md>), [weight-space-programming](<https://devfeed.tech/tags/weight-space-programming.md>)

### AI overview

dspy-wsp is an experimental DSPy optimizer that lets a frontier LLM inspect and patch a smaller model's weights in a sandbox, using bounded forward passes rather than gradient training. Its writer practices on training examples, can score edits without seeing holdout examples, and is evaluated once on a hidden validation set; runs save a reproducible patch. On Typed Decisions, WeightSpace alone improved tested models by 1.9-16.1 points, while combining it with Cmpnd's ReAnchor produced gains up to 20.0 points; the strongest reported result was d1-omni-600M rising from 50.9% to 69.1%. Results depend on the writer model: GPT-6.1-Sol was weaker or negative on some models compared with GPT-6-Astra. Under the original paper's stricter rule, the 600M model gained only 2.8 points, and the 9B Clef-Flash gained just 1.9 from WeightSpace alone. A 25-pass run cost about $5-$10 and took 78-167 minutes. The package is explicitly a prototype.

### Source excerpt

Cmpnd released dspy-wsp, a prototype DSPy optimizer for weight-space programming. A frontier LLM reads a small model's weights, edits them in a sandbox, and tests each change, with no gradients and about $5 to $10 per run. The post Cmpnd Releases dspy-wsp: Weight-Space Programming Comes to DSPy appeared first on MarkTechPost.

## Structured Prompts Improve Evaluation of Language Models

DevFeed: [Structured Prompts Improve Evaluation of Language Models](<https://devfeed.tech/articles/structured-prompts-improve-evaluation-of-language-models-116652.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2511.20836>)

Author: Asad Aali, Muhammad Ahmed Mohsin, Vasiliki Bikia, Arnav Singhvi, Richard Gaus, Suhana Bedi, Hejie Cui, Miguel Fuentes, Alyssa Unell, Yifan Mai, Jordan Cahoon, Michael Pfeffer, Roxana Daneshjou, Sanmi

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [DSPy](<https://devfeed.tech/topics/dspy.md>), [Chain-of-thought](<https://devfeed.tech/topics/chain-of-thought.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [advanced](<https://devfeed.tech/tags/advanced.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [can](<https://devfeed.tech/tags/can.md>), [chain-of-thought](<https://devfeed.tech/tags/chain-of-thought.md>), [choice](<https://devfeed.tech/tags/choice.md>), [comparisons](<https://devfeed.tech/tags/comparisons.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [declarative](<https://devfeed.tech/tags/declarative.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [language](<https://devfeed.tech/tags/language.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [models](<https://devfeed.tech/tags/models.md>), [structured](<https://devfeed.tech/tags/structured.md>)

### AI overview

In a reproducible DSPy+HELM study, structured prompting raised performance by 6% on average and shifted model rankings on five of seven benchmarks, showing that static-prompt scores can reflect prompt choice as well as model capability. The study compared five prompting methods across four frontier and two open-source language models. Chain-of-thought had the strongest cost-performance tradeoff; more advanced optimizers added smaller gains. The authors report open-sourcing the evaluation integration and prompt optimization pipeline.

### Source excerpt

arXiv:2511.20836v4 Announce Type: replace-cross Abstract: As language models (LMs) are increasingly adopted across domains, high-quality benchmarking frameworks are essential for guiding deployment decisions. However, frameworks such as Holistic Evaluation of Language Models (HELM) typically evaluate models under a single static prompt configuration, even though model behavior depends strongly on prompt choice. As a result, reported scores can reflect prompt choice as much as model capability. Declarative prompting frameworks, such as DSPy, offer a scalable way to operationalize this evaluation protocol by evaluating models under structured prompting strategies rather than static prompts. Here, we conduct a reproducible DSPy+HELM benchmarking study and quantify how prompt choice impacts benchmark outcomes. Using five prompting methods, we evaluate four frontier and two open-source LMs across seven benchmarks against HELM baseline scores and find that prompt choice can materially impact leaderboards. Structured prompting improves performance (by 6% on average), alters comparisons (leaderboard rankings shift on $5/7$ benchmarks); chain-of-thought provides the strongest cost-performance tradeoff while more advanced optimizers offer smaller additional gains. Beyond the known intuition that prompts affect outputs, our benchmarking study integrates structured prompting into an established evaluation framework and quantifies how prompt choice alone impacts leaderboards. We open-source (i) DSPy+HELM Evaluation (https://github.com/stanford-crfm/helm/pull/3893) and (ii) Prompt Optimization Pipeline (https://github.com/StanfordMIMI/dspy-helm).

## The Real Python Podcast - Episode #306: Programmatically Developing LLM Prompts With DSPy

DevFeed: [The Real Python Podcast - Episode #306: Programmatically Developing LLM Prompts With DSPy](<https://devfeed.tech/articles/the-real-python-podcast-episode-306-programmatically-developing-llm-prompts-with-dspy-4390.md>)

Original publisher: [Read original article](<https://realpython.com/podcasts/rpp/306/>)

Author: Real Python

Published: 2026-08-07T12:00:00Z

Content type: article

Language: en

Sources: [Real Python](<https://devfeed.tech/sources/real-python.md>)

Topics: [DSPy](<https://devfeed.tech/topics/dspy.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Python](<https://devfeed.tech/topics/python.md>), [llamaindex](<https://devfeed.tech/topics/llamaindex.md>)

Tags: [dspy](<https://devfeed.tech/tags/dspy.md>), [llamaindex](<https://devfeed.tech/tags/llamaindex.md>), [llm](<https://devfeed.tech/tags/llm.md>), [podcast](<https://devfeed.tech/tags/podcast.md>), [programming](<https://devfeed.tech/tags/programming.md>), [prompt-engineering](<https://devfeed.tech/tags/prompt-engineering.md>), [python](<https://devfeed.tech/tags/python.md>), [rag](<https://devfeed.tech/tags/rag.md>)

### AI overview

This podcast episode explains how DSPy programmatically develops and optimizes prompts for LLM applications. It covers declarative signatures, prompt compilation and tuning, and the limitations of manual prompt engineering. The episode also highlights a course on using LlamaIndex for RAG in Python.

### Source excerpt

How can you move from manually writing prompts for an LLM application toward defining them programmatically? This week on the show, Brett Kennedy returns to discuss his new book "Building LLM Applications with DSPy."

## How we used DSPy to turn AI evaluations into better responses in Dash chat

DevFeed: [How we used DSPy to turn AI evaluations into better responses in Dash chat](<https://devfeed.tech/articles/how-we-used-dspy-to-turn-ai-evaluations-into-better-responses-in-dash-chat-177.md>)

Original publisher: [Read original article](<https://dropbox.tech/machine-learning/how-we-turned-ai-evaluations-into-better-responses-in-dash-chat>)

Author: Yasmin McDowell,Lawrence Good,Ilya Yakovlev,Andrew Cheung,Binoy Dash,Simran Jumani,Dmitriy Meyerzon

Published: 2026-06-25T16:30:00Z

Content type: article

Language: en

Sources: [Dropbox Tech Blog](<https://devfeed.tech/sources/dropbox-tech-blog.md>)

Topics: [DSPy](<https://devfeed.tech/topics/dspy.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Optimization](<https://devfeed.tech/topics/optimization.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [dash](<https://devfeed.tech/tags/dash.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [llm](<https://devfeed.tech/tags/llm.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [responses](<https://devfeed.tech/tags/responses.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

Dropbox describes using DSPy and evaluation feedback to improve Dash chat. Human-labeled examples calibrate LLM judges, whose scalable signals then optimize the chat agent's system prompt, reducing incomplete answers and token usage without compromising answer quality.

### Source excerpt

We used DSPy to improve LLM judges and optimize our chat experience, creating an evaluation-driven feedback loop that produced better outputs.

## AI Engineering Primer

DevFeed: [AI Engineering Primer](<https://devfeed.tech/articles/ai-engineering-primer-33448.md>)

Original publisher: [Read original article](<https://timkellogg.me/blog/2024/12/19/ai-primer>)

Published: 2024-12-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tim Kellogg](<https://devfeed.tech/sources/tim-kellogg.md>)

Topics: [AI Engineering](<https://devfeed.tech/topics/ai-engineering.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [DSPy](<https://devfeed.tech/topics/dspy.md>)

Tags: [advice](<https://devfeed.tech/tags/advice.md>), [ai-engineer](<https://devfeed.tech/tags/ai-engineer.md>), [ai-engineering](<https://devfeed.tech/tags/ai-engineering.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [learning](<https://devfeed.tech/tags/learning.md>), [llms](<https://devfeed.tech/tags/llms.md>), [prompt-optimization](<https://devfeed.tech/tags/prompt-optimization.md>)

### AI overview

A primer on getting up to speed with AI engineering. It discusses the field's rapid evolution and advises readers to be cautious with LangChain tutorials, prompt influencers, and blindly applying traditional machine-learning advice. It mentions alternatives including hand-written code, LlamaIndex, DSPy, Gradio, and vendor SDKs.

### Source excerpt

How do you get up to speed with AI engineering? Unfortunately, I don't know of any good consolidated resources, so I'm going to attempt to make one here. My first attempt at this focused more on what an AI engineer is and made only a feeble attempt at providing resources to get started. Let's go!

## DSPy vs LangChain: A Comprehensive Framework Comparison

DevFeed: [DSPy vs LangChain: A Comprehensive Framework Comparison](<https://devfeed.tech/articles/dspy-vs-langchain-a-comprehensive-framework-comparison-46649.md>)

Original publisher: [Read original article](<https://qdrant.tech/blog/dspy-vs-langchain/>)

Author: info@qdrant.tech (Andrey Vasnetsov)

Published: 2024-02-23T11:00:00Z

Content type: article

Language: en

Sources: [Qdrant Blog on Qdrant - Vector Search Engine](<https://devfeed.tech/sources/qdrant-blog-on-qdrant-vector-search-engine.md>)

Topics: [DSPy](<https://devfeed.tech/topics/dspy.md>), [LangChain](<https://devfeed.tech/topics/langchain.md>), [AI Development](<https://devfeed.tech/topics/ai-development.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [Prompt Engineering](<https://devfeed.tech/topics/prompt-engineering.md>), [Qdrant](<https://devfeed.tech/topics/qdrant.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-applications](<https://devfeed.tech/tags/ai-applications.md>), [ai-frameworks](<https://devfeed.tech/tags/ai-frameworks.md>), [chatbots](<https://devfeed.tech/tags/chatbots.md>), [dspy](<https://devfeed.tech/tags/dspy.md>), [langchain](<https://devfeed.tech/tags/langchain.md>), [llms](<https://devfeed.tech/tags/llms.md>), [qdrant](<https://devfeed.tech/tags/qdrant.md>), [rag](<https://devfeed.tech/tags/rag.md>), [rag-applications](<https://devfeed.tech/tags/rag-applications.md>), [vector-search](<https://devfeed.tech/tags/vector-search.md>)

### AI overview

This article compares DSPy and LangChain for building AI applications with large language models, vector search, and multi-stage reasoning workflows. It explains LangChain's integrations and DSPy's automated optimization of prompts and model weights.

### Source excerpt

The Evolving Landscape of AI Frameworks As Large Language Models (LLMs) and vector stores have become steadily more powerful, a new generation of frameworks has appeared which can streamline the development of AI applications by leveraging LLMs and vector search technology. These frameworks simplify the process of building everything from Retrieval Augmented Generation (RAG) applications to complex chatbots with advanced conversational abilities, and even sophisticated reasoning-driven AI applications. The most well-known of these frameworks is possibly LangChain. Launched in October 2022 as an open-source project by Harrison Chase, the project quickly gained popularity, attracting contributions from hundreds of developers on GitHub. LangChain excels in its broad support for documents, data sources, and APIs. This, along with seamless integration with vector stores like Qdrant and the ability to chain multiple LLMs, has allowed developers to build complex AI applications without reinventing the wheel.