From the course: Claude with Amazon Bedrock by Anthropic
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Temperature
From the course: Claude with Amazon Bedrock by Anthropic
Temperature
Earlier on inside this course, we spoke very briefly about how Claude actually generates text. Remember, we feed some amount of text into Claude, like the words what do you think. Claude is then going to tokenize this text or break it up into smaller chunks. Claude is then going to go through a prediction phase where it decides what possible words could come next and assign a probability to each of those different options. Finally, in the sampling phase, a token is actually chosen based upon these probabilities. So, in this diagram I have on the screen, given inputs of what do you think possible next tokens might be about, would, of, and so on. Everything you see here on the right hand side. Each of these gets assigned a probability. And then maybe in this case, Claude settles on about as being the best possible next token. So we would end up with the phrase, what do you think about? This entire process is then repeated to complete the sentence or complete the entire message. Now just…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Accessing the API2m 31s
-
Making a request7m 34s
-
Multiturn conversations9m 5s
-
Chatbot exercise5m 13s
-
(Locked)
System prompts7m 20s
-
(Locked)
System prompt exercise2m 47s
-
(Locked)
Temperature7m 55s
-
(Locked)
Streaming9m 5s
-
(Locked)
Controlling model output6m 44s
-
(Locked)
Structured data6m 1s
-
(Locked)
Structured data exercise4m 57s
-
-
-
-
-
-
-
-
-