Code Monkey home page Code Monkey logo

chat-gpt-prompt's Introduction

chat-gpt-prompt

This repository contains Python scripts of prompt examples taken from Isa Fulford and Andrew Ng fantastic ChatGPT Prompt Engineering Course. The course is a must for everyone to effectively work with AI prompt engineering. The course is free for a limited time. All credit for these scripts goes to Deeplearning.ai.

Guidelines for Prompting

Prompt Principle 1 - Write Clear and Specific Instructions

  1. Use delimiters to differentiate different parts of the input (ticks, quotes, tags)
  2. Ask for structured output (HTML, JSON)
  3. Ask the model to check whether the conditions are satisfied. Check assumptions required to do the tasks.
  4. Few shot prompting - give successful examples of completing tasks, then ask model to perform the task

Prompt Principle 2 - Give the model time to think

“If a model given a task that’s too complex to do in a short amount of time and small amount of words, it will likely make a guess that is incorrect”

  1. Specify the steps required to complete the tasks
  2. Instruct the model to work out its own solution before rushing to a conclusion

Hallucinations

Models can make statements that sound plausible but are not true

To reduce hallucinations, first find relevant information, then answer the question based on the relevant information

chat-gpt-prompt's People

Contributors

past5 avatar

Stargazers

 avatar  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.