Fill-in-the-Middle

Noun · AI & Machine Learning

Definitions

  1. A generation pattern where a model is asked to produce content that belongs between a provided prefix and suffix rather than simply continuing from the start. Fill-in-the-middle is especially useful for code editing because the surrounding context constrains what should be inserted.

    In plain English: Generating content that fits between existing beginning and ending context.

    Example: "The editor used fill-in-the-middle completion so the model could generate the missing helper function without rewriting the rest of the file."

Related Terms