Skip to content

Commit 57d56a1

Browse files
authored
Merge pull request #574 from trungsudo/patch-1
2 parents a88baac + 20b0d25 commit 57d56a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

notebooks/tutorials/intro_to_guidance.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"cell_type": "markdown",
7474
"metadata": {},
7575
"source": [
76-
"Once you have added some text to the model you can then ask the model to generate unconstrained text using the `gen` guidance function. Guidance functions represent executable components that can be appended to a model. We you append a guidance function to a model the model extends its state by executing the guidance function."
76+
"Once you have added some text to the model you can then ask the model to generate unconstrained text using the `gen` guidance function. Guidance functions represent executable components that can be appended to a model. When you append a guidance function to a model the model extends its state by executing the guidance function."
7777
]
7878
},
7979
{
@@ -144,7 +144,7 @@
144144
"source": [
145145
"## Simple templates\n",
146146
"\n",
147-
"You can define a template in `guidance` (v0.1+) using f-strings. You can interpolate both standard variables and also guidance functions. Note that in Python 3.12 you can put anything into f-string slots, but in python 3.11 and below there are a few disallowed chatacters (like backslash)."
147+
"You can define a template in `guidance` (v0.1+) using f-strings. You can interpolate both standard variables and also guidance functions. Note that in Python 3.12 you can put anything into f-string slots, but in python 3.11 and below there are a few disallowed characters (like backslash)."
148148
]
149149
},
150150
{
@@ -286,7 +286,7 @@
286286
"cell_type": "markdown",
287287
"metadata": {},
288288
"source": [
289-
"Note that one atypical feature of guidance functions is that multi-line string literals defined inside a guidance function respect the python indentation structure. This means that the whitespace before \"Q:\" and \"A:\" in the prompt above is stripped (but if they were indented 6 spaces instead of 4 spaces then only the first 4 spaces would be stripped, since that is the curent python indentation level). This allows us to define multi-line templates inside guidance functions while retaining indentation readability (if you ever want to disable this behavior you can use `@guidance(dedent=False)`)."
289+
"Note that one atypical feature of guidance functions is that multi-line string literals defined inside a guidance function respect the python indentation structure. This means that the whitespace before \"Q:\" and \"A:\" in the prompt above is stripped (but if they were indented 6 spaces instead of 4 spaces then only the first 4 spaces would be stripped, since that is the current python indentation level). This allows us to define multi-line templates inside guidance functions while retaining indentation readability (if you ever want to disable this behavior you can use `@guidance(dedent=False)`)."
290290
]
291291
},
292292
{

0 commit comments

Comments
 (0)