LoslegenKostenlos starten

Talking to LLMs with Components

Diese Übung ist Teil des Kurses

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

Übungsanweisungen

You’re about to send your first prompts to a chat model using Haystack’s OpenAIChatGenerator. Let’s see how the model responds—with and without guidance.

  • Use the Haystack component to instantiate an OpenAI LLM.
  • Send a user message to ask a question to the LLM.
  • Add a system message to guide the model’s tone.


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