课程链接:https://learn.deeplearning.ai/courses/collaborative-writing-and-coding-with-openai-canvas/lesson/1/introduction

Introduction

OpenAI Canvas 是一个支持创意和协作的工具或概念,帮助用户以可视化、互动的方式进行头脑风暴、规划和内容创作。它可以用来:

1. 构思和规划:通过画布的形式整理想法,创建流程图或概念图。

2. 团队协作:多个用户可以实时共享和编辑内容。

3. 创意表达:支持图形、文字、甚至多媒体内容的整合,适合设计和创作。

Collaborative Writing

write essey

give suggesstions

modify content

you could just open a new Canvas and paste somegthing you want, give some instructions, and the canvas can modify your content interactively.

Build a Game

Canvas可以用来作为代码辅助编写,在这里我要求使用html + JavaScript写了个俄罗斯方块。

Create SQL Database from Architecture Image

可以直接让chatgpt生成数据以及相应的建表,插入,查询SQL.

Training the Canvas

在这节介绍了如何训练Canvas,里面涉及到的技术。

接下来是一些老生常谈的东西,当训练模型时,需要注意的东西:

本节还特别说明了训练Canvas的两个重要问题,

1 在什么场景自动调用Canvas,比如在写博客时会自动调用。在其他某些场景就不应该调用。

2 在Canvas中Editing behavior怎样定义,比如对于特定语句的修改,还是对全局的重写。

Free Canvas Access and Prompt Copies


✅   Free Canvas Access

Canvas is available to all users of free OpenAI ChatGPT. In situations where Canvas provides a better interface, it will automatically open when you issue a relevant prompt in your free ChatGPT account. You don't need to select any specific GPT model for this. Also, as shown in the course, you can include the word "Canvas" in your prompt to clearly indicate that you'd like the result displayed in the Canvas environment.


✍   Collaborative Writing Prompts

In this section, you will find the prompts used in the Collaborative Writing lesson:

Research prompts:

"search the web to list out Van Gogh's brushing techniques in bullet points"

"write a research essay expanding on each tool"

Note: don't forget you can highlight the text in canvas and ask back chatgpt

"reformat the content in markdown table"

"make it such that it is a lesson plan"

Tourism info & Email drafting prompts:

"search for the best restaurants in SF Mission"

"write an email to my friend inviting them to the San Ho Won restaruant using canvas"

"Make this tone to be a bit funnier"

"Make the second paragraph to be a bit friendlier"

Open canvas prompt

"open new canvas"

Creating travel itinerary prompts

"Suggest how to improve the writing style of the trip"

(In the example in the lesson) "Change the 2nd day to be in Kyoto"

"Search for the images of this place"

"Transform to be a blogpost"

Visualizing plots in canvas

(adding an image in ChatGPT) Reason through the plot and write a research report in canvas

"just graph the left o1-preview results in python canvas"

Try it yourself!

Prompt to create:

  • new emails

  • travel blogs


💻   Collaborative Coding Prompts

In this section, you will find the prompts used in the Collaborative Coding lesson:

Create animations prompts:

"create a simple sine wave matplotlib animation"

"make the plot dashed and red, make the lines thicker"

"create a matrix style flower of life visualization using numpy python"

Code in html prompts:

"create a self-contained HTML file"

Explain concepts prompts:

"Explain the concepts of the Kuhn's theory of scientific revolutions in canvas"

"Create an interactive simulation that explains the concept behind this theory in an engaging way. Use 3d.js in a self-contained html file, make it aesthetic and interactive"

"Add a quiz to the visualization"


👾   Build a Spaceship Game Prompts

In this section, you will find the prompts used in the Build a Spaceship Game lesson:

"Create a simple spaceship battle game with competitive scoring system, with everything in one html file. Make it as interactive as possible. The feel should be retro-futuristic"

"I want to implement the logic where it would fail when my square would hit the red square, make it like a game with failures and leveling"

"When the game is over display the results of the score and have a key to restart"

"Create a feel of space with stars and moving orbits"

"Make the pink squares to gradually speeding up to make the game more fun and harder"


🔰   Creating SQL Database from Architecture Image Prompts

In this section, you will find the prompts used in the Creating SQL Database from Architecture Image lesson:

Link to the article shown/used in the lesson:

Prompts:

(add image from the article) "Create the SQL database based on the image and populate with the data, use canvas"

Example of the error shown in the lesson: "ERROR 1044 (42000) at line 1: Access denied for user 'user_42xrxdbef_42xxkpufp'@'%' to database 'schooldb'"

"Now fix the same issue with other tables"

"Add more teachers and subjects in the database and more students"

"Create a query for students who took math"

"Show the teacher for the students as well"


🛠   Try it yourself!

Prompt to create:

  • a new game

  • more databases