Skip to content

predictionguard/gophercon-gen-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GopherCon 2023 Generative AI Workshop Materials

This repo includes the materials for the 2023 GopherCon workshop: "Generative AI - Go Applications that Integrate GPT-Like Models." The materials were prepared by Daniel Whitenack for live attendees at the conference. However, others might benefit from them as they build generative AI applications with Go.

Description

Learn how to build state-of-the-art, practical AI applications in Go with a focus on generative AI models like those used in ChatGPT.

Are you wondering how models like these can create practical value for you? Are you hesitant to integrate these models because of new/weird tooling, unclear reliability, or privacy concerns? Well, the goal of this half-day workshop is to share how you can leverage the latest AI-driven functionalities to build domain-specific chat assistants, fast neural search over knowledge bases, and automated agents. From the beginning, you will pair program with the instructor, walking through the fundamentals of the current wave of AI models along with key concepts like prompt engineering, augmentation, chaining, and agents.

What a student is expected to learn:

  • AI Fundamentals
  • Building a Chat Assistant
  • Integrating External Knowledge
  • Chaining and Agents

Prerequisites:

Recommended Preparation:

  • Install and configure an editor for Go.
  • Have a functioning Go environment installed.
  • Sign up for a Github account, if you do not already have one.
  • Computers should be capable of modern software development, such as access to install and run binaries, install a code editor, etc.

Agenda

  1. Introductions, logistics
  2. Accessing LLMS
    1. Example 1 - Prompting a text completion model
    2. Example 2 - Generating Go code with WizardCoder
  3. Basic Prompting
    1. Example 1 - Autocomplete
    2. Example 2 - Zero shot, prompt structure
    3. Example 2 - Few shot
  4. Prompt Engineering
    1. Example 1 - Prompt templates
    2. Example 2 - Prompt templates continued
    3. Example 3 - Parameters, temperature
    4. Example 4 - Parameters, max tokens
    5. Example 5 - Contraints, types
    6. Example 6 - Guards on factuality, toxicity
  5. Retrieval Augmented Generation
    1. Example 1 - Preparing data for injection into prompts
    2. Example 2 - Embedding chunks
    3. Example 3 - Similarity search
    4. Example 4 - Similarity search, RAG, continued
    5. Example 5 - Chaining
    6. Example 6 - Generalizing retrieval
  6. Conclusions

About

Materials for the Generative AI workshop at GopherCon 2023

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages