1. Learn
  2. /
  3. Courses
  4. /
  5. Developing LLM Applications with LangChain

Connected

Exercise

Building prompts for sequential chains

Over the next couple of exercises, you'll work to create a system for helping people learn new skills. This system needs to be built sequentially, so learners can modify plans based on their preferences and constraints. You'll utilize your LangChain LCEL skills to build a sequential chain to build this system, and the first step is to design the prompt templates that will be used by this system.

Instructions

100 XP
  • Create a prompt template called learning_prompt that takes an input "activity" and creates a learning plan.
  • Create a prompt template called time_prompt that takes an input "learning_plan" and modifies it to fit within one week.
  • Invoke the learning_prompt with an activity of your choice (try "play golf" if you're struggling for ideas).