WhoBuilt

Realtime Data Connectivity for AI

Oct 11, 2024· 7 min· 5.1K views·Watch on YouTube

Speaker

Tanmai Gopal of Hasura speaks at an AI Engineer event about connecting AI assistants to live data and business logic.

Why AI struggles with business data

Gopal says LLMs can generate simple games but often fail to answer questions that require data from calendars, sales systems, tickets, and product records. He describes security concerns and unreliable integrations as reasons people hesitate to connect sensitive data to AI.

Expose live data and business logic

Gopal proposes making live data and business logic available to an LLM as tools. In a Blockbuster database demo, he asks the system to draft a thank-you email to a top customer using their recently watched movies, with information drawn from multiple sources.

Use one query language

Gopal argues for a unified query language across structured data, unstructured data, and APIs. He uses SQL as an example because its operators have familiar meanings, while API parameters can be ambiguous.

Apply authorization consistently

Gopal describes authorization rules based on the data schema and the user session. His approach is to apply the same rules regardless of where the data lives or how it is accessed.

Let code plan data retrieval

Gopal suggests asking an LLM to write and run Python to retrieve and combine data from several sources, rather than expecting it to reason through every detail directly. He closes by urging teams working with AI and data to connect them, and points attendees to Hasura.

Takeaways

  • Give AI access to live business data and logic through explicit tools.
  • A shared query language can make different data sources easier for an LLM to use.
  • Define authorization around data and user session so rules carry across access paths.
  • For retrieval tasks, have the model generate code that performs the lookup.
  • Test cross-source questions with concrete workflows, such as drafting customer emails from transaction history.

Mentioned in this talk

Search inside this talk

What was claimed 5

  • feature
    Amazon Rufus: The speaker says it did not answer whether a product was available for one-day delivery at his address.
    “It just doesn’t.”
    YouTube
    Unverified1 source· Talk
  • feature
    Hasura: Makes live data and business logic available as tools to LLMs.
    “take your live data and business logic and make that available as a tool to your LLM”
    YouTube
    Unverified1 source· Talk
  • feature
    unified query language: Provides one query language for structured data, unstructured data, and APIs.
    “what if your LLM could talk to everything the same way?”
    YouTube
    Unverified1 source· Talk
  • feature
    shared authorization object model: Applies the same authorization rules across data access methods using data schema and session.
    “The same authorization should be applied.”
    YouTube
    Unverified1 source· Talk
  • feature
    code-based data retrieval planning: Has the LLM write Python code to fetch requested data from multiple places.
    “we just ask them to run Python code to fetch the data that we want”
    YouTube
    Unverified1 source· Talk

Related talks