AI Hints
Home›LangChain Tutorial›Tokens and Providers
LangChain · Lesson 12 of 120

Basics Quiz

Test yourself.

⏱ 2 min read▶ Video at 11:42🎓 Free
Watch this lesson in the LangChain courseWatch on YouTube ↗Full LangChain course

Let's check the basics. Pause after each question, and answer before I do.

Basics Quiz
From the video: Basics Quiz
  • Basics quiz
  • Pause and think
  • Then check

Question 1

Which message sets the assistant's rules and personality? The system message.

Quick check
Rules and personality:

Question 2

Why does a chatbot send the whole history every call? Because models don't remember between calls.

Quick check
Why send the history?

Question 3

Which method returns the answer in pieces, as it's written? Stream.

Quick check
Answer in pieces:

Question 4

For steady, factual answers, which temperature? Zero.

Quick check
Steady, factual answers:

Summary

Well done. Next, a new section on prompts, starting with prompt templates.

Key takeaways
  • SystemMessage
  • Send the history
  • stream, temperature 0
Next up: Prompt Templates — fill in the blanks