I had a hard time getting exercise 5 finished.
Turns out, you had to put the variable names in curly brackets.
As far as I know, we’d been told to use curly brackets in a python f string - but I don’t think anyone told us that variables in llms also take curly brackets. Didn’t know how to format them.
1 Like
hi!! @Bosz
Exercise 5 consists of making a prompt that retrieves stored variables. The prompt is a f-string, so it is a string(text) that can contain variables inside the curly bracket, the variables can be anything, as a function, a constant (text, numbers) or any valid python expresion, defined outside the string.
1 Like