Responding to User Comments
Thank you to everyone who likes, subscribes and leaves a comment on our videos. This is in response to one of those comments, which was a question about how you can train/influence/impact the output of Claude with a system prompt. And it's a little bit different to OpenAI. In fact, looking at the Claude, the Anthropic Claude documentation, I initially thought that there isn't the ability to add a system prompt.
Understanding Claude's System Prompt
Because if we go through to create a message, now this looks very similar to OpenAI, and this in particular looks very similar to OpenAI. And it explains that the role can either be user or assistant. Now with OpenAI, if you're using a GPT model, you can have a system role. And you basically speak to the system. If you want the AI to take on a certain persona, you can say only reply in Spanish or you are a helpful assistant. You can set that at the system level.
Locating the System Parameter
But then I scrolled down when I was trying to answer this question in the comments, and I saw that system is actually a parameter that sits outside of messages. And that's illustrated here. We go to user guides and then text generation system prompts. We can see that here's our series of messages that sits inside the message parameter. System actually sits outside of it.
Implementing System Prompts in Bubble
So it's really simple then to add it into your Bubble app. Here's my Claude demo that I did on Claude 3 just a few days ago. And so if I want to add in a system prompt, I'm going to write it in here. I can say system. And I can say only reply in Spanish. And in the messages, all I'm sending is hello Claude. And so let's see what happens.
Testing the System Prompt
Initialize the call and I get back. Hola! It's in Spanish. At least I believe it's in Spanish. So there you go. That is how you can add in a system prompt into Claude 3. And it isn't quite the same as OpenAI. It sits outside of the messages.
Conclusion
If you want to see more tutorial videos using Claude 3, OpenAI and building no-code apps with Bubble, then click the link down in the description where you can get access to hundreds of tutorial videos just like this one.