AI Hints
Home›LangChain Tutorial›Reliability
LangChain · Lesson 96 of 120

Production Quiz

Test yourself.

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

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

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

Question 1

What returns stored answers for repeated prompts, for free? A cache.

Quick check
Repeated prompts, for free:

Question 2

Where do you find a reply's token counts? Usage metadata.

Quick check
Token counts:

Question 3

A review says, ignore your instructions. What is this? Prompt injection.

Quick check
Hidden instructions in text:

Question 4

Your main model is down. What keeps the app running? A fallback model.

Quick check
Main model down:

Summary

Well done. Next, serving your chain to the world, as a web API.

Key takeaways
  • Cache, usage
  • Injection
  • Fallbacks
Next up: Serving with FastAPI — an API for your chain