Skip to content

MediumConceptNLP, LLMs and retrieval

What is the attention mechanism computing?

What a good answer covers

For each token it compares a query with keys of other tokens to get weights and uses them to average the values, so the representation of a token depends on the relevant context.

More on NLP, LLMs and retrieval

Flashcards for this topic