Prefix

Noun · AI & Machine Learning

Definitions

  1. The starting portion of a prompt, sequence, or context that comes before what the model is asked to generate or complete. Prefixes are important in generation patterns like autocomplete and fill-in-the-middle because they strongly constrain the continuation.

    In plain English: The beginning part of the prompt or sequence that comes before the generated content.

    Example: "They trimmed repetitive boilerplate from the prefix so the coding assistant could focus more of the context window on the actual file content."

Related Terms