Skip to content

Learn

Practical AI guides and plain-language explainers. Filter by role and level.

All guides

  • How-to guide14 min

    Your first LLM API call: from key to response

    Using the Claude API as the example: keep your API key safe, send a first request from Python, and read the answer, the stop reason and the token usage.

    BeginnerDevelopers
  • How-to guide15 min

    Get structured (JSON) output from an LLM

    Instead of asking for JSON and hoping, define the shape as a schema and get responses your code can use directly. Worked through with a customer-message classifier.

    PracticalDevelopers
  • How-to guide15 min

    Cut API costs with prompt caching

    Cache the long instructions and documents you resend with every request, and their input cost drops sharply. Using a support bot built on a manual, here's how to place the cache point and check that it works.

    PracticalDevelopers
  • How-to guide18 min

    A minimal RAG chatbot with ten documents

    Build a Python chatbot that searches ten internal policy documents with embeddings and answers only from what it finds, then test search and answers separately and fix what breaks.

    PracticalDevelopers