StreamNative Logo
VideoOct 8, 202623 mins

Teaching the Agent Your Data

Unlock Instant Access

Complete the form to start watching.

Session Overview

Discover how Harvey built an in-house data agent to automate ad-hoc analytics and scale internal data access.

In this talk, Connor and Jingyi (Data Scientists at Harvey) break down how they designed a portable context layer to teach their internal AI agent, Spectra, company-specific metrics, business rules, and table quirks. Learn why pointing LLMs directly at a data warehouse fails, how to structure modular skill files in dbt, and how to set up robust offline evaluation, model selection, and team rollouts to handle 1,000+ weekly questions with confidence.

What You'll Learn

  • Why frontier models struggle with internal company context and database nuances
  • Structuring an agent context layer: Analytics triage harness, key data assets, and foundational vs. leaf skills
  • Anatomy of a skill file: Descriptions, trigger words, definitions, gotchas, and minimal examples
  • Creating an offline evaluation benchmark: Sub-agents, expected outputs, and hill-climbing accuracy
  • Side-by-side model evaluation: Why the largest frontier model isn't always the best fit for internal questions
  • The transition from spending 20% of team time on ad-hoc triage to maintaining code-reviewed skill repos
  • Step-by-step guidance on implementing your own modular context layer

Chapters

  • 00:00 — Introduction & the ad-hoc data triage problem
  • 02:23 — Why pointing agents straight at Snowflake fails
  • 03:32 — Writing company context into dbt skill files
  • 04:15 — Architecture map: Harness, data spine & modular skills
  • 07:11 — Step-by-step request flow: Entity resolution to SQL planning
  • 10:00 — Anatomy of a skill file: Trigger words, definitions & gotchas
  • 13:09 — Offline evaluation: Benchmarks & multi-agent scoring
  • 15:46 — Model evaluation & selecting the right default LLM
  • 18:04 — Beta testing, cross-team rollout & security boundaries
  • 20:21 — Impact at Harvey: 1,000+ weekly queries answered
  • 21:40 — How to get started on your own data agent

About Speaker

Connor Clark

Connor Clark Connor Clark is a Senior Data Scientist at Harvey, the legal AI company. He joined as the third analytics hire and has since built much of the analytical foundation for the business side of the company, along with the product analytics foundations for Harvey's embedded experience team. Most recently he drove the creation of Harvey's internal Data Agent: a background LLM agent that anyone at the company can tag in Slack to get analytics questions answered — SQL written, run against Snowflake, and returned with sources in minutes. Before Harvey, Connor worked in product analytics at DraftKings and as an analytics engineer at Verkada, where he rebuilt the data foundations across dbt and Looker.

Jingyi Cui

Jingyi Cui Jingyi Cui is a Senior Data Scientist at Harvey AI, where she leads data science initiatives for the company’s Agent Platform and Core Assistant Product. Her work focuses on evaluating and improving large language model systems, developing agentic product capabilities, and optimizing retrieval and reasoning for complex legal and corporate use cases. Previously, Jingyi held data science roles at Meta and Cornerstone Research, where she built analytics frameworks, developed AI-powered tools, and applied data science to infrastructure reliability and high-stakes litigation. She also won the Best Overall Prize at the inaugural Stanford LLM x Law Hackathon. Jingyi graduated from UC Berkeley with degrees in Applied Mathematics and Economics.