🤖

ChatGPT Overview and Usage

Jul 9, 2025

Overview

This lecture introduced ChatGPT, covering its origins, architecture, prompting techniques, key capabilities, limitations, and best practices for effective and safe use.

What is ChatGPT?

  • ChatGPT is a conversational AI model developed by OpenAI, based on the GPT (Generative Pre-trained Transformer) series.
  • It is optimized for dialogue, providing human-like and contextually relevant responses.
  • ChatGPT generates responses dynamically from prompts and does not remember previous interactions.

Origins and Evolution

  • The GPT series began with GPT-1 (2018), followed by GPT-2 (2019), GPT-3 (2020), and GPT-4 (2023).
  • Each version has increased capabilities and more parameters, with GPT-4 supporting advanced reasoning and creativity.
  • ChatGPT was created by fine-tuning GPT models for conversational data.

Architecture & Technologies

  • Based on the Transformer architecture, which uses self-attention to understand context and relationships in text.
  • ChatGPT is fine-tuned with supervised learning and reinforcement learning to improve dialogue performance and reduce harmful outputs.
  • Safety measures have been added to address biases and improve reliability.

Prompting with ChatGPT

  • Prompting means giving ChatGPT an input or question to generate a response.
  • Three main prompting methods:
    • Zero-shot: Ask a question without examples.
    • Few-shot: Provide examples along with the prompt.
    • Chain-of-thought: Use a sequence of related questions and answers.
  • Clear and specific prompts yield better responses; ambiguity may cause errors.

Capabilities and Use Cases

  • ChatGPT can generate code, creative content, summarize data, translate text, and interact with plugins (e.g., creating charts).
  • GPT-4 offers deeper, more accurate, and creative responses than GPT-3.5.
  • Can process tabular data, write news articles, and handle multiple languages.

Live Demonstration Highlights

  • Demonstrated prompt variations, chat history, and the impact of prompt specificity.
  • Showed custom instructions for tailored outputs (e.g., programming in TypeScript).
  • GPT-4 can browse the web and use plugins for extended functionality.
  • Always verify information provided by ChatGPT, as errors and omissions can occur.

Limitations of ChatGPT

  • Subject to hallucinations (generating false information).
  • Limited context window and does not learn from past experiences.
  • Performance scores are high but not perfect; always double-check outputs.
  • Plugins/browsing have exclusive modes; cannot be used simultaneously.

Best Practices

  • Be specific and clear with prompts; provide context for complex queries.
  • Avoid ambiguity and jargon unless necessary.
  • Cross-check facts and data from responses.
  • Refine queries and seek clarifications if responses are unclear.
  • Stay updated on new features and improvements from OpenAI.

Key Terms & Definitions

  • Prompt — The input or question you give to ChatGPT.
  • Transformer architecture — Model design based on self-attention for processing sequences.
  • Zero-shot prompting — Task without examples.
  • Few-shot prompting — Task with examples provided.
  • Chain-of-thought prompting — Stepwise questions building on previous answers.
  • Hallucination — When AI generates plausible but false information.

Action Items / Next Steps

  • Practice using different prompting styles with ChatGPT.
  • Always verify ChatGPT outputs, especially for factual information.
  • Stay informed about updates and new features from OpenAI.
  • Review lecture slides or assigned materials if provided.