A Blueprint Architecture of Compound AI Systems for Enterprise

Eser Kandogan, Sajjadur Rahman, Nikita Bhutani, Dan Zhang, Rafael Li Chen, Kushan Mitra, Sairam Gurajada, Pouya Pezeshkpour, Hayate Iso, Yanlin Feng, Hannah Kim, Chen Shen, Jin Wang, Estevam HruschkaarXiv 2024 · DOI

TL;DR

This paper proposes a blueprint architecture for building "compound AI systems" for enterprise use, moving beyond monolithic LLMs to integrate them with existing infrastructure. The core innovation lies in using "streams" for orchestration and "planners" to optimize task and data execution under production constraints like cost and latency.

What Problem Does This Paper Address?

The paper addresses the challenge of deploying Large Language Models (LLMs) effectively in real-world enterprise settings. While LLMs excel at many tasks, their direct integration into production environments is hindered by practical constraints such as latency, accuracy, cost, and the need to interact with existing data and tools. The authors argue that a shift from single, monolithic LLM models to "compound AI systems"—which combine LLMs with other specialized components—is necessary to overcome these limitations and enable robust, adaptable, and cost-effective AI applications.

Methods

The proposed blueprint architecture centers around three key concepts:

  • Agents: These are computational units that perform specific tasks by interacting with services, LLMs, or predictive models. They are defined with inclusion/exclusion rules for triggering and have workers to process data.
  • Registries (Agent and Data): These act as central touchpoints, storing metadata about available agents, models, APIs, databases, and data sources within the enterprise. They facilitate discovery and integration.
  • Streams: This is the core orchestration mechanism. Streams are dynamic sequences of messages (data or instructions) that facilitate communication and coordination between agents. They are dynamically produced, monitored, and consumed.
  • Sessions: These define the scope of work for a group of agents collaborating on a task, using streams for communication.
  • Planners (Task and Data): These components optimize task execution and data retrieval. The Task Planner creates directed acyclic graphs (DAGs) for task execution, while the Data Planner optimizes data operations based on constraints like cost and performance.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • The Shift to Compound AI: The paper strongly advocates for moving beyond single LLM models to integrated systems that leverage specialized components for robustness and efficiency in enterprise contexts.
  • Streams as the Universal Orchestrator: The concept of "streams" is presented as a flexible and powerful mechanism for coordinating complex interactions between diverse AI agents and enterprise infrastructure.
  • Planners for Production Constraints: The introduction of Task and Data Planners is crucial for bridging the gap between LLM capabilities and real-world production demands, enabling optimization for cost, latency, and accuracy.
  • Registries for Seamless Integration: Agent and Data Registries are vital for making existing enterprise resources discoverable and usable by the compound AI system, promoting reusability and integration.

Key Results

The paper presents a blueprint architecture and does not report quantitative results from a deployed system. The key "results" are conceptual: a well-defined architecture that addresses the challenges of enterprise AI deployment and provides a framework for building such systems.

Limitations and Future Work

The authors acknowledge that the best practices for developing AI systems are still an open problem. They suggest that their blueprint architecture will aid in the design and experimentation of compound AI systems and encourage interdisciplinary research across AI, NLP, Databases, Systems, and HCI. Future work would likely involve implementing and evaluating this architecture in real-world enterprise scenarios to validate its effectiveness and identify further refinements.

Summary updated

BibTeX
@misc{kandogan2024blueprint,
  author = {Eser Kandogan and Sajjadur Rahman and Nikita Bhutani and Dan Zhang and Rafael Li Chen and Kushan Mitra and Sairam Gurajada and Pouya Pezeshkpour and Hayate Iso and Yanlin Feng and Hannah Kim and Chen Shen and Jin Wang and Estevam Hruschka},
  title = {{A Blueprint Architecture of Compound AI Systems for Enterprise}},
  year = {2024},
  eprint = {2406.00584},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.00584},
}
Figure