Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. When did Google get so weird? (sancho.bearblog.dev)
    195comments
  2. Ember-1 (fireworks.ai)
    146comments
  3. Lunar Terminator Paradox (secretsauce.net)
    4comments
  4. Alan Kay's answer to "Did the ENIAC have a BIOS"? (quora.com)
    17comments
  5. Show HN: Lofi Cities – Pixel-art city nights with browser-generated lofi (loficities.com)
    46comments
  6. The state of SIMD in Rust in 2026 (shnatsel.github.io)
    16comments
  7. Imp is a full port of DSPy to the BEAM (github.com/deepfates)
    4comments
  8. In an $80 motel room, a discovery to shed light on the origins of life (nytimes.com)
    68comments
  9. Don't couple your Go code to GitHub (iain.rocks)
    43comments
  10. Oral history of John Chowning, inventor of FM synthesis [video] (youtube.com)
    6comments
  11. There is more to code review than (automatable) detection (adaptivecapacitylabs.com)
    7comments
  12. What I did at Recurse Center (thill.me)
    13comments
  13. Replacing the old battery on rechargeable bike lights (jvns.ca)
    63comments
  14. Writing Efficient C++ Code (2013) (asawicki.info)
    73comments
  15. The Cartesian Hand: In-Hand Manipulation with All-Linear Fingers (generalroboticslab.com)
    8comments
  16. Fragment of oldest known peace treaty found in Turkey (livescience.com)
    7comments
  17. Previously unheard recordings of John Coltrane, captured by Frank Tiberi (jazzwise.com)
    12comments
  18. Flip Fluid on Flip Dots (mitxela.com)
    23comments
  19. Show HN: TinyAIArena watch AI agents battle it out (tinyaiarena.com)
    38comments
  20. The Normalization of Inexplicable Failures (ihatethefuture.com)
    88comments
  21. Fakecloud: Local AWS cloud emulator for integration tests (fakecloud.dev)
    48comments
  22. Faster prompt lookup drafting in llama.cpp (jadidbourbaki.github.io)
    9comments
  23. On caring for user data: NeoVim caused Vim undo files to be deleted (aresluna.org)
    291comments
  24. Video CDs Break Windows Explorer (clydesnotes.blogspot.com)
    28comments
  25. KICKI: a DECsystem1060 (icm.museum)
    2comments
  26. Improving site performance by shipping more CSS (github.blog)
    62comments
  27. C's Flexible Integer Sizes Were Not a Design Mistake (pikuma.com)
    110comments
  28. Go Concurrency Distilled (antonz.org)
    166comments
  29. PipePipe: NewPipe hard fork implementing SponsorBlock (github.com/infinityloop1308)
    270comments
  30. PostmarketOS is rebranding as Nura (nura.eco)
    30comments

Betting on DSPy for Systems of LLMs

83 pointsby 2y agoblog.isaacmiller.dev
18 comments
2y agoHN ↗

Could we have a concise and specific explanation how DSPy works?

All I've seen are vague definitions of new terms (ex. signatures) and "trust me this very powerful and will optimize it all for you".

Also, what would a good way to reason between DSPy and TextGrad?

2y agoHN ↗

My understanding is that is tries many variations of the set of few shot examples and prompts and picks the ones that work best as the optimized program.

2y agoHN ↗

Textgrad mainly optimizes the prompt but does not inject few shot examples. Dspy mainly optimizes the few shot examples.

At least that's my understanding from reading the textgrad paper recently.

2y agoHN ↗

The more I’ve looked at DSPy, the less impressed I am. The design of the project is very confusing with non-sensical, convoluted abstractions. And for all the discussion surrounding it, I’ve yet to see someone actually using for something other than a toy example. I’m not sure I’ve even seen someone prove it can do what it claims to in terms of prompt optimization.

It reminds me very much of Langchain in that it feels like a rushed, unnecessary set of abstractions that add more friction than actual benefit, and ultimately boils down to an attempt to stake a claim as a major framework in the still very young stages of LLMs, as opposed to solving an actual problem.

2y agoHN ↗

Agreed 100%. DSPy along with libraries inspired by it (i.e. https://github.com/zou-group/textgrad) are nothing more than fancy prompt chains under the hood.

These libraries mostly exist as "cope" for the fact that we don't have good fine-tuning (i.e. lora) capabilities for ChatGPT et al, so we try to instead optimize the prompt.

2y agoHN ↗

Glad to see others saying this. I haven't looked at it in some months, but I previously realized it's mostly a very complicated way to optimize few-shot learning prompts. It's hardly whatever magical blackbox optimizer they try to market it as.

2y agoHN ↗

My guess is it will be like pascal or smalltalk, an important development for illustrating a concept but is ultimately replaced by something more rigorous

2y agoHN ↗

These libraries mostly exist as "cope"

nothing more than fancy prompt chains under the hood

Some approaches using steering vectors, clever ways of fine-tuning, transfer decoding, some tree search sampling-esque approaches, and others all seem very promising.

DSPy is, yes, ultimately a fancy prompt chain. Even once we integrate some of the other approaches, I don't think it becomes a single-lever problem where we can only change one thing(e.g., fine-tune a model) and that solves all of our problems.

It will likely always be a combination of the few most powerful levers to pull.

2y agoHN ↗

Correct, when I say "ChatGPT et al", I mean closed source paywalled LLMs, open access LLM personalization is an extreme gamechanger. All of what you mentioned is important, and I'm particularly excited about PyReft.

https://github.com/stanfordnlp/pyreft

Anything Christopher Manning touches turns to gold.

2y agoHN ↗

The abstractions could be cleaner. I think some of the convolution is due to the evolution that it has undergone and core contributors have not come around to being fully “out with the old”.

I think there might be practical benefits to it. The XMC example illustrates it for me:

https://github.com/KarelDO/xmc.dspy

2y agoHN ↗

Disclaimer: original blog author

as opposed to solving an actual problem

This was literally the point of the post. No one really knows what the future of LLMs will look like, so DSPy just iteratively changes in the best way it can for your metric (your problem).

someone actually using for something other than a toy example

DSPy, among the problems I listed in the post, has some scalability problems, too, but I am not going to take away from that. There are at least early signs of enterprise adoption from posts like this blog: https://www.databricks.com/blog/optimizing-databricks-llm-pi...

2y agoHN ↗

The magic sauce seems to be, at every turn, "... if you have some well defined metric to optimize on."

And that's not really a given, in reality. It allows all sorts of tricks to do what DSPy is aiming for, which you won't be able to do in real life.

Unless I'm sorely mistaken, but that's my take on the whole thing.

2y agoHN ↗

Whenever i see "ChainOfThought" for AI, it's an annoying and misleading term. Machine never never thinks at all.

2y agoHN ↗

Not to say anything about dspy, but I really liked the take on hvat we should use llms for.

We need to stop doing useless reasoning stuff, and find acttual fitting problems for the llms to solve.

Current llms are not your db manager(if they could be you don't have a db size in the real world). They are not a developer. We have people for that.

Llms prove to be decent creative tools, classificators, and qna answer generators.

2y agoHN ↗

We have translators. Doesn't mean we can't replace them with a cheaper, more accessible tool. That's the whole point of automation.

Reasoning stuff is not useless. They provably(according to benchmarks) improve the performance of coding and math related tasks.

2y agoHN ↗

I had a few problems with DSPy:

* Multi-hop reasoning rarely works with real data in my case. * Impossible to define advanced metrics over the whole dataset. * No async support