8 ms·
If DSPy is so great, why isn't anyone using it?
- sbpayne 7mo agoI consistently hear great things from Dspy users. At the same time, it feels like adoption is always low. Stranger still: it seems like every company I have worked with ends up building a half-baked version of Dspy.
- CuriouslyC 7mo agoTwo issues: 1. People don't want to switch frameworks, even though you can pull prompts generated by DSPy and use them elsewhere, it feels weird. 2. You need to do some up-front work to set up some of the optimizers which a lot of people are averse to.
- TheTaytay 7mo agoI tried it in the past, one time “in earnest.” But when I discovered that none of my actual optimized prompts were extractable, I got cold feet and went a different route. The idea of needing to do fully commit to a framework scares me. The idea of having a computer optimize a prompt as a compilation step makes a lot of sense, but treating the underlying output prompt as an opaque blob doesn’t. Some of my use cases were JUST off of the beaten path that dspy was confusing, which didn’t help. And lastly, I felt like committing to dspy meant that I would be shutting the door on any other framework or tool or prompting approach down the road. I think I might have just misunderstood how to use it.
- sbpayne 7mo agoI don't know that you misunderstood. This is one of my biggest gripes with Dspy as well. I think it takes the "prompt is a parameter" concept a bit too far. I highly recommend checking out this community plugin from Maxime, it helps "bridge the gap": https://github.com/dspy-community/dspy-template-adapter https://github.com/dspy-community/dspy-template-adapter
- TheTaytay 7mo agoWoah, that community plugin looks so much closer to what I initially thought (hoped) Dspy was!
- stephantul 7mo agoMannnn, here I thought this was going to be an informative article! But it’s just a commercial for the author’s consulting business.
- sbpayne 7mo agoOops! That's actually out of date from prior template I had. I don't actually consult at the moment :). Removing!
- deleted 7mo ago[deleted]
- halb 7mo agoThe author itself is probably ai-generated. The contact section in the blog is just placeholder values. I think the age of informative articles is gone
- sbpayne 7mo agoThis is definitely a mistake! What contact section are you referring to? The only references to contact I see in this post now are at the end where I linked to my X/LinkedIn profiles but those links look right to me?
- CharlieDigital 7mo agoI work with author; author is definitely not AI generated.
- QuadmasterXLII 7mo agoIf you find yourself adding a database because thats less painful than regular deployments from your version control, something is hair on fire levels of wrong with your CICD setup.
- sbpayne 7mo agoI think this misunderstands the need for iteration! Maybe I could have written it more clearly :). The reality is that you don't want to re-deploy for every prompt change, especially early on. You want to get a really tight feedback loop. If prompt change requires a re-deploy, that is usually too slow. You don't have to use a database to solve this, but it's pretty common to see in my experience.
- ijk 7mo agoI've been reaching for BAML when I really need prompt iteration at speed.
- tinyhouse 7mo agoA lot of these ideas Dspy and RLM (from the same people IIRC) are more marketing than solving a real problem.
- sbpayne 7mo agoThis is a surprising take to me! Would love to learn more about what you mean. I feel like the problems they solve seem so direct to me. For example: RLMs are an approach to long context problems. Not every problem is a good fit for RLMs for sure, but I can see some problems where I imagine it would work well!
- memothon 7mo agoI think the real problem with using DSPy is that many of the problems people are trying to solve with LLMs (agents, chat) don't have an obvious path to evaluate. You have to really think carefully on how to build up a training and evaluation dataset that you can throw to DSPy to get it to optimize. This takes a ton of upfront work and careful thinking. As soon as you move the goalposts of what you're trying to achieve you also have to update the training and evaluation dataset to cover that new use case. This can actually get in the way of moving fast. Often teams are not trying to optimize their prompts but even trying to figure out what the set of questions and right answers should be!
- sbpayne 7mo agoYeah, I think Dspy often does not really show it's benefit until you have a good 'automated metric', which can be difficult to get to. I think the unfortunate part is: the way it encourages you to structure your code is good for other reasons that might not be an 'acute' pain. And over time, it seems inevitable you'll end up building something that looks like it.
- memothon 7mo agoYeah I agree with this. I will try to use it in earnest on my next project. That metric is the key piece. I don't know the right way to build an automated metric for a lot of the systems I want to build that will stand the test of time.
- sbpayne 7mo agoTo be clear: I don't know that I would recommend using it, exactly. I would just make sure you understand the lessons so you see how it best makes sense to apply to your project :)
- Eridrus 7mo agoHow are people building anything without evals? Maybe I spent too much time in the ML mines, but it is somewhat inconceivable to iterate on a tricky problem without a eval set.
- dzonga 7mo agoat /u/ sbpyane - very useful info and pricing page as well. useful for upcoming consultants to learn how to price services too.
- sbpayne 7mo agoHighly recommend following @jxnl on X for consulting / positioning / pricing
- jee599 7mo ago[dead]
- simopa 7mo ago"Great engineers write bad AI code" made my day ;)
- sbpayne 7mo agohahaha this has just been my entire last few years of experience :)
- brokensegue 7mo agoi've tried it a few times and it's never really helped as much as i expected. though i know they've released a couple times since I last tried it.
- sbpayne 7mo agoyeah what I'm trying to get across here is that: Dspy does not solve an immediate problem, which is why many feel this way and consequently why it doesn't have great adoption! But on the other hand, I think people unintentionally end up re-implementing a lot of Dspy.
- jatins 7mo agoWould have been nice if the post actually showed how Dspy does the things that were handrolled
- sbpayne 7mo agoThis is great feedback! I'll work on an update tonight :)
- pjmlp 7mo agoNever heard of it, that is already a reason.
- sbpayne 7mo agohahaha this is true!
- ndr 7mo agoIt's not as ergonomic as they made it to be. The fact that you have to bundle input+output signatures and everything is dynamically typed (sometimes into the args) just make it annoying to use in codebases that have type annotations everywhere. Plus their out of the box agent loop has been a joke for the longest time, and writing your own if feasible but it's night and day when trying to get something done with pydantic-ai. Too bad because it has a lot of nice things, I wish it were more popular.
- sbpayne 7mo agoYeah! I can agree with this. There's some improved ergonomics to get here
- verdverm 7mo agoHave you looked at ADK? How does it compare? Does it even fit in the same place as Dspy? https://google.github.io/adk-docs/ https://google.github.io/adk-docs/ Disclaimer, I use ADK, haven't really looked at Dspy (though I have prior heard of it). ADK certainly addresses all of the points you have in the post.
- sbpayne 7mo agoI personally haven't looked super closely at ADK. But I would love if someone more knowledgeable could do a sort of comparison. I imagine there are a lot of similar/shared ideas!
- verdverm 7mo agoThere are dozens if not 100s of agent frameworks in use today, 1000s if you peruse /new. I'm curious what features will make for longevity. One thing about ADK is that it comes in four languages (Py, TS, Go, Java; so far), which means understanding can transfer over/between teams in larger orgs, and they can share the same backing services (like the db to persist sessions).
- villgax 7mo agoNobody uses it except for maybe the weaviate developer advocates running those jupyter cells.
- nkozyra 7mo ago> f"Extract the company name from: {text}" I think one thing that's lost in all of the LLM tooling is that it's LLM-or-nothing and people have lost knowledge of other ML approaches that actually work just fine, like entity recognition. I understand it's easier to just throw every problem at an LLM but there are things where off-the-shelf ML/NLP products work just as well without the latency or expense.
- sbpayne 7mo agoOh 100%! There are many problems (including this one!) that probably aren't best suited for an LLM. I was just trying to pick a really simple example that most people would follow.
- rao-v 7mo agoIs there a non-tranformer based entity extraction solution that's not brittle? My understanding is that the cutting edge in entity extraction (e.g. spaCy) is just small BERT models, which rock for certain things, but don't have the world knowledge to handle typos / misspellings etc.
- roadside_picnic 7mo ago> like entity recognition As someone who has done traditional NLP work as at least part of my job for the last 15 years, LLMs do ofter a vastly superior NER solution over any previous NLP options. I agree with your overall statement, that frequently people rush to grab an LLM when superior options already exist (classification is a big example, especially when the power of embeddings can be leveraged), but NER is absolutely a case where LLMs are the superior option (unless you have latency/cost requirements to force you to choose and inferior quality as the trade off, but your default should be an LLM today).
- mark_l_watson 7mo agoI agree! I used 'symbolic AI' for NLP starting in the early 1980s. Everything back then was so brittle, and very labor intensive.
- 7mo ago
- ijk 7mo agoThis matches my experience with Dspy. I ended up removing it from our production codebase because, at the time, it didn't quite work as effectively as just using Pydantic and so forth. The real killer feature is the prompt compilation; it's also the hardest to get to an effective place and I frequently found myself needing more control over the context than it would allow. This was a while ago, so things may have improved. But good evals are hard and the really fancy algorithms will burn a lot of tokens to optimize your prompts.
- sbpayne 7mo agoYes! I have also felt this. I highly recommend taking a look at Maxime's template adapter: https://github.com/dspy-community/dspy-template-adapter https://github.com/dspy-community/dspy-template-adapter I think it solves some of this friction!
- deaux 7mo agoI don't see it at all. > Typed I/O for every LLM call. Use Pydantic. Define what goes in and out. Sure, not related to DSPy though, and completely tablestakes. Also not sure why the whole article assumes the only language in the world is Python. > Separate prompts from code. Forces you to think about prompts as distinct things. There's really no reason prompts must live in a file with a .md or .json or .txt extension rather than .py/.ts/.go/.., except if you indeed work at a company that decided it's a good idea to let random people change prod runtime behavior. If someone can think of a scenario where this is actually a good idea, feel free to elighten me. I don't see how it's any more advisable than editing code in prod while it's running. > Composable units. Every LLM call should be testable, mockable, chainable. > Abstract model calls. Make swapping GPT-4 for Claude a one-line change. And LiteLLM or `ai` (Vercel), the actually most used packages, aren't? You're comparing downloads with Langchain, probably the worst package to gain popularity of the last decade. It was just first to market, then after a short while most realized it's horrifically architected, and now it's just coasting on former name recognition while everyone who needs to get shit done uses something lighter like the above two. > Eval infrastructure early. Day one. How will you know if a change helped? Sure, to an extent. Outside of programming, most things where LLMs deliver actual value are very nondeterministic with no right answer. That's exactly what they offer. Plenty of which an LLM can't judge the quality of. Having basic evals is useful, but you can quickly run into their development taking more time than it's worth. But above all.. the comments on this post immediately make clear that the biggest differentiator of DSPy is the prompt optimization. Yet this article doesn't mention that at all? Weird.
- andyg_blog 7mo ago>the whole article assumes the only language in the world is Python. This was my take as well. My company recently started using Dspy, but you know what? We had to stand up an entire new repo in Python for it, because the vast majority of our code is not Python.
- sbpayne 7mo agoI think this is an important point! I am actually a big fan of doing what works in the language(s) you're already using. For example: I don't use Dspy at work! And I'm working in a primarily dotnet stack, so we definitely don't use Dspy... But still, I see the same patterns seeping through that I think are important to understand. And then there's a question of "how do we implement these patterns idiomatically and ergonomically in our codebase/langugage?"
- tilt 7mo agoCurious what you think of https://github.com/pipevals/pipevals https://github.com/pipevals/pipevals (author)
- sbpayne 7mo agoI have never heard of this! I took a quick look. I think I'm definitely not in the right audience for a tool like this, as I am more comfortable just writing code. But I think putting a UI over things like this _forces_ the underlying system to be more declarative... So in practice I imagine you get at a lot of the same ideas / benefits!
- lysecret 7mo agoMain reason to me is that its layers on layer on top of the base LLM calls with not so much to show for it. Also a lot of native features (like for examples geminis native structured responses) aren't well supported.
- LoganDark 7mo agoThis article seemingly misses any explanation of what DSPy even is or why it's supposedly so complicated and unfamiliar. Supposedly it solves the problems illustrated in the article, but it isn't explained how.
- sbpayne 7mo agoGreat feedback! I took for granted that people reading would be familiar with what Dspy is. I'll try to add this in tonight to introduce folks better. Thank you!
- markab21 7mo agoI think the entire premise that the prompting is the surface area for optimizing the application is fundamentally the wrong framing, in the same way that in 1998 better cpam will save CGI. It's solving the wrong problems now, and the limitations in context and model intelligence require a tool like Dspy. The only thing I'd grab dspy for at this point is to automate the edges of the agentic pipeline that could be improved with RL patterns. But if that is true, you're really shorting yourself by giving your domain DSPY. You should be building your own RL learning loops. My experience: If you find yourself reaching for a tool like Dspy, you might be sitting on a scenario where reinforcement learning approaches would help even further up the stack than your prompts, and you're probably missing where the real optimization win is. (Think bigger)
- sbpayne 7mo agoYeah, I find it hard to recommend Dspy. At the same time, I can't escape the observation that many companies are re-implementing a lot of parts of it. So I think it's important to at least learn from what Dspy is :)
- panelcu 7mo agohttps://www.tensorzero.com/docs https://www.tensorzero.com/docs has similar abstractions but doesn't require Python and doesn't require committing to the framework or a language. It's also pretty hard to onboard, but solves the same problems better and makes evaluating changes to models / prompts much easier to reason about.
- sbpayne 7mo agoI saw this some time ago! I personally have a distaste for external DSLs as I think it generally introduces complexity that I don't think is actually worthwhile, so I skipped over it. Also why I'm very "meh" on BAML.
- GabrielBianconi 7mo agoTensorZero works with the OpenAI SDK out of the box: ``` from openai import OpenAI # Point the client to the TensorZero Gateway client = OpenAI(base_url="http://localhost:3000/openai/v1", api_key="not-used") response = client.chat.completions.create( # Call any model provider (or TensorZero function) model="tensorzero::model_name::anthropic::claude-sonnet-4-6", messages=[ { "role": "user", "content": "Share a fun fact about TensorZero.", } ], ) ``` You can layer additional features only as needed (fallbacks, templates, A/B testing, etc).
- TheTaytay 7mo agoYes, I was more impressed with their decoupling of prompts from parameters!
- Lerc 7mo agoIf [programming_language] is so great, why isn't anyone using it? For many of the same reasons. A plethora of alteratives, personal preference, weird ideology, appropriateness for the task, inertia, not-invented-here. The list goes on.
- leontloveless 7mo ago[dead]
- leontloveless 7mo ago[dead]
- CraftingLinks 7mo agoI used dspy in production, then reverted the bloat as it literally gave me nothing of added value in practice but a lot of friction when i needed precise control over the context. Avoid!
- matusp 7mo agoI enjoy working with it. I mostly just use it to define the input and outputs more programmatically compared to raw prompts.
- maxothex 7mo ago[dead]
- TZubiri 7mo ago>"Stage 2: “Can we tweak the prompt without deploying?” Are we playing philosophy here? If you move some part of the code from the repo and into a database, then changing that database is still part of the deployment, but now you just made your versioning have identity crisis. Just put your prompts in your git repo and say no when someone requests an anti-pattern be implemented.
- sbpayne 7mo agoI think the core challenge here is that being able to (in "development") quickly change the prompt or other parameters and re-run the system to see how it changes is really valuable for making a tight iteration loop. It's annoying/difficult in practice if this is strictly in code. I don't think a database is necessarily the way to go, but it's just a common pattern I see. And I really strongly believe this is more of a need for a "development time override" than the primary way to deploy to production, to be clear.
- TZubiri 7mo ago>I think the core challenge here is that being able to (in "development") quickly change the prompt or other parameters and re-run the system to see how it changes is really valuable for making a tight iteration loop Sure, do that, but also you are deploying changes to your system, you can't just move the changed module out of the repo and pretend it's not a change. >It's annoying/difficult in practice if this is strictly in code. I don't think a database is necessarily the way to go, but it's just a common pattern I see. And I really strongly believe this is more of a need for a "development time override" than the primary way to deploy to production, to be clear. Or a file, if you just put the prompt in a file (instead of overengineering a dspy thing, just use a file with text), then the file is now part of the source code, if you take it out of the repo, it doesn't stop being source code, it's now unversioned source code.
- deepsquirrelnet 7mo agoGood article, and I think the "evolution of every AI system" is spot on. In my opinion, the reason people don't use DSPy is because DSPy aims to be a machine learning platform. And like the article says -- this feels different or hard to people who are not used to engineering with probabilistic outputs. But these days, many more people are programming with probability machines than ever before. The absolute biggest time sink and 'here be dragons' of using LLMs is poke and hope prompt "engineering" without proper evaluation metrics. > You don’t have to use DSPy. But you should build like someone who understands why it exists. And this is the salient point, and I think it's very well stated. It's not about the framework per se, but about the methodology.
- sbpayne 7mo agoyeah this is the main point I wanted to get across! I rarely recommend people to use Dspy; but I think Dspy is often so polarizing that people "throw out the baby with the bathwater". They decide not to use Dspy, but also don't learn from the great ideas it has!
- sethkim 7mo agoWe build a product that's somewhat similar in spirit to DSPy, but people come to us for different reasons than the OP listed here. 1) It's slow: you first have to get acquainted with DSPY and then get hand-labeled data for prompt optimization. This can be a slow process so it's important to just label cases that are ambiguous, not obvious. 2) They know that manual prompt engineering is brittle, and want a prompt that's optimized and robust against a model they're invoking, which DSPy offers. However, it's really the optimizer (ex. GEPA) doing the heavy-lifting. 3) They don't actually want a model or prompt at all. They want a task completed, reliably, and they want that task to not regress in performance. Ideally, the task keeps improving in production. Curious if folks in this thread feel more of these pains than the ones in the article.
- msp26 7mo ago> Data extraction tasks are amongst the easiest to evaluate because there’s a known “right” answer. Wrong. There can be a lot of subjectivity and pretending that some golden answer exists does more harm and narrows down the scope of what you can build. My other main problem with data extraction tasks and why I'm not satisfied with any of the existing eval tools is that the schemas I write change can drastically as my understanding of the problem increases. And nothing really seems to handle that well, I mostly just resort to reading diffs of what happens when I change something and reading the input/output data very closely. Marimo is fantastic for anything visual like this btw. Also there is a difference between: the problem in reality → the business model → your db/application schema → the schema you send to the LLM. And to actually improve your schema/prompt you have to be mindful of the entire problem stack and how you might separate things that are handled through post processing rather than by the LLM directly. > Abstract model calls. Make swapping GPT-4 for Claude a one-line change. And in practice random limitations like structured output API schema limits between providers can make this non-trivial. God I hate the Gemini API.
- rco8786 7mo agoI think they're just saying that data extraction tasks are easy to evaluate because for a given input text/file you can specify the exact structured output you expect from it.
- sbpayne 7mo agoThis is very true! I could have been more careful/precise in how I worded this. I was really trying to just get across that it's in a sense easier than some tasks that can be much more open ended. I'll think about how to word this better, thanks for the feedback!
- sethkim 7mo agoThis is extremely true. In fact, from what we see many/most of the problems to be solved with LLMs do not have ground-truth values; even hand-labeled data tends to be mostly subjective.
- giorgioz 7mo agoLoved the article because I exactly hit the stages all up till the 5th! Thank you for making me see the whole picture and journey! I think a problem to DSPy is that they don't know the concept of THE WHOLE PRODUCT: https://en.wikipedia.org/wiki/Whole_product https://en.wikipedia.org/wiki/Whole_product Look at https://mastra.ai/ https://mastra.ai/ and https://www.copilotkit.ai/ https://www.copilotkit.ai/ to see how more inviting their pages look. A company is not selling only the product itself but all the other things around the product = THE WHOLE PRODUCT A similar concept in developer tools is the docs are the product Also I'm a fullstack javascript engineer and I don't use Python. Docs usually have a switch for the language at the top. Stripe.com is famous for it's docs and Developer Experience: https://docs.stripe.com/search#examples https://docs.stripe.com/search#examples It's great to study other great products to get inspiration and copy the best traits that are relevant to your product as well.
- sbpayne 7mo agoThe "whole product" idea here makes a lot of sense to me. I think this is often a big barrier to adoption for sure!
- _andrei_ 7mo agoAlmost all the points are not about what DSPy is mainly supposed to offer. What's supposedly great at is automatic optimization, for everything else... who the hell puts Python in production just to make some API calls? There are "frameworks" available in all the better languages, but the constructs behind are not that complicated. And why does DSPy even try to compete with LangChain/Graph/crap?
- sbpayne 7mo agoI think automatic optimization is valuable, but it's not what Dspy "is"; you can see this consistently through @lateinteraction's tweets. And hopefully it's clear enough from the post: I'm not necessarily suggesting people use Dspy, just that there are important lessons to take with you, even if you don't use it :)
- aplomb1026 7mo ago[dead]
- AIorNot 7mo agoI kind of like BAML https://boundaryml.com/ https://boundaryml.com/ been using it in production Edit, read the article -its really good- that cycle of AI engineering progression is spot on -read the article too!
- whinvik 7mo agoI don't get it. All these are provided by many different agent libs like langgraph, Pydantic AI etc. I thought DSPy was for prompt optimization but I could never wrap my head around that aspect since like Langchain, DSPy seems to hide stuff a bit too much. So this article seems surprising since it emphasizes more the non prompt optimization aspects. If that was the selling point I would rather use something like Pydantic AI when I already use Pydantic for so much of the rest.
- sbpayne 7mo agoI think the reality is that prompt optimization is one of the only "legible benefits" (ie easy to understand why its valuable). But I think it misses the point of what Dspy "is". It's less that Dspy is about prompt optimization and more that, Dspy encourages you to design your systems in a way that better _enables_ optimization. You can apply the same principles without Dspy too :)
- tcdent 7mo agoDSPy is cool from an integrated perspective but as someone who extensively develops agents, there have been two phases to the workflow that prevented me from adopting it: 1. Up until about six months ago, modifying prompts by hand and incorporating terminology with very specific intent and observing edge cases and essentially directing the LLM in a direction to the intended outcome was somewhat meticulous and also somewhat tricky. This is what the industry was commonly referring to as prompt engineering. 2. With the current state of SOTA models like Opus 4.6, the agent that is developing my applications alongside of me often has a more intelligent and/or generalized view of the system that we're creating. We've reached a point in the industry where smaller models can accomplish tasks that were reserved for only the largest models. And now that we use the most intelligent models to create those systems, the feedback loop which was patterned by DSPy has essentially become adopted as part of my development workflow. I can write an agent and a prompt as a first pass using an agentic coder, and then based on the observation of the performance of the agent by my agentic coder, continue to iterate on my prompts until I arrive at satisfactory results. This is further supported by all of the documentation, specifications, data structures, and other I/O aspects of the application that the agent integrates in which the coding agent can take into account when constructing and evaluating agentic systems. So DSPy was certainly onto something but the level of abstraction, at least in my personal use case has, moved up a layer instead of being integrated into the actual system.
- sbpayne 7mo agoI think many people have the same experience! And that's the point I'm trying to make. There are patterns here that are worth adopting, whether or not you're using Dspy :)
- LudwigNagasena 7mo agoThe article starts with the comparison of DSPy and LangChain monthly downloads and then wastes time comparing DSPy to hand-rolling basic infra, which is quite trivial in every barely mature setup. I conjecture that the core value proposition of DSPy is its optimizer? Yet the article doesn't really touch it in any important way. How does it work? How would I integrate it into my production? Is it even worth it for usual use-cases? Adding a retry is not a problem, creating and maintaining an AI control plane is. LangChain provides services for observability, online and offline evaluation, prompt engineering, deployment, you name it.
- sbpayne 7mo agoYou can see many people saying this in the comments :). I personally think this misses the core of what Dspy "is". Dspy encourages you to write your code in a way that better enables optimization, yes (and provides direct abstractions for that). But this isn't in a sense unique to Dspy: you can get these same benefits by applying the right patterns. And they are the patterns I just find people constantly implementing these without realizing it, and think they could benefit from understanding Dspy a bit better to make better implementations :)
- love2read 7mo agoI really enjoyed this blog format. I think it explained the problem well in a way that made it immediately clear why the solution solved the problem when shown DSPy.
- sbpayne 7mo agoThank you! Let me know if anything could be more clear, always something I can improve here I'm sure :)
- Silamoth 7mo agoAm I the only one disappointed this was about some LLM slop and not digital signal processing? DSP is a well-established technical acronym, so I expected to hear about a new Python DSP library. Oh well.
- tech_hutch 7mo agoI read the title as "If DarkSydePhil-y is so great, why isn't anyone using it?"
- alex7o 7mo agoI have used baml before and that worked super well for me multiple times so I don't see a problem with that.
- benh2477 7mo ago[flagged]
- BenGosub 7mo agoAbout one and a half years ago I was an early adopter of DSPy and I had better results (compared to LlamaIndex) with structuring unstructured data just by putting it in DSPy models, before any optimization step whatsoever. Also, IMO DSPy didn't take off because it requires preparing train and test datasets and that takes time and effort. Now with Gepa I expect things are getting very interesting, the optimizations can come just from descriptions. IMO LangGraph is currently used a lot as an agent and RAG framework, DSPy doesn't have the same use case, even though there's overlap. And I think the montly numbers doesn't do justice, because what I see now is a lot of companies doing things wrongly.
- MoonWalk 7mo agoInaccessible: "net::ERR_CERT_AUTHORITY_INVALID" reply
- kristianp 7mo agoThe name probably doesnt help, DSPy sounds like something to do with Digital Signal Processing. Til about GEPA: https://github.com/gepa-ai/gepa https://github.com/gepa-ai/gepa
- Achiyacohen 7mo ago[dead]
- ggamecrazy 7mo agoI love DSPy! But yes, its curse is that it’s native to LLMs and makes the python side awkward and weird. I’m willing to make this prediction: It’s clearly built from first principles and the ideas from it will outlast the framework itself.
- sbpayne 7mo agoAgreed! And I hope that we see the principles emerge in many other frameworks to make all our lives a little bit simpler
- thestack_ai 7mo ago[dead]
- kenmu 7mo agoWell-written article. Does a great job walking through why any robust system will need what DSPy provides. Though there are many libraries and frameworks that will provide the basics, RAG, exponential back-off, etc. DSPy's real value is in its prompt optimization framework, which was barely mentioned. And this has requirements like datasets and specific tasks, which not every project has. This is probably the main reason for its smaller and happier user base than projects like LangChain.