Memory

Augmenting LLMs with Databases (ChatDB)

First page
Augmenting LLMs with Databases (ChatDB)
Paper summary

Combines an LLM with SQL databases as a symbolic memory framework.

Ask this paper

Key points
01

LLM-orchestrated SQL: The LLM generates SQL queries to read from and write to a database as its persistent memory.

02

Structured reasoning: By externalizing state to a database, enables LLMs to handle complex multi-step tasks with consistent memory.

03

Symbolic memory: Offers a more reliable alternative to embedding-based memory for tasks requiring exact recall and structured queries.

04

Tool-use precursor: Part of the early 2023 research establishing LLM-as-orchestrator patterns that matured into today's agent frameworks.

Abstract

Large language models (LLMs) with memory are computationally universal. However, mainstream LLMs are not taking full advantage of memory, and the designs are heavily influenced by biological brains. Due to their approximate nature and proneness to the accumulation of errors, conventional neural memory mechanisms cannot support LLMs to simulate complex reasoning. In this paper, we seek inspiration from modern computer architectures to augment LLMs with symbolic memory for complex multi-hop reasoning. Such a symbolic memory framework is instantiated as an LLM and a set of SQL databases, where the LLM generates SQL instructions to manipulate the SQL databases. We validate the effectiveness of the proposed memory framework on a synthetic dataset requiring complex reasoning. The project website is available at https://chatdatabase.github.io/ .

Every Monday
Get next week’s papers.
Subscribe on Substack