Spaces:
Runtime error
Runtime error
File size: 918 Bytes
aad7814 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | """Medium AI — same in-place baseline adaptation as minimum/maximum."""
from __future__ import annotations
from backend.core.reference_mapper import map_reference_paragraph
from backend.models.schema import TemplateSchema
def expand_medium_ai(
observations: list[str],
reference_paragraph: str,
*,
extra_references: list[str] | None = None,
schema: TemplateSchema | None = None,
section_title: str = "",
section_id: str = "",
rating_value: str | None = None,
) -> str:
"""Map notes onto the full REFERENCE baseline via in-place fact update."""
_ = extra_references
sch = schema or TemplateSchema()
return map_reference_paragraph(
reference_paragraph,
observations,
sch,
"medium",
section_id=section_id,
section_title=section_title,
rating_value=rating_value,
extra_references=extra_references,
)
|