Lesson deck

LangChain ecosystem: interview drills 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
    The 90-second opener on LangChain, LangGraph and LangSmith?
    Back
    LangChain: common model interface and create_agent for the standard loop. LangGraph: the stateful runtime beneath, for state, checkpoints, interrupts, streaming. LangSmith: tracing, evaluation, deployment, for any framework. Start with the SDK, then create_agent, then a graph; name a case for using none.
  2. Front
    What closing line shows judgement?
    Back
    "For a single prompt with a typed answer I would call the provider SDK directly." Name the least machinery that does the job.
  3. Front
    Checkpoint storage per day?
    Back
    Conversations × saved steps × state size. 20,000 × 12 × 40 KB = 9.6 GB. Keep references in state, not documents, and set retention.
  4. Front
    Cost per resolved conversation?
    Back
    Cost per attempt ÷ resolution rate. 6 cents ÷ 0.7 ≈ 8.6 cents. Track it, not cost per call.
  5. Front
    Trace budget with 10% sampling plus all errors?
    Back
    Sampled traces plus the errors not already sampled: 2,000 + 0.9 × 600 = 2,540 a day for 20,000 conversations and 3% errors.
  6. Front
    Odds that all retries fail?
    Back
    Failure rate to the power of attempts, if independent: 0.05³ = 0.0125%. Real failures are correlated (an outage), so also add a fallback.
  7. Front
    The eight parts of a design answer for an approval agent?
    Back
    Clarify; shape (router, graph); state and memory; tools (idempotency, caps, ownership); guardrails and budgets; evaluation; deployment; failure modes.
  8. Front
    Where does the refund call go, and why?
    Back
    After the interrupt, with an idempotency key from the request. The node restarts on resume, so anything before the pause runs again; the key absorbs a duplicate resume.
  9. Front
    Markers of a strong design answer?
    Back
    Idempotency, authorisation, budgets and evaluation gates raised unprompted; retrieval separated from generation quality; what not to automate; cost per resolved ticket; a rollback story.
  10. Front
    A refund went out twice. First checks?
    Back
    A side effect before the interrupt; a duplicate resume; no idempotency key. Look at where the refund call sits relative to the interrupt.
  11. Front
    Chat forgets turns in production but not locally?
    Back
    No checkpointer, a new thread id per request, or an in-memory saver behind several replicas. Compare thread ids on consecutive traces.
  12. Front
    Bill tripled after a release?
    Back
    Defeated prompt cache, summarising off, more tool calls, bigger retrieved chunks, retries. Read tokens per run by run type in the traces.
  13. Front
    Evaluation score up, users unhappy?
    Back
    Judge bias, a dataset that no longer matches real questions, a slice that got worse, latency. Check scores by slice and read ten failures.