TL;DR
Traditional NL2SQL systems fail when real-world queries require external knowledge, user context, or multiple data sources. This paper introduces Blue's Data Intelligence Layer (DIL), an architecture that treats LLMs, the Web, and users as first-class databases. By unifying these heterogeneous sources through a centralized registry and a declarative data planner, DIL enables compound AI systems to execute complex, multi-source, and multi-modal data workflows.
What Problem Does This Paper Address?
Natural Language to SQL (NL2SQL) has advanced significantly, but it typically operates under a "closed-world" assumption—assuming all necessary information resides within a single structured database. In reality, user queries are often ambiguous, iterative, and require information scattered across enterprise databases, the web, personal context, and general world knowledge.
For example, asking "What data scientist jobs are suitable for me in the Bay Area?" requires joining a job posting database with personal user preferences (User context) and an LLM's geographical knowledge (to map "Bay Area" to specific locations). Bridging this semantic and structural gap requires a system that can orchestrate data retrieval and reasoning across highly heterogeneous sources and modalities without hardcoding the pipeline.
Methods
The authors present the Data Intelligence Layer (DIL), the core data backbone of Blue, a prototype compound AI system designed for enterprise applications. DIL's architecture relies on four main pillars:
- Unified Data Source Abstraction: DIL elevates non-traditional entities into queryable databases. This includes LLMDB (for commonsense and world knowledge), UserDB (for tracking user preferences via interactive sessions), and WebDB (for on-demand web scraping and structured data extraction).
- Data Registry: A centralized catalog storing multi-level metadata (databases, collections, attributes) independent of the underlying storage, enabling agents to autonomously discover and interpret data sources.
- Data Operators: A hierarchical framework separating logical intent (e.g., extraction, join) from physical implementation (e.g., LLM-based vs. dictionary-based extraction). All operators share a standardized input/output signature to ensure interoperability across relational, vector, and semantic modalities.
- Data Planner: An agent that translates natural language queries into an executable Directed Acyclic Graph (DAG) of operators. It recursively refines abstract tasks into concrete sub-queries (like NL2SQL or NL2LLM) and optimizes the plan for cost and efficiency.
Datasets
Not discussed in the paper. The paper focuses on architectural design and a qualitative developer study rather than benchmarking on standard machine learning datasets.
Key Insights and Ideas
- The World as a Database: Elevating LLMs, web scrapers, and the user themselves to "first-class data sources" with standardized query interfaces allows traditional database concepts (like JOINs and query optimization) to be applied to unstructured and cognitive tasks.
- Declarative Data Plans: Instead of hardcoding agent workflows, DIL uses a data planner to dynamically generate a declarative DAG of operators. This allows the system to optimize execution paths similarly to a traditional SQL query optimizer.
- Standardized Operator Signatures: By forcing all operators (whether relational, vector, or LLM-based) to accept and output a uniform data structure (a list of lists of dictionaries), DIL seamlessly bridges the gap between different data modalities.
Key Results
The authors evaluated DIL qualitatively through two multi-modal applications built during a week-long hackathon:
- Apartment Search: An application that scrapes noisy web data into a unified SQL database, allowing users to query and visualize rent trends using natural language.
- Cooking Assistant: A multimodal system where a user uploads a picture of their fridge. The system detects ingredients, performs a vector search (ChromaDB) combined with relational filtering (PostgreSQL) to find recipes, and interactively refines choices with the user.
Additionally, a developer experience survey of 12 participants showed that while discovering data sources via the registry was highly intuitive (mean score of 4.5 out of 5), understanding and working with the complex data planner abstractions was more challenging (median score of 3 out of 5).
Limitations and Future Work
- Steep Learning Curve: Developers found Blue's streaming-based communication model and agent input/output handling confusing, requiring several days of onboarding to become fully productive.
- Debugging Complexity: Debugging asynchronous, multi-agent workflows emerged as a major friction point. Because errors frequently propagated downstream or occurred within parallel executions, identifying root causes was difficult.
- Future Directions: The authors suggest building enhanced tooling for visualizing agent interactions, logging and tracing multi-agent execution, supporting deterministic workflow replay, and introducing simulation or sandbox modes to test complex agent orchestration before deployment.
Summary updated