mirror of
https://github.com/dair-ai/Prompt-Engineering-Guide
synced 2024-11-02 15:40:13 +00:00
commit
d19d85f8c6
@ -8,7 +8,7 @@ import CODE1 from '../../img/code-generation/chat-mode.png'
|
|||||||
This section is under development.
|
This section is under development.
|
||||||
</Callout>
|
</Callout>
|
||||||
|
|
||||||
LLMs like ChatGPT are very effective a code generation. In this section, we will cover many examples of how to use ChatGPT for code generation.
|
LLMs like ChatGPT are very effective at code generation. In this section, we will cover many examples of how to use ChatGPT for code generation.
|
||||||
|
|
||||||
The OpenAI's Playground (Chat Mode) and the `gpt-3.5-turbo` model are used for all examples below.
|
The OpenAI's Playground (Chat Mode) and the `gpt-3.5-turbo` model are used for all examples below.
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ You are a helpful code assistant that can teach a junior developer how to code.
|
|||||||
|
|
||||||
## Basic Example
|
## Basic Example
|
||||||
|
|
||||||
The `User Message` will then be the prompt itself with the instruction of the specific code you want the model to generate. Below is an snapshot of the first basic prompt for code generation. Note that the final code was generated by the `Assistant`.
|
The `User Message` will then be the prompt itself with the instruction of the specific code you want the model to generate. Below is a snapshot of the first basic prompt for code generation. Note that the final code was generated by the `Assistant`.
|
||||||
|
|
||||||
<Screenshot src={CODE1} alt="CODE1" />
|
<Screenshot src={CODE1} alt="CODE1" />
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user