wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Quiz on Large Language Models and RAG

Total questions: 35

Worksheet time: 18mins

Name
Class
Date
1.

What is the defining characteristic of a Large Language Model (LLM)?

a)

Only trained on code.

b)

A deep neural network trained on a massive amount of text data.

c)

Cannot generate new content.

2.

Which of the following is not listed as a use case category for Generative AI in the materials?

a)

Text and Code.

b)

Purely administrative task logging.

c)

Image and Data Augmentation.

3.

The two key blocks in the original Transformer Architecture are:

a)

Input and Output.

b)

Encoder and Decoder.

c)

Query and Key.

4.

What is the key advantage of Parallel Processing in Transformers over the sequential processing used by RNNs?

a)

It requires less training data.

b)

It allows for much faster training and better contextual understanding.

c)

It eliminates the need for any pre-training.

5.

Which specific mechanism is used in the Decoder's self-attention layer to ensure it only attends to tokens that came before it?

a)

Feed-Forward Masking.

b)

Masked Self-Attention.

c)

Positional Encoding.

6.

What is the final step in the Full Fine-Tuning workflow after all weights have been trained and evaluated?

a)

Chunking the data.

b)

Save the updated model.

c)

Rerunning the pre-training phase.

7.

In the context of the Attention mechanism, what calculation determines how related each word is to the others?

a)

Residual Connection.

b)

Similarity Measure (e.g., dot product) between Query and Key.

c)

Layer Normalization.

8.

According to the materials, which model architecture is Encoder-only?

a)

GPT.

b)

BERT.

c)

T5.

9.

What is the primary benefit of Fine-Tuning a pre-trained LLM?

a)

To decrease the number of parameters.

b)

To adapt the model to a specific task, domain, or desired tone.

c)

To convert the model to an Encoder-only structure.

10.

What percentage of compute resources can PEFT techniques typically save compared to Full Fine-Tuning?

a)

10.

b)

90.

c)

50.

11.

Which of the following is not a specific PEFT technique mentioned in the materials?

a)

LoRA.

b)

Softmax Activation.

c)

Adapter Tuning.

12.

When is Full Fine-Tuning best suited?

a)

When compute resources are severely limited.

b)

For a new domain with a large proprietary dataset.

c)

Only for multilingual models.

13.

What term is used for the process of converting an LLM's prompt into a set of instructions using a declarative approach like YAML?

a)

Vectorizing.

b)

Prompt Declaration Language (PDL).

c)

Transformer Activation.

14.

In the Fine-Tuning workflow, after preparing the labeled dataset, what is the immediate next step?

a)

Deploying the model.

b)

Tokenize the data.

c)

Performing a semantic search.

15.

What is the role of Residual Connections within a Transformer block?

a)

To add non-linearity.

b)

To prevent vanishing gradients during training.

c)

To compute the attention scores.

16.

What is the purpose of Layer Normalization in a Transformer?

a)

To select the final output token.

b)

To stabilize training by normalizing the layer inputs.

c)

To calculate the cosine similarity.

17.

Which of the following is not one of the core components of the RAG architecture?

a)

Retriever.

b)

Data Tokenizer.

c)

Knowledge Base.

18.

The main idea behind RAG is a model that:

a)

Generates images from text.

b)

Looks up facts in an external knowledge base before generating a response.

c)

Only answers questions based on its pre-training data.

19.

Which step in the RAG process is where the user question is converted into a vector form?

a)

Step 4: Final Generation.

b)

Step 1: Query Understanding.

c)

Step 3: Context Injection.

20.

What is the benefit of using RAG over simply relying on the LLM's pre-training memory?

a)

It makes the model smaller.

b)

It enhances factual accuracy and provides more updated information.

c)

It speeds up the model's training time by 90.

21.

In RAG, what is the role of the Retriever component?

a)

To generate the final output text.

b)

To search the knowledge base/vector database for the most relevant documents.

c)

To adjust the model's temperature parameter.

22.

RAG is often described as a solution to the problem of LLMs having no access to:

a)

The internet at all times.

b)

Real-time or domain-specific data outside of their training data.

c)

More than 100 parameters.

23.

The RAG architecture is commonly referred to as the combination of:

a)

Encoder and Decoder.

b)

Retrieval and Generation loop.

c)

Classification and Clustering.

24.

Which step in RAG involves searching the Vector Database for the top-k relevant results?

a)

Query Understanding.

b)

Document Retrieval.

c)

Final Answer Generation.

25.

What is a major advantage of RAG in terms of model maintenance?

a)

It allows the LLM to be retrained weekly.

b)

It reduces the need for frequent LLM retraining when new data becomes available.

c)

It replaces the need for embeddings entirely.

26.

What is the key functional difference between BERT and GPT architectures, as noted in the materials?

a)

BERT uses Multi-Head Attention, but GPT does not.

b)

BERT is Encoder-only (Contextual Understanding), while GPT is Decoder-only (Generation).

c)

BERT uses parallel processing, but GPT uses sequential.

27.

According to the materials, the IBM Granite Model Series is optimized for:

a)

Low-latency social media post generation.

b)

Reliability, transparency, and domain adaptation for enterprise applications.

c)

Exclusive use as a time-series forecasting model.

28.

What must happen to a raw text document before it can be converted into an embedding?

a)

It must be fully translated into one language.

b)

It must be divided into smaller text 'chunks'.

c)

It must be compressed into a zip file.

29.

Why is Text Chunking necessary in the process of building a RAG pipeline?

a)

To save on storage space in the Vector DB.

b)

To fit content within the LLM's context window and maintain contextual continuity.

c)

To increase the dimensionality of the resulting vector.

30.

The core idea of Semantic Similarity (enabled by embeddings) is that:

a)

All words are treated as unique, discrete keys.

b)

Words or phrases with similar meaning will have vectors that are close in multidimensional space.

c)

Only exact keyword matches will be retrieved from the database.

31.

In the Vector DB context, a small angle between two vectors suggests:

a)

Low similarity (high distance).

b)

High similarity (close meaning).

c)

The vectors are not indexed.

32.

What critical information is typically stored alongside an embedding in a Vector Database to aid the RAG process?

a)

The model's training objective.

b)

Metadata (e.g., source, page number, topic).

c)

The entire LLM parameter set.

33.

What is the primary reason why models cannot process raw text directly?

a)

Raw text is too long.

b)

Models can only process numerical data.

c)

Raw text is always proprietary.

34.

What is one of the Core Operations in a Vector Database, besides searching and inserting?

a)

Grammar Checking.

b)

Indexing to optimize performance.

c)

Generating a full fine-tuning dataset.

35.

What is the term for the numerical form of meaning that captures context, tone, and semantics?

a)

Tokenization.

b)

Text Embedding.

c)

Full Fine-Tuning.