
LANGCHAIN — What Is OpenGPTs?
For a successful technology, reality must take precedence over public relations, for nature cannot be fooled. — Richard Feynman
OpenGPTs is an open-source GPT store developed by LangChain. It is powered by an early version of LangGraph, which is an extension of LangChain aimed at building agents as graphs. OpenGPTs leverages MessageGraph, different cognitive architectures, persistence via LangGraph, and configuration using LangChain primitives to support the creation of various types of bots. Let’s deep dive into the technical aspects of OpenGPTs.
MessageGraph
OpenGPTs runs on MessageGraph, a specific type of graph introduced in LangGraph. This graph is designed to take in a list of messages and return messages to append to the list of messages. It is closely related to the I/O of new "chat completion" models, making it suitable for communication in distributed systems and visualization of the work being done.
Cognitive Architectures
OpenGPTs supports three different cognitive architectures for creating bots:
- Assistants: These bots can be equipped with various tools and use an LLM to decide when to use them. They are flexible but may be less reliable.
- RAG: These bots are retrieval-focused, equipped with a single retriever, and always use it.
- ChatBot: These bots are simple, just a call to a language model parameterized by a system message.
Persistence
Persistence is a fundamental requirement for OpenGPTs. LangGraph provides functionality for persistence of chat messages using a CheckPoint object. OpenGPTs uses a RedisCheckPointer to save the results to Redis, enabling the surfacing of messages from past conversations.
Configuration
OpenGPTs allows users to choose the LLM, system message, tools, etc., when creating bots. LangChain’s configurable fields feature enables the marking of certain fields as configurable, providing modular and consistent configurability.
New Models
OpenGPTs introduces new models, including Google’s Gemini model for assistants and Mixtral for ChatBot and RAGBot.
New Tools
A new tool, Robocorp’s Action Server, is introduced, providing an easy way to define and run arbitrary Python functions as tools.
astream_events
The new astream_events method is utilized to stream back all events, such as new tokens, function calls, and function results, and surface them to the user.
OpenGPTs is open to community assistance for enhancing prompting strategies, supporting other tools, and reliability with open-source models.
In conclusion, OpenGPTs offers a technical deep dive into creating and managing various types of bots, leveraging LangChain’s capabilities. The entire functionality behind OpenGPTs is exposed via API endpoints, allowing for customization and integration with other systems.
This technical overview provides valuable insights into the architecture and capabilities of OpenGPTs, demonstrating the extensibility and flexibility it offers for building and deploying GPT-based chatbots.





