Langchain was released in October 2022. ChatGPT was released in November 2022. Langchain was before chat models were invented. It let us turn these one-shot APIs into Markov chains. ChatGPT came in and made us realize we didn't want Markov chains; a conversational structure worked just as well. After ChatGPT and GPT 3.5, there were no more non-chat models in the LLM world. Chat models worked great for everything, inc…
We use instruct models extensively as we find smaller models fine tuned to our prompts perform better when general chat models that are much larger. This lets us run inference that can be 1000x cheaper than 3.5, meaning both money saving and much better latencies.
Why we no longer use LangChain for building our AI agents
81–90 of 307 posts
Re: Why we no longer use LangChain for building our AI agents
#82LCEL is such a weird paradigm that I never got the hang of. Why | use | pipes?
But, if you're familiar with Linux/Unix, this should be familiar. You are piping the output of one function as the input of another function.
Re: Why we no longer use LangChain for building our AI agents
#83Re: Why we no longer use LangChain for building our AI agents
#84The example they use is indeed more complex than the openai equivalent, but LangChain allows you to use several models from several providers.
Also, it's true that the override of the pipe character is unexpected. But it should make sense, if you're familiar with Linux/Unix. And I find it shows more clearly that you are constructing a pipeline:
prompt | model | parserRe: Why we no longer use LangChain for building our AI agents
#85Re: Why we no longer use LangChain for building our AI agents
#86Has anyone else found a good way to swap out models between companies, Langchain has made it very easy for us to swap between openai/anthropic etc
Re: Why we no longer use LangChain for building our AI agents
#87There are now libraries that cover some of the features of Langchain. There is Instructor and mine LLMEasyTools for function calling, there is LiteLLM for API unification.
Re: Why we no longer use LangChain for building our AI agents
#88It had advantage of having standardized API, so I could switch local LLM to OpenAI and just compare results in a heartbeat, but when I wanted anything out of ordinary (ie. get logprobs), there was just no way.
Re: Why we no longer use LangChain for building our AI agents
#89Also, how much success people have or had with automating the E2E tests for their various apps by stringing such agents together themselves
EDIT: Typos