Vibeleaderboard
← All Intel
Intel / article

Practical Text To Sql For Data Analytics

Source
linkedin.com
Publisher
LinkedIn
Author
LinkedIn Engineering
Date

Context

Turning a workplace question into a database query requires knowing which data the employee means. LinkedIn's engineering account explains how its internal Bot combines curated table descriptions with a user's business to find relevant datasets before writing SQL. It then checks that referenced tables and fields exist and uses the database's EXPLAIN command to detect syntax and other errors. Those checks catch problems that query generation alone can miss. LinkedIn separately evaluates whether queries answer the intended question, because valid syntax and real table names do not establish the correct business meaning.

Terms in this piece · Glossary
  • Database and SQL — Persistent structured storage queried and changed through explicit operations.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • Metadata — Data about a file, such as its name, size and timestamps, as distinct from its contents.
  • embedding — A list of numbers representing a piece of text's meaning, so that similar meanings end up numerically close and can be searched.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source www.linkedin.com
More from LinkedIn Engineering
Recommended reads