Short Answer

Correcting Datastore Construction in a k-NN Language Model

A developer is creating a datastore for a k-nearest-neighbor language model by processing the sentence 'The cat sat on the mat'. For the token 'sat', they create a key-value pair where the key is the model's final hidden state vector at the position of 'sat', and the value is the token 'sat' itself. Analyze why this construction is incorrect and describe the correct value that should be paired with this key.

0

1

Updated 2025-10-02

Contributors are:

Who are from:

Tags

Ch.2 Generative Models - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences

Analysis in Bloom's Taxonomy

Cognitive Psychology

Psychology

Social Science

Empirical Science

Science