PromptForge
All topics

Topic · 21 resources

AI for Coding

Debugging, reviewing and refactoring with AI assistance — and the discipline of verifying generated code before it reaches a codebase you are responsible for.

Projects2

Challenges2

Articles1

Glossarys9

Token

A token is the unit of text an AI model reads and writes — roughly four characters or three-quarters of a word in English. Models price by the token and cap context by the token, so token count determines both what you pay and what fits.

Tokenizer

A tokenizer is the component that splits text into tokens before a model processes it. Different model families use different tokenizers, which is why the same text can have different token counts on GPT versus Claude.

System prompt

A system prompt is a standing instruction that shapes a model's behaviour across an entire conversation, separate from individual user messages. It typically defines persona, rules, tone and output format.

Function calling

Function calling lets a model request that your code run a specific function with specific arguments. You expose tool definitions; the model returns a structured call, your code executes it, and the result goes back into the conversation.

Reasoning model

A reasoning model is trained to generate extended internal deliberation before answering. It trades latency and cost for substantially better performance on maths, logic, coding and multi-step problems.

Reranking

Reranking takes an initial set of retrieved candidates and reorders them with a more accurate but slower model. It is one of the cheapest ways to materially improve RAG quality.

ReAct pattern

ReAct (Reason + Act) is the core agent loop: the model reasons about what to do, takes an action via a tool, observes the result, then reasons again. It repeats until it can answer.

Tool use

Tool use is a model invoking external capabilities — search, code execution, database queries, APIs — to do things it cannot do from parameters alone, such as fetching current data or performing exact arithmetic.

Model drift

Model drift is when a hosted model's behaviour changes over time as the provider updates it, causing prompts that worked reliably to degrade without any change on your side.

Prompts7

Related topics