AI-901 practice question: How generative AI models work and choosing a model (1 of 3)
Identify AI concepts and capabilities A free question from our original AI-901 practice exam. Try it, then open the answer to see why each option is right or wrong.
A hotel group's guest-review chatbot is billed by the amount of text it processes. The finance team asks why a long review costs more than a short one.
The developers explain that a generative language model splits text into smaller units before it processes the text.
Which description of these units is correct?
Choose one answer.
AA. A token is always one complete word, so a review's cost depends only on its number of words.
BB. A token is a word or word fragment, so a term such as hamburger can split into several tokens.
CC. A token is a numeric vector that captures the meaning of a sentence for similarity search.
DD. A token is a fixed slice of audio, so long reviews cost more to transcribe into text.
Show the answer and explanation
Answer: B
A. Wrong: Tokens are often whole words, but they are also word fragments, so one word can be several tokens. A complete-word rule misses that and would give the wrong cost estimate.
B. Right: Correct. Generative models read text as tokens, which are whole words or word fragments, and an uncommon word can be split into several pieces. Usage is counted in tokens, so longer reviews use more of them. Learn more: Introduction to AI concepts (opens in a new tab)
C. Wrong: That describes an embedding, which turns text into a vector so that meanings can be compared. Embeddings are not the units a chat model reads and generates one at a time.
D. Wrong: A fixed slice of audio is not the unit a text model works with, and the scenario involves written reviews rather than recordings. Text models count words or word fragments as tokens.
Explanation
Generative language models work on tokens, which are words or word fragments, and predict one token at a time. Usage and context limits are measured in tokens, so a longer review contains more tokens and costs more. Embeddings are a different thing: they are numeric vectors used to compare meaning.
Want more on How generative AI models work and choosing a model? The 5 full-length practice sets have 15 more How generative AI models work and choosing a model questions, 225 in all, none of them in the free exam. One payment of $9.99 $6.99, no subscription. Get the practice sets →
✓ Every exam starts with free questions. No account needed.
Can we use Google Analytics cookies to see which pages help people? No ads, and we never sell data. Privacy