ML components are optional enhancements, not replacements. Pattern-based extraction
remains primary; ML provides additional capabilities. System reverts gracefully
if ML models are unavailable or undesired.
Processing flow: Case Text → Pattern extraction → ML enhancement (optional) → Storage.
Components are modular and can be evaluated independently.
Analysis Execution: All ML analysis (comparative case group analysis,
semantic similarity, clustering) is pre-computed offline, not performed on live CaseLinker
instances. Results are stored and served via API endpoints, ensuring performance and
consistency without impacting real-time case processing.
Deployment: ML dependencies are available in requirements-ml.txt
for local development. Production builds use requirements.txt (ML deps commented)
for faster deployment; all ML code remains in the repository.