Tag

#Claude

Every article tagged Claude, in one place.

  • 16 articles
  • 19 min of reading
  • 10 Oct, 2026 last updated

Showing 16 articles

LLM APIs & Prompting 1 min read

Counting Tokens and Estimating LLM API Costs

LLM APIs bill by the token , a chunk of text that is often a word or part of a word. Input and output tokens are priced separately, and output tokens cost several times more than input tokens. Count tokens before you send Token counts depend on the model's tok...

11 Jul, 2026 Author 1.31K 43
Read article
RAG & Vector Search 1 min read

Adding Citations to RAG Answers

Users trust an answer more when they can click through to the source. Citations also make hallucinations easy to spot: an unsupported claim has nothing to point at. Option 1: Ask for chunk IDs Answer the question using only the sources below. After each senten...

23 Jun, 2026 Author 1.12K 65
Read article
Model Context Protocol 1 min read

Writing an MCP Client in TypeScript

Host apps like Claude Desktop include an MCP client, but you can embed one in your own app too. That lets your product use any MCP server as a tool provider. Connect and list tools import { Client } from '@modelcontextprotocol/sdk/client/index.js'; import { St...

21 Jun, 2026 Author 291 67
Read article
Tool Use & Agent Loops 1 min read

Managing Context in Long-Running AI Agents

Every turn of an agent adds to the conversation: tool calls, large tool results, the model's replies. Long tasks can grow past the context window, and even before that, a bloated context makes the model slower, more expensive and less focused. 1. Keep tool res...

04 Jun, 2026 Author 789 122
Read article
LLM APIs & Prompting 1 min read

Sending Images and PDFs to an LLM API

Modern LLMs read images and PDFs as well as text. That makes it easy to build features like "extract the line items from this invoice" or "explain this error screenshot". Image from a URL const response = await client.messages.create({ model: 'claude-opus-5-5'...

30 Apr, 2026 Author 1.25K 44
Read article