Prompts, agents, embeddings and shipping models in real products. Prompts, tokens, context windows, agents and wiring models into real apps.
Answers20 answers
/
- What is MCP (Model Context Protocol), and when should I build a server?
- How do I stop an LLM making things up?
- What is tool use (function calling), and how does the loop work?
- How do I test and evaluate prompts so changes do not break things?
- How do I cut the cost of LLM API calls?
- Do I need a vector database, or will Postgres with pgvector do?
- What is RAG, and when do I need it instead of a bigger prompt?
- How do I chunk documents for retrieval?
- Fine-tuning vs RAG vs prompting: which one do I actually need?
- What are embeddings, and how do I compare them?
- How do I get reliable JSON out of an LLM?
- How do I keep my AI API key out of the browser?
- Why does the model wrap its JSON in markdown code fences, and how do I stop it?
- How do I handle 429 rate limit errors from an LLM API?
- How do I stream an LLM response to the browser in Next.js?
- System prompt vs user message: what goes where?
- What is the difference between a chat completion and an agent?
- Why does an LLM give a different answer every time, and how do I make it consistent?
- What is a token, and why does my prompt cost more than I expected?
- What is a context window, and what happens when I exceed it?