News for hackers. Stuff that matters.
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by int_19h on Thursday December 25, 2025 @05:54PM (#46387562)
I'll admit that I haven't looked it in a while, but as originally released, it was a textbook example on how to complicate a fundamentally simple and well-understood task (text templates, basically) with lots of useless abstractions that made it all sound more "enterprise". People would write complicated langchains, but then when you looked under the hood all it was doing is some string concatenation, and the result was actually less readable than a simple template with substitutions in it.
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by gcr on Thursday December 25, 2025 @06:47PM (#46387835)
What do you suggest instead? Handrolled code with “import openai”? BAML?
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by llmslave2 on Thursday December 25, 2025 @11:08PM (#46389147)
Oh gosh, not that legacy "hand rolled code"
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by hhh on Friday December 26, 2025 @03:20AM (#46390272)
yes, in an industry that has rapidly changing features and 7000 of these products that splinter and lose user base so quickly you should write your own orchestration for this stuff. It’s not hard and gives you a very easy path to implementing new features or optimizations.
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by never_inline on Friday December 26, 2025 @08:48AM (#46391937)
Have you heard of `def`?
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by gcr on Friday December 26, 2025 @10:12AM (#46392808)
It was an earnest question. I didn’t intend to be sarcastic.
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by alzoid on Friday December 26, 2025 @11:38AM (#46393633)
I went through evaluating a bunch of frameworks. There was Langchain, AG2, Firebase Gen AI / Vertex / whatever Google eventually lands on, Crew AI, Microsoft's stuff etc.

It was so early in the game none of those frame works are ready. What they do under the hood when I looked wasn't a lot. I just wanted some sort of abstraction over the model apis and the ability to use the native api if the abstraction wasn't good enough. I ended up using Spring AI. Its working well for me at the moment. I dipped into the native APIS when I needed a new feature (web search).

Out of all the others Crew AI was my second choice. All of those frameworks seem parasitic. One your on the platform you are locked in. Some were open source but if you wanted to do anything useful you needed an API key and you could see that features were going to be locked behind some sort of payment.

Honestly I think you could get a lot done with one of the CLI's like Claude Code running in a VM.

Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by never_inline on Friday December 26, 2025 @11:48AM (#46393741)
Which abstractions in langchain do you find so useful which require significant code to replicate yourself in functions with OpenAI SDK / LiteLLM?
Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by int_19h on Saturday December 27, 2025 @04:29AM (#46400468)
For what LangChain does, yes, handrolled code. There won't be much of it because it doesn't actually do all that much.

As for "import openai", that's actually somewhat orthogonal, but if what you want is a common API for different providers then there are many options around that do just that. But then again at that point you probably also want something like OpenRouter, which has its own generic API.

Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by jmogly on Sunday December 28, 2025 @04:49AM (#46409829)
I’ve been using the following pattern since gpt3, the only other thing I have changed was added another parameter for schema for structured output. People really love to overcomplicate things.

class AI(Protocol):

def call_llm(prompt: str) -> str: …

Re:All I Want for Xmas Is Your Secrets: LangGrinch Hits Lang... by phyzome on Friday December 26, 2025 @12:16AM (#46389404)
Huh, kind of sounds like they used LLMs to design it. :-)