Define RAG task and success criteria
Specify the retrieval corpus, query types, and concrete success metrics such as MRR, recall@k, factuality error rate and allowed latency.
Evaluate RAG systems. Tune retrieval and responses.
RAG evaluation and tuning focuses on measuring how retrieval and generation components combine to produce correct, attributed responses. Key concerns include retrieval accuracy, answer correctness, attribution to sources, latency and cost; human judgement is often required to measure answer usefulness and hallucination rates.
Learning concept · Not a validated service
RAG evaluation and tuning focuses on measuring how retrieval and generation components combine to produce correct, attributed responses. Key concerns include retrieval accuracy, answer correctness, attribution to sources, latency and cost; human judgement is often required to measure answer usefulness and hallucination rates.
A proposed application: a dashboard for ML engineers that summarises retrieval metrics (MRR, recall@k), generation quality (ROUGE, factuality checks) and sample traces, so humans can prioritise tuning or data collection. This extension is not implemented in the supplied starter.
Specify the retrieval corpus, query types, and concrete success metrics such as MRR, recall@k, factuality error rate and allowed latency.
Index a representative set of documents (or traces) and hold out queries with human-labelled gold passages for evaluation.
Combine a retriever (vector index) and a generator (LLM) to produce responses; log retrieved passages, model outputs and costs for each query.
Visualise MRR/recall, sample-by-sample failure cases, and enable rerunning experiments with varied retriever or reranker settings.
The supplied starter generates a synthetic tabular classification dataset (sklearn.make_classification), fits a scikit-learn pipeline with StandardScaler and RandomForestClassifier, then prints a classification report. It does not implement retrieval, vector indexes, LLMs, attribution, experiment logging or a dashboard.
model = Pipeline(
steps=[
("scale", StandardScaler()),
("classifier", RandomForestClassifier(n_estimators=250, random_state=RANDOM_STATE)),
]
)
model.fit(X_train, y_train)
predictions = model.predict(X_test)
print(PROJECT_NAME)
print(classification_report(y_test, predictions))The starter is a supervised tabular classification baseline using synthetic data and RandomForest; it contains no retrieval, vector database, LLM calls, provenance logging or dashboard code. It cannot be used to evaluate or tune RAG behaviour without substantial additional implementation and different datasets.
Proposed extension: build a small RAG experiment platform that indexes a document corpus, serves a retriever + LLM pipeline, records retrieved passages and model outputs, computes retrieval metrics (MRR, recall@k) alongside human judgements for factuality, and exposes a dashboard to compare runs and tune retriever thresholds.
This is a potential application pathway, not a delivered product. The supplied starter does not implement this service or validate it with real users.
Networkers Home runs this topic inside its AI Engineer Course, with placement support and hands-on labs.