Generative AI Exercises

Fill in the blanks to test your knowledge.

1

Name the basic unit of text that LLMs process

// LLMs split text into small pieces called s

2

Identify the parameter that controls output randomness

response = model.generate(

prompt=prompt,

=0.7

)

3

Name the role that sets overall model behavior

messages = [
{ "role": "", "content": "You are a helpful assistant." }
]
4

Identify the role for user-provided input

messages.append({
"role": "",
"content": "What is Python?"
})
5

Name the parameter limiting the number of output tokens

response = model.generate(

prompt=prompt,

=512

)

6

Identify the type of model that converts text to vectors

// Used for semantic search and similarity

// Called an model

7

Name the technique of fine-tuning with human feedback

// Aligns model outputs with human preferences

// Acronym:

8

Identify what RAG stands for in LLM architecture

// Augments LLM with retrieved documents

// RAG = Retrieval- Generation