Skip to content

Commit

Permalink
Merge pull request #5 from milesba4/master
Browse files Browse the repository at this point in the history
Fixing 'substitution' typos in part 3c
  • Loading branch information
mikeizbicki authored Jan 22, 2024
2 parents cf3f36e + 7a8cd81 commit 8de096e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ and contain instructions on what the AI should attempt to do.
### Part 3.c: Writing our Prompt
Our next step is to prepare a prompt for the LLM.
We will use a multi-line string with command substition.
We will use a multi-line string with command substitution.
Run the following command.
```
Expand All @@ -628,15 +628,15 @@ Notice that the shell allows multiline strings.
Depending on your shell's settings, you may see a `>` symbol prompting you at the beginning of each line of the string.
These `>` prompts are customarily not provided in tutorials because they make copy/pasting more difficult.
Now we will introduce command substition.
Now we will introduce command substitution.
Run the following command.
```
$ echo "[INST]
$(echo hello world)
[/INST]"
```
You should get the same output as the previous command.
The `$( ... )` syntax is called *command substituion*.
The `$( ... )` syntax is called *command substitution*.
When the shell encounters this syntax, it runs the command within the parentheses (in this case `echo hello world`),
and places the output of that command (in this case `hello world`) within the string.
Expand Down

0 comments on commit 8de096e

Please sign in to comment.