Skip to main content

LLMOps and Evaluation Question Bank

No.Training UnitLectureTraining contentQuestionLevelMarkAnswerAnswer Option AAnswer Option BAnswer Option CAnswer Option DExplanation
1Unit 1: LLMOpsLec2RAGAS MetricsWhat does the Faithfulness metric measure in RAGAS?Easy1AThe truthfulness of the generated answer compared to the retrieved contextThe relevance of the answer to the original questionThe accuracy of the ranking of contextsThe coverage of the retrieval processFaithfulness checks if all statements in the answer can be supported by the retrieved context, avoiding hallucinations.
2Unit 1: LLMOpsLec2RAGAS MetricsWhich LLM framework is RAGAS designed to evaluate?Easy1BAgentsRAG systemsFine-tuned modelsTraditional Search EnginesRagas is an automated evaluation framework designed specifically for RAG systems.
3Unit 1: LLMOpsLec2RAGAS MetricsWhat do you need to annotate data manually when using RAGAS?Easy1CLarge scale human annotationsOnly expert domain knowledgeNothing, it uses LLMs like GPT-4 to automate evaluationBoth standard Q&A pairs and ranking queriesUnlike traditional methods, Ragas uses LLMs to automate the evaluation process without needing heavy human annotations.
4Unit 1: LLMOpsLec2RAGAS MetricsWhich dimension is measured by Context Precision?Easy1CQuality of generationSemantic similarity to the user queryAccuracy of the retrieval processCoverage of expected factsContext Precision measures the accuracy of the retrieval process by assessing the ranking of contexts.
5Unit 1: LLMOpsLec2RAGAS MetricsWhat is the main purpose of Answer Relevancy?Easy1DFact-checking the answerVerifying truthfulnessGuaranteeing context coverageMeasuring relevance between answer and original questionIt evaluates the relevance between the answer and question to confirm it addresses the problem asked.
6Unit 1: LLMOpsLec2RAGAS MetricsWhat value range do Ragas metrics return?Easy1B0 to 1000 to 1-1 to 11 to 5Each metric gives a value from 0 to 1, with higher values indicating better quality.
7Unit 1: LLMOpsLec2RAGAS MetricsWhich metric evaluates if relevant chunks are ranked high in retrieved contexts?Easy1CFaithfulnessContext RecallContext PrecisionAnswer RelevancyContext Precision checks if relevant chunks are ranked high in the list of retrieved contexts.
8Unit 1: LLMOpsLec2RAGAS MetricsHow many main metrics are covered in the RAGAS documentation?Easy1A4536The four main metrics are faithfulness, answer relevancy, context precision, and context recall.
9Unit 1: LLMOpsLec2RAGAS MetricsIf Context Recall is 0, what does that indicate?Easy1ARetriever failed to find necessary contextRank 1 is an irrelevant contextLLM generated hallucinationThe answer is irrelevant to the queryIt indicates the retriever failed to find context containing necessary information to answer the question.
10Unit 1: LLMOpsLec2RAGAS MetricsWhich two metrics evaluate the "retrieval" performance?Easy1BFaithfulness & Answer RelevancyContext Precision & Context RecallAnswer Relevancy & Context RecallContext Precision & FaithfulnessContext precision and context recall evaluate retrieval performance.
11Unit 1: LLMOpsLec2RAGAS MetricsDescribe the calculation process for Faithfulness in Ragas.Medium2ADecompose answer to statements, verify against context, calculate ratioGenerate questions, embed them, calculate cosine similarityDetermine context relevance, calculate Precision@k, aggregateDecompose reference answer, verify if inferences exist in retrieved contextThe process is: Decomposition (claims), Verification (checked against context), and Scoring (ratio).
12Unit 1: LLMOpsLec2RAGAS MetricsHow does Answer Relevancy determine its score technically?Medium2CBy classifying the answer using a trained classifierBy matching keywords between answer and questionBy reverse-engineering questions from answer and calculating embedding cosine similarityBy comparing the character count of answer vs questionLLM generates N questions from the given answer, converts them to embeddings, and compares cosine similarity with the original question.
13Unit 1: LLMOpsLec2RAGAS MetricsA low Context Recall score means what in terms of information availability?Medium2DThe information is hallucinatedThe answer has redundant informationThe retrieved information is scatteredThe necessary facts from the reference answer are missing in the retrieved contextsIt means the necessary information from the reference answer was not found in the retrieved contexts.
14Unit 1: LLMOpsLec2RAGAS MetricsIn Context Precision calculation, what is vkv_k?Medium2CVelocity of retrievalVolume of chunksRelevance indicator at position kValue of cosine similarityvk{0,1}v_k \in \{0, 1\} is the relevance indicator at position k.
15Unit 1: LLMOpsLec2RAGAS MetricsWhy might an answer score high in Faithfulness but low in Answer Relevancy?Medium2BThe answer is hallucinated but relevantThe answer is entirely true based on context but fails to address the user's specific questionThe retriever brought back poor contextThe context precision is very lowIt can be completely faithful to retrieved context, but that context (and answer) might not be what the user asked for.
16Unit 1: LLMOpsLec2RAGAS MetricsWhy is Faithfulness strictly compared to retrieved context and not world knowledge?Medium2ATo prevent LLM hallucinations from being counted as correct if the retriever failedRagas has no access to world knowledgeThe LLM doesn't know factsWorld knowledge costs more tokensRAG's core value is grounding generation on specific private/provided context, so it measures adherence to that context only to prevent unaccounted hallucinations.
17Unit 1: LLMOpsLec2RAGAS MetricsIf LLM splits an answer into 3 statements, and only 2 are verified in context, Faithfulness is?Medium2B0.50.670.331.0Faithfulness relies on the ratio of correct statements: 2 out of 3 makes it ~0.67.
18Unit 1: LLMOpsLec2RAGAS MetricsGiven a scenario where a user asks about Einstein's death, but the context only contains his birth, and the LLM answers "Einstein died in 1955" using its internal knowledge. What are the RAGAS metric implications?Hard3BHigh Faithfulness, Low Answer RelevancyLow Faithfulness, High Answer RelevancyLow Faithfulness, Low Context RecallHigh Context Precision, High Context RecallIt answers the user (High Relevancy), but the claim isn't in context, making Faithfulness low.
19Unit 1: LLMOpsLec2RAGAS MetricsTo improve Context Precision in a RAG pipeline, what architecture modification would you introduce?Hard3CIncrease LLM temperatureSwap FAISS for ChromaDBAdd a Cross-encoder reranking stepGenerate multiple answers and average themReranking specifically improves the order/ranking of retrieved chunks, heavily impacting Context Precision metrics.
20Unit 1: LLMOpsLec2RAGAS MetricsDetail the mathematical rationale behind using N reverse-engineered questions for calculating Answer Relevancy.Hard3AAverages out the stochastic nature of LLMs generating questions to provide a stable semantic similarityIt is required to satisfy vector dimensionsOne question uses up too few tokensN acts as a padding token for embeddingsGenerating N questions and averaging their cosine similarities mitigates the variance inherent in LLM generation, ensuring a robust relevancy score.
21Unit 2: ObservabilityLec6Observability ConceptsWhat is Observability in the context of LLM applications?Easy1AThe ability to track flows, errors and costs of LLM apps acting as black boxesA library for generating UI codeA vector databaseThe algorithm used for chunking textsIt tracks probabilistic components acting as black boxes, aiding in tracing, tracking costs, and debugging.
22Unit 2: ObservabilityLec6LangFuse BasicsWhich of these tools is known for being Open Source?Easy1BLangChainLangFuseLangSmithOpenAILangFuse is a popular open-source tool focusing on engineering observability.
23Unit 2: ObservabilityLec6Observability ChallengesWhat makes LLM applications harder to debug than traditional software?Easy1CThey use more memoryThey require internet connectionsThey involve probabilistic, non-deterministic componentsThey use PythonYou give input, get output. LLMs act as probabilisitic black boxes.
24Unit 2: ObservabilityLec6LangSmith BasicsWho built LangSmith?Easy1BGoogleThe LangChain TeamOpenAIMetaLangSmith is built by the LangChain team for native integration.
25Unit 2: ObservabilityLec6LangFuse IntegrationIn LangFuse, what is used to automatically instrument LangChain chains code?Easy1CSystem.out.printlnVectorEmbeddingsCallbackHandlerFAISSLangFuse provides a CallbackHandler that automatically instruments chains.
26Unit 2: ObservabilityLec6Prompt ManagementWhy should you manage prompts in a tool like LangFuse instead of hardcoding in Git?Easy1ATo allow non-engineers to tweak themBecause Git is too slowBecause Git charges per tokenTo hide prompts from developersIt acts as a CMS for prompts so non-engineers can comfortably inspect and tweak them.
27Unit 2: ObservabilityLec6SetupHow can you enable LangSmith auto-tracing in a LangChain project usually?Easy1DRewrite all code to use LangSmith classesContact support to enable itImport enable_smith moduleJust set environment variablesLangSmith is magic; you often don't need code changes, just environment variables.
28Unit 2: ObservabilityLec6Production Best PracticesWhat is the recommended tracing sampling rate for Production environments?Easy1C100%50%1-5% of trafficNoneIn production, tracing every request is noisy and expensive, so 1-5% or high importance traces are recommended.
29Unit 2: ObservabilityLec6PrivacyHow handle PII Data Privacy before logging to a cloud observability tool?Easy1BDo nothingRun PII Masking/Redaction functionsEncrypt with simple base64Delete all logsNever log sensitive data; run PII Masking or use enterprise redacting features.
30Unit 2: ObservabilityLec6AlertsWhat is an example of a good alert to set up in observability?Easy1AError Rate Spike > 10% in 5 min"Hello World" printedCPU temperatureSingle user logged outYou should alert on things like Error Rate > 10%, Latency Spikes, or Cost Anomalies.
31Unit 2: ObservabilityLec6LangFuse vs LangSmithIf self-hosting data privacy is an absolute requirement and budget is zero, which tool is recommended?Medium2CWeights & BiasesLangSmithLangFuseCloudWatchLangFuse is Open Source (MIT) and offers easy self-hosting (Docker Compose) for free.
32Unit 2: ObservabilityLec6LangSmith PlaygroundWhat is the "Playground: Edit and Re-run" feature in LangSmith useful for?Medium2AYou can take a failed production trace, change the prompt, and test a fix immediatelyTraining new modelsDeploying code to AWSChatting with other developersIt allows you to take failed real-world traces and edit prompts/parameters to instantly see if the issue resolves.
33Unit 2: ObservabilityLec6Latency DebuggingIf a RAG request takes 10 seconds, how does tracing help?Medium2BIt makes the query fasterIt breaks down the latency per component (e.g., Vector DB vs API completion)It charges the user for the wait timeIt cancels requests longer than 5 secondsTracing visualizes the execution flow, pinpointing exactly which step (Vector Search vs Generate) is the bottleneck.
34Unit 2: ObservabilityLec6Cost TrackingWhy is Cost Tracking a critical feature in LLM Observability compared to traditional app monitoring?Medium2DBecause AWS charges are cheapBecause you don't need serversBecause LLMs don't cost real moneyBecause LLM API calls are charged per-token and single runaway loops can cost hundreds of dollars quicklyAPI calls are expensive, requiring real-time tracking to prevent unmanaged financial overruns.
35Unit 2: ObservabilityLec6Langchain IntegrationWhat environment variable activates LangSmith tracing?Medium2BLANGCHAIN_DEBUG=1LANGCHAIN_TRACING_V2=trueLANGCHAIN_LOG=allLANGSMITH_ACTIVE=1export LANGCHAIN_TRACING_V2=true activates LangSmith native tracing.
36Unit 2: ObservabilityLec6Prompt CMSHow do you fetch a production prompt dynamically using LangFuse SDK?Medium2AUsing langfuse.get_prompt(name, version)Reading from a local .json fileExecuting a GraphQL query to GithubUsing prompt = os.getenv('PROMPT')Langfuse acts as a CMS and lets you retrieve prompts using get_prompt("name", version="production").
37Unit 2: ObservabilityLec6Alerts & Best PracticesWhy shouldn't you just "stare at dashboards" for production LLM apps?Medium2AYou need automated alerts (error spikes, costs) to respond fast to anomaliesDashboards are always brokenIt slows down the computerObservability doesn't provide dashboardsDashboards are passive. Automated alerts are needed to actively manage sudden cost, latency, or error anomalies.
38Unit 2: ObservabilityLec6Advanced LangChain IntegrationYou have a complex application utilizing standard Python code, LangChain agent loops, and custom API calls. Should you prefer LangSmith or LangFuse, and why?Hard3BLangSmith, because it supports Python natively betterLangFuse, because it is platform-agnostic and instruments cleanly across non-LangChain code too.LangSmith, because LangChain is mandatory.LangFuse, because it has an "Edit and Re-run" playground.LangFuse is platform-agnostic for non-LangChain code, making it better for mixed-stack integrations, while LangSmith is highly specific and native to LangChain execution loops.
39Unit 2: ObservabilityLec6Debugging ScenariosIn production, users report the chatbot occasionally ignores their negative feedback instructions. How would you leverage LangSmith to resolve this?Hard3CBy deleting the user history and trying againCheck the VectorDB logsLocate the failed traces in LangSmith, transition them to the Playground, adjust the system prompt, and replay to verify complianceRe-index the FAISS databaseLangSmith's Playground allows you to take directly failed traces, manipulate the prompt, and replay the exact trace environment to find the fix.
40Unit 2: ObservabilityLec6Data Security ArchitectureExplain a robust architectural design for handling HIPAA/PII compliance while using a SaaS LLM Observability platform like LangSmith Enterprise.Hard3ARun an edge/middleware service that performs localized PII Entity masking/redaction before transmitting traces to the LangSmith APIAvoid observability tools completelyShare passwords directly via the agentMask PII inside the LangSmith GUIPII must not leave the secure perimeter; redaction must happen at the application layer or middleware before data is shipped via logs/traces.
41Unit 3: ArchitectureLec10RAG ArchitecturesWhat is the main characteristic of Naive RAG?Easy1ARelies purely on semantic vector similarity searchCombines Graph and VectorUses query transformationExtracts relationshipsNaive RAG relies purely on semantic similarity and simple Top-K lookup.
42Unit 3: ArchitectureLec10RAG ArchitecturesWhich element separates Advanced RAG from Naive RAG?Easy1BConnecting to APIsHybrid search (Vector + BM25) and RerankingUsing GPT-4Splitting textAdvanced uses hybrid search, query transformations like HyDE, and reranking.
43Unit 3: ArchitectureLec10RAG ArchitecturesWhat structure does GraphRAG utilize?Easy1CRelational SQL tablesSimple vector arraysKnowledge graph + vectors with nodes and edgesDocument JSON treesGraphRAG utilizes knowledge graphs, treating entities as nodes and relationships as edges.
44Unit 3: ArchitectureLec10RAG ArchitecturesWhat is a major disadvantage of Naive RAG?Easy1DHigh costExtremely slowToo complexNo relationships mapping, treats chunks as islandsSimple RAG ignores relationships, treating every text chunk as an isolated island.
45Unit 3: ArchitectureLec10RAG ArchitecturesWhat is semantic chunking?Easy1BCutting text by character limitSplitting text based on meaning breaksChunking by number of wordsRandomly breaking paragraphsSemantic chunking splits text based on meaning boundaries rather than arbitrary character counts.
46Unit 3: ArchitectureLec10RAG ArchitecturesIn Advanced RAG, what does the "Cross-encoder reranking" do?Easy1AIt re-scores retrieved results to maximize true relevanceIt generates the final answerIt translates the queryIt graphs the entitiesReranking is a heavy, accurate scoring model that filters noise from initial retrieval results.
47Unit 3: ArchitectureLec10RAG ArchitecturesWhat is a "multi-hop" query?Easy1BA query traversing multiple serversA question that requires connecting facts across different documentsA fast queryA query generating 5 hopsIt requires the system to traverse A -> B -> C across different chunks/nodes to answer.
48Unit 3: ArchitectureLec10RAG ArchitecturesWhat graph database is typically highlighted for GraphRAG use cases?Easy1CPostgreSQLMongoDBNeo4jRedisNeo4j is a popular graph database for exploring nodes and edges.
49Unit 3: ArchitectureLec10RAG ArchitecturesWhich system combines Vector + Graph + Routing?Easy1DNaiveAdvancedGraphRAGHybrid SystemThe Hybrid System attempts to synthesize both graph and advanced vector search via routing.
50Unit 3: ArchitectureLec10RAG ArchitecturesTo execute an experimental comparison, what data split was used?Easy1A20 Train, 180 Test100 Train, 100 Test50 Train, 150 TestNo splitThe dataset was strictly split into 20 questions for Train (prompt tuning) and 180 for Test.
51Unit 3: ArchitectureLec10RAG ArchitecturesExplain the concept of HyDE in Advanced RAG.Medium2BHybrid Data ExecutionHypothetical Document Embeddings: Generating a hypothetical answer to search againstHigh Yield Document ExtractionHierarchical Dynamic ExtractionQuery transformation rewrites ambiguous queries or generates hypothetical answers to improve semantic matching.
52Unit 3: ArchitectureLec10RAG ArchitecturesWhy does GraphRAG perform exceptionally well on Relational and Multi-Hop Questions compared to Naive RAG?Medium2CIt uses a larger Embedding ModelIt stores more documentsIt has explicit defined relationships separating entities, letting it traverse A->B->C seamlesslyIt generates shorter answersGraphRAG explicitly builds "knows how things are connected" structures, preventing loss of context.
53Unit 3: ArchitectureLec10RAG ArchitecturesName the primary trade-off encountered when building a Hybrid RAG system.Medium2DLower overall qualityReduced contextual awarenessSlower vector lookupsHighest complexity, highest cost, and immense maintenance burdenWhile offering peak recall, it combines all pipelines, meaning severe engineering complexity and top cost.
54Unit 3: ArchitectureLec10RAG ArchitecturesIn evaluation design, why is "Number of API calls" considered an important metric?Medium2AIt is a direct measure of system complexity, cost, and risk of failure for the architectureIt measures token lengthIt tells us if OpenAI is downIt determines the embedding algorithmA complex agent/RAG design with many API calls risks cascading failures and multiplies costs quickly.
55Unit 3: ArchitectureLec10RAG ArchitecturesWhen should you purposefully choose Naive RAG over Advanced RAG?Medium2CWhen queries are highly relationalWhen budget is unlimitedWhen dealing with simple factual questions, low-latency requirements, and very small document datasets (< 50 docs)When needing hybrid searchNaive RAG excels at being fast, cheap, and simple for small boundaries of facts where deep ranking isn't needed.
56Unit 3: ArchitectureLec10RAG ArchitecturesHow does Community Detection (e.g. Leiden algorithm) assist GraphRAG?Medium2BIt deletes old nodesIt groups related nodes into subgraphs, allowing the retrieval of entire themes or communities as contextIt ranks vectors by similarityIt manages API rate limitsCommunity detection algorithms find clusters of related entities, helping abstract higher level context.
57Unit 3: ArchitectureLec10RAG ArchitecturesIn a Hybrid system, how does "Adaptive Routing" theoretically work to improve efficiency?Hard3ABy using a classifier LLM/model to inspect the incoming query to decide whether Graph traversal or Vector search is necessary before executingBy sending all queries to all databasesBy routing requests to cheaper cloud regionsBy storing data in multiple placesAn intelligent routing step analyzes the query intent (e.g., Relational vs Factual) and directs traffic to the most efficient specific sub-pipeline to balance cost vs quality.
58Unit 3: ArchitectureLec10RAG ArchitecturesCritically analyze the phrase "Entity extraction quality: Garbage in, garbage out" inside the context of GraphRAG setup.Hard3DEntity extraction is cheap so it doesn't matterVector DBs handle bad entities naturallyIt means Neo4j databases corrupt easilyIf the LLM extracting (Subject, Predicate, Object) fails to identify correct ontological boundaries initially, the resulting Graph structure will be noisy and useless for retrievalThe entire Graph relies on the accuracy of the foundational knowledge extraction step. Bad extraction leads to bad graphs.
59Unit 3: ArchitectureLec10RAG ArchitecturesAssume a system integrates BM25 and Dense Vectors. Describe a mathematically robust way to merge these distinct ranked result lists.Hard3AReciprocal Rank Fusion (RRF)Just concatenate themOnly use the Dense Vector resultsAverage the raw similarity scores directlyRRF is critical because BM25 scores (sparse) and Cosine Similarity (dense) exist on different scales. RRF merges based on positional ranks.
60Unit 3: ArchitectureLec10RAG ArchitecturesSynthesize a final recommendation: You're launching an enterprise startup for legal documents covering 1M+ PDF pages. You have a mid-range budget but need flawless Relational analysis. What's the pragmatic technical roadmap?Hard3CStart Naive RAG -> Scale to NaiveBuild a massive Hybrid System on day oneStart with Advanced RAG as default for stability and search quality, then phase in GraphRAG specifically for mapping explicitly defined legal contract relationshipsUse GraphRAG for everythingThe text suggests Advanced RAG as the definitive pragmatic baseline, while GraphRAG is specialized for highly relational data. Building hybrid early is too risky and costly.