Giter Club home page Giter Club logo

developing-with-nondeterministic-apis's Introduction

Developing with Nondeterministic APIs

This is the repository for the LinkedIn Learning course Developing with Nondeterministic APIs. The full course is available from LinkedIn Learning.

lil-thumbnail-url

AI APIs produce nondeterministic output meaning the same prompt may produce different results every time it’s run. This poses unique challenges to developers because traditional software development is based on the premise that systems produce consistent and therefore deterministic outputs. In this course you’ll learn strategies for how to mitigate these unique challenges to meld traditional software development with modern AI tools.

See the readme file in the main branch for updated instructions and information.

Instructions

This repository provides basic examples of how to introduce greater determinism and consistency to the responses from the OpenAI API.

The examples are demonstrated in the course and provided as-is. They are not meant as a follow-along exercise but rather for reference and further experimentation.

The examples are named for the chapter and video number they appear in. Each example is stand-alone and runs in terminal.

To use these exercise files you need an OpenAI API key. You get that key at platform.openai.com

Running the examples in GitHub Codespaces

  1. Click the "Code" button and select "Codespaces."
  2. Create a new Codespace or open one you've already created.
  3. Create a new file named .env in the root folder.
  4. Add OPENAI_API_KEY= followed by your OpenAI API key to .env
  5. Note .env is not tracked by GitHub so the file will only exist in this Codespace.
  6. To run the Python example in terminal, use the python [filename].py command.

Instructor

Morten Rand-Hendriksen

Developer and Senior Staff Instructor

Check out my other courses on LinkedIn Learning.

developing-with-nondeterministic-apis's People

Contributors

datttrian avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.