Module 3 Lab: Storage, indexing, and retrieval

Module 3 Lab: Storage, indexing, and retrieval#

Compare tabular, document, and vector storage options.

Lab Context#

This lab uses synthetic pipeline events with freshness, schema drift, lineage completeness, volume, and access-risk indicators as a safe proxy for the course setting. It is not a substitute for institutional data, but it lets you practice the reasoning, metrics, and documentation pattern before working with real records.

Lab Tasks#

  1. Run the baseline analysis.

  2. Identify the decision the metric supports.

  3. Change one threshold, score weight, or input assumption.

  4. Compare the result before and after your change.

  5. Record one deployment risk that the synthetic data cannot reveal.

import numpy as np
import matplotlib.pyplot as plt

rng = np.random.default_rng(3)
n = 80
evidence_quality = rng.uniform(0.2, 0.95, n)
operational_fit = rng.uniform(0.1, 0.9, n)
risk = rng.uniform(0.05, 0.8, n)
readiness = 0.45*evidence_quality + 0.35*operational_fit - 0.20*risk

plt.figure(figsize=(6, 3))
plt.scatter(evidence_quality, readiness, c=risk, cmap="magma", s=24)
plt.xlabel("evidence quality")
plt.ylabel("readiness")
plt.title("Module 3 Lab: Storage, indexing, and retrieval")
plt.tight_layout()

{"mean_readiness": float(readiness.mean()), "highest_readiness_case": int(np.argmax(readiness)), "highest_risk_case": int(np.argmax(risk))}
{'mean_readiness': 0.3486347113290175,
 'highest_readiness_case': 64,
 'highest_risk_case': 25}
../_images/9db81b228132e68c3e0e28b220438dbff15d6f82bc7e585cb79aace792b57909.png
reflection = {
    "what_changed": "",
    "metric_before": "",
    "metric_after": "",
    "interpretation": "",
    "synthetic_data_limit": "",
    "next_real_world_evidence_needed": "",
}
reflection
{'what_changed': '',
 'metric_before': '',
 'metric_after': '',
 'interpretation': '',
 'synthetic_data_limit': '',
 'next_real_world_evidence_needed': ''}