I token sono le unità in cui gli LLM elaborano il testo (pezzi di parole), e la finestra di contesto è la quantità massima di testo (token) che un LLM può considerare contemporaneamente. Comprenderli è importante per utilizzare gli LLM in modo efficace, gestire i costi e affrontare i loro limiti.
Cosa sono i token
TOKEN → the unit LLMs process text in (not words/characters, but PIECES):
→ text is split into tokens (roughly ~4 characters or ~0.75 words each in English)
→ e.g. 'unbelievable' might be 3 tokens; common words are often 1 token
→ the model processes and generates token by token
→ LLMs work in tokens (input and output are measured in tokens)
