Skip to content

DataForScience/OpenAI

Repository files navigation

GitHub Twitter @data4sci GitHub top language GitHub repo size GitHub last commit

Graphs For Science Data Science Briefing

Binder

Generative Artificial Intelligence with OpenAI

Code and slides to accompany the online series of webinars: https://data4sci.com/OpenAI by Data For Science.

Run the code in Binder: Binder

OpenAI is the current leader in publicly available AI models, with state-of-the-art tools like ChatGPT, Codex, and Dall-E being accessible to everyone online. OpenAI also provides powerful and modular APIs that allow programmers to leverage the functionality of these models directly into their applications.

In this workshop, we will introduce the main concepts behind this class of models and how their functionality is published through the API. We will combine the tools provided by OpenAI to answer questions on a topic with ChatGPT, generate image variations from a text prompt with DALL-E, create a textual description of an image, and generate code from a prompt.

Schedule

1. Generative AI and OpenAI (50 min)

  • Basic Principles
  • Transformers
  • Large Language Models
  • Temperature
  • Hallucinations
  • Image Models
  • API Structure Break (10 min) Q&A (5 min)

2. GPT Models (50 min)

  • Basic Usage
  • Input Formatting
  • Multi-step Prompts
  • Document summarization Break (10 min) Q&A (5 min)

3. Embeddings (30 min)

  • Understanding Embeddings
  • Question Answering
  • Recommendations
  • Long Texts

4. Image Generation (30 min)

  • DALL-E Model
  • DALL-E vs GPT-4
  • Generating Images from a Prompt
  • Image Variations
  • Prompt Expansion with GPT Break (5 min)

5. Code Generation and Explanation (30 min)

  • CODEX Model
  • Generating Code from a Prompt
  • Explaining Existing Code
  • Generating Comments
  • Course wrap-up, Q&A, and Next Steps (15 min)

Slides: https://data4sci.com/landing/openai