Lesson deck

The LangChain map and Runnables flashcards

Reviewing needs JavaScript. You can read every card in the list below.

Loading your cards...

Back to the lesson13 cards in this deck

Read all 13 cards as a list
  1. Front
    How do LangChain, LangGraph and LangSmith fit together?
    Back
    LangChain: quick path to an agent and a common model interface. LangGraph: the stateful runtime LangChain agents are built on (persistence, interrupts, loops). LangSmith: tracing, evaluation and deployment, usable with any framework.
  2. Front
    What is Deep Agents?
    Back
    A packaged agent harness on top of LangGraph: planning, subagents, filesystem tools and context management. Use it for long, open-ended tasks.
  3. Front
    Does LangSmith need LangChain?
    Back
    No. It traces and evaluates agents built with any framework or a plain SDK. Tracing is switched on through environment variables.
  4. Front
    What changed in LangChain 1.0 that dates an old tutorial?
    Back
    create_agent replaces create_react_agent; middleware extends the loop; structured output comes from the main loop; content_blocks give a provider-neutral view; legacy chains and memory moved to langchain-classic.
  5. Front
    What is a Runnable?
    Back
    The shared interface of every component: the same calls for one input, a batch, async or a stream. Because the shape is shared, components compose.
  6. Front
    How do a pipe and a dict compose Runnables?
    Back
    A pipe runs left to right, passing each output on. A dict runs its branches on the same input in parallel and gathers a dict of results.
  7. Front
    When does the pipe style stop being enough?
    Back
    When you need loops (retry until valid), branching on state, waiting for a person, or resuming after a crash. The pipe flow has no cycles and no durable state; use a graph.
  8. Front
    Two ways to get typed output in LangChain?
    Back
    On a bare model: with_structured_output(schema), optionally returning the raw reply and parse error. In an agent: response_format, using provider-native output or a tool strategy; the result is under structured_response.
  9. Front
    Why is typed output not a guarantee?
    Back
    Output can be cut off at the token limit, a loose schema lets the model fill filler, and a valid value can be wrong. Validate, retry a bounded number of times, define the failure path.
  10. Front
    Where does a tool's schema come from?
    Back
    The function: its docstring is the description and its type hints are the input schema. The docstring is part of your prompt.
  11. Front
    Why inject user_id into a tool instead of making it an argument?
    Back
    A model-chosen id can be changed by prompt injection or a persuasive user. A hidden runtime parameter is filled from the caller's session, so the model never chooses whose data is read.
  12. Front
    Two-step, agentic and hybrid RAG: when each?
    Back
    Two-step (always retrieve, then answer): predictable latency, FAQ bots. Agentic (retrieval as a tool): flexible, variable latency. Hybrid (adds rewriting and checks, may loop): ambiguous or quality-sensitive flows.
  13. Front
    When would you skip LangChain entirely?
    Back
    A single model call or simple feature with no state, tools or vendor swap: call the provider SDK. Add the framework when you can name the concrete benefit.