Llama LLM MCQ Questions and Answers
Q1. What is Retrieval-Augmented Generation (RAG)?
A. A technique for generating text without any external knowledgeB. A method that combines retrieval-based and generation-based approaches for text generation
C. A framework for training language models exclusively on retrieved documents
D. An approach that replaces language models with knowledge retrieval systems
Q2. What problem does RAG primarily aim to solve?
A. The inability of language models to generate coherent textB. The outdated knowledge in pre-trained language models
C. The slow processing speed of large language models
D. The limited creativity of generative AI systems
Q3. Which of the following is a key component of a RAG system?
A. A vector database for storing embeddingsB. A web crawler for finding new information
C. A reinforcement learning module
D. A hardware acceleration unit
Q4. How does RAG improve over traditional language models?
A. By significantly increasing the parameter count of the modelB. By eliminating the need for a language model entirely
C. By enhancing factuality and reducing hallucinations
D. By focusing solely on generating creative content
Q5. Which embedding technique is commonly used in RAG systems?
A. One-hot encodingB. Dense vector embeddings
C. Binary encodings
D. Random projections
Q6. What is the role of a retriever in a RAG system?
A. To generate responses based on user queriesB. To parse and preprocess user input
C. To find and retrieve relevant information from a knowledge base
D. To evaluate the quality of generated responses
Q7. When implementing a RAG pipeline, what metric is commonly used to evaluate retrieval quality?
A. PerplexityB. Recall@k
C. BLEU score
D. F1 score
Q8. What distinguishes hybrid search from pure vector search in RAG systems?
A. Hybrid search only uses keywords while vector search uses embeddingsB. Hybrid search combines vector search with traditional keyword-based approaches
C. Hybrid search is significantly slower but more accurate
D. Hybrid search only works with structured data
Q9. What is the purpose of re-ranking in a RAG pipeline?
A. To compress retrieved documents for faster processingB. To further refine the initial retrieval results for better relevance
C. To translate retrieved documents into the target language
D. To create summaries of retrieved documents
Q10. What is a common challenge in RAG systems related to document chunking?
A. Ensuring chunks are exactly the same sizeB. Finding the optimal chunk size to balance context preservation and specificity
C. Eliminating all overlap between chunks
D. Converting all chunks to the same file format
Q11. What is the role of prompt engineering in a RAG system?
A. To automatically generate user queriesB. To design effective ways to incorporate retrieved information into LLM instructions
C. To create embeddings for vector search
D. To compress the knowledge base