Skip to main content

Redline Pipeline

2 requirements · 4 scenarios

Structured Output for First-Pass Analysis

JR-redline-pipeline-001
The redline pipeline first-pass LLM analysis SHALL use structured generation (JSON schema) to extract analysis rows, ensuring guaranteed schema compliance for all fields including risk scores.
2 test scenarios
  • Successful structured generation JR-redline-pipeline-001.1
  • Structured generation fallback JR-redline-pipeline-001.2

RedlineAnalysisRow Pydantic Model

JR-redline-pipeline-002
The system SHALL define a RedlineAnalysisRow Pydantic model with the following fields:
- issue: str - Brief heading (2-5 words)
- original_draft: str - Original text with citations
- revised_draft: str - Revised text with citations
- legal_implications: str - Legal analysis
- risk_score: int - Constrained to 1-10
2 test scenarios
  • Risk score validation JR-redline-pipeline-002.1
  • Empty field handling JR-redline-pipeline-002.2