Well, that's a fantastic result to have now arrived towards the end of week one and having completed
a substantial and exciting project.
Now, of course, there are some challenges for you.
This is where it gets interesting.
First of all, I have some challenges, which is things that you can do to make this project better,
similar to things I just mentioned a moment ago.
And then after that there is an exercise, a proper work through homework assignment for you where you
have to build something from scratch.
And of course, I do provide a solution when you're ready for it, but I don't think you'll need it
because I think you got this.
Let's start with the challenges.
So first of all, uh, in the when we built the the brochure maker that we've already got, there are,
of course, the two calls to the LMS.
The first call I described as one shot prompting because we give an example of some JSON of how it should
reply.
And now I mentioned before that there's also this expression multi-shot prompting, which is when you
provide multiple examples.
And so that's what I would like you to do, extend this to have multi shot prompting and really to make
it true multi-shot prompting.
The way you would do is you'd say something like, so if I show you these links, you might reply like
this and give it some JSON, clearly indicating where you've only selected the relevant links and how
you fully qualified the path.
So try doing that.
Put in 1 or 2 more examples, because that will be then making use of Multi-shot prompting.
And you can add that to your resume that you've done multi-shot prompting.
I joke, of course, but but it is an important skill to have done and tried.
But the reason it's useful is that when you do this, you improve the quality and reliability of the
call to the LLM.
Adding more uh, examples into the prompt strengthens the its, its ability to reliably predict the
next tokens and what you want it to be predicting.
So this is a good exercise to do.
It's a good way to add more robustness to this LLM call.
And it's something that we'll be doing along the course.
And it's something that you'll want to incorporate in your own projects.
So please do give that a try and say give that a shot, give that a multi shot.
So and I also I mentioned that towards the end of the course we're going to be using this technique
called structured outputs.
That actually forces the LLM to respond in a particular way.
But still Multi-shot prompting helps giving it that extra context that that extra sort of flavor for
what you're looking for.
Um, and then just things you can do for the second call to generate the brochure.
We already talked, of course, about using the system prompts to make it be snarky or sarcastic or
whatever.
And I mentioned that you can use the system prompt to make it generate something in a different language,
like Spanish.
There's another thing you could do there which might be more, certainly more interesting.
I don't know if it will get you a better result or not.
And that would be generate the brochure in English and then make a second call.
Actually, of course, it's a third call to the LLM to translate the brochure from English to Spanish.
Uh, now, in many ways it's probably actually not going to be any better to do it that way in this
case.
But by getting into that practice of doing that, you could imagine that we might use a model that is
actually specially trained for the purposes of translation, and so you could use that model just for
that purpose, and that would then allow you for sure to get a better outcome using one model that's
trained for brochure generation and a different model that's trained for translation.
And so whilst we will in fact probably be using just GPT four or mini for both purposes, it certainly
gives you that hands on experience of making the multiple calls.
And again, that's basically a miniature implementation of Agentic AI.
So again, great thing to get into the habit of doing, even if you could probably just use the system
prompt to do it all in 1 in 1 bash.
Anyway, those are the things to do.
This will really help build your your confidence and your experience with these kinds of techniques,
which will come in extremely useful in the upcoming weeks.
And then I have an exercise for you, and this is where you'll be building something from scratch.
And to show you that, I will take you to the next video back to JupyterLab.