Did OpenAI Just Sign the Death of LangChain?

FS Ndzomga
4 min readJun 16, 2023
Photo by Andrew Neel on Unsplash

OpenAI's latest update to its API has introduced a groundbreaking feature: Functions. In essence, these functions ensure that responses to API calls follow a specific JSON structure, a capability that opens up numerous possibilities, such as interacting with other APIs, converting natural language into API calls, and extracting structured data from text. Such advancements in technology often mean other tools become less relevant or even obsolete. This time, it seems LangChain and Llama Index are the ones being left behind. However, it's not all roses. The introduction of functions comes with its own set of costs and challenges that users should be aware of.

Functions: The Game Changer in OpenAI's API Update

Functions in the context of OpenAI's API are a feature that enables the assurance of a particular JSON structure in the response to an API call. This structuring is done by injecting these functions into the system message, using a syntax that the model has been trained on. The ability to format responses in such a way greatly enhances the interaction with other APIs, converting natural language into API calls, and extracting structured data from text.

Such capabilities could arguably make some functionalities of LangChain and Llama Index obsolete. These tools, which were designed…

--

--

FS Ndzomga

Engineer passionate about data science, startups, product management, philosophy and French literature. Built lycee.ai, discute.co and rimbaud.ai