LoslegenKostenlos starten

Querying an SQL database

Diese Übung ist Teil des Kurses

<Kurs>Building AI Agents with Haystack</Kurs>
Kurs ansehen

Übungsanweisungen

You’re giving your agent the powerful new capability of querying structured data with natural language. Build a pipeline that turns a user question into an SQL query and retrieves results from your database of patient records.

  • Mark your custom SQLConnector class as a Haystack component.
  • Initialize a new pipeline instance to run the components so the SQL query flows from prompt to generation to execution.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten