How to Build a Responsible AI Chatbot Using Open Technologies 7 Sections35 Lessons5 QuizzesLifetime
Tokens and context
A token is a small unit of text. It might be a word, part of a word, punctuation, or another symbol. Models read and write tokens rather than viewing language exactly as people view words.
The context window is the model’s working desk. It contains the instructions, current question, selected source passages, and some conversation history. If the desk becomes overcrowded, information may need to be removed or summarised.
In a responsible chatbot, the context can include:
- Instructions to answer only from retrieved book passages
- The most relevant passages found by search
- Up to the recent 10 conversation turns
- The student’s newest question
