Termites for the AI

Langchain sucks

As a seasoned developer, I've had my fair share of experiences with various tools and platforms. But my recent encounter with Langchain left me more frustrated than ever. The convoluted nature of the developer experience was enough to make me vow, "Never again."

This doesn't mean I don't respect the engineers behind Langchain. Harrison, for instance, is a fantastic guy. However, when a product raises substantial funds, I expect it to do at least one key thing really well. In my opinion, Langchain falls short of this expectation.

When asked about alternatives, I found myself at a loss. There doesn't seem to be anything stable enough to trust as a dependency. My wish is for OpenAI to invest more resources into improving their API. While it may be more verbose, once you get it working, it just works.

Langchain's complexity is exemplified by the dozen different ways it offers to do a simple LLM response. All of which, in my opinion, are inferior to simply using the pure OpenAI API. However, I must give credit where it's due. The Langchain community is great, with individuals like Caleb Peffer and hwchase17 making good counter-arguments and being transparent about Langchain's future.

Despite the community's efforts, the consensus seems to be that Langchain is confusing. It's great for prototyping, but when it comes to production, it's advisable to build on the base OpenAI. Some developers have even suggested using other toolkits like Simonw's LLM, which provides the necessary tools without the constraints of an opinionated framework.

In conclusion, while Langchain may have its merits and a supportive community, it falls short in terms of developer experience and functionality. The convoluted nature of its interface and the lack of a standout feature make it a less than ideal choice for developers. For now, it seems the best course of action is to stick with more reliable and straightforward APIs like OpenAI.