R
Rishtaara
AI for Everyone: Zero Class
Lesson 5 of 8Article21 min

Generative AI and LLMs

Large Language Models are trained on massive text corpora to predict next tokens. This enables drafting, coding assistance, retrieval-augmented Q&A, and workflow automation.

What makes LLMs useful

Large Language Models are trained on massive text corpora to predict next tokens. This enables drafting, coding assistance, retrieval-augmented Q&A, and workflow automation.

  • Prompt quality strongly affects output quality.
  • Grounding with trusted data reduces hallucinations.
  • Tool-using agents can execute tasks beyond text generation.

Prompt structuring pattern

Role + context + constraints + output format
You are a support assistant for Rishtaara.
Context: User asks about refund policy.
Constraints: Use only policy docs provided below.
Output format:
1) Direct answer
2) Policy citation
3) Next actions