RICS / backend /core /maximum_compose.py
StormShadow308's picture
Add demo documentation and Docker setup for v2 report generation system
aad7814
Raw
History Blame Contribute Delete
899 Bytes
"""Maximum AI — same in-place baseline adaptation as minimum/medium."""
from __future__ import annotations
from backend.core.reference_mapper import map_reference_paragraph
from backend.models.schema import TemplateSchema
def compose_maximum_ai(
observations: list[str],
reference_excerpts: list[str],
*,
section_title: str = "",
section_id: str = "",
schema: TemplateSchema | None = None,
rating_value: str | None = None,
) -> str:
"""Apply in-place fact updates to the assembled REFERENCE baseline."""
refs = [r.strip() for r in reference_excerpts if r.strip()]
sch = schema or TemplateSchema()
baseline = refs[0] if refs else ""
return map_reference_paragraph(
baseline,
observations,
sch,
"maximum",
section_id=section_id,
section_title=section_title,
rating_value=rating_value,
)