课程: Building AI Applications with Amazon Bedrock

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Utilizing the Bedrock console comparison mode

Utilizing the Bedrock console comparison mode

- [Instructor] Let's take a look at Amazon Bedrock Compare mode. This is a good way to really get into the details of what a particular model can do versus a maybe cheaper one. So if we look at this particular example here, let's first select the premium model that a lot of people like, which is Claude 3.5 Sonnet v2, and this has typically been a very good model for writing code, especially for writing code for me in Rust. And I'm going to first start off with a reasonably simple prompt here. We'll make it a little bit bigger here, and I'll go ahead and walk through what this does. So this says, "Write a rust function to [task]. Takes [input], returns [output]. Show code + output. Limit to 25 lines or less; no explanation, just code. Always comment function with one line, explain what it does," and then I give an example. This is often a really, really good idea when you're building a prompt, is with code, you can actually show the working code. And this is why non-programmers are…

内容