Spaces:
Sleeping
Sleeping
|
Download docs/md/design/application/report_service.md from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/application/report_service.md
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/docs/md/design/application/report_service.md
-
curl -L -o report_service.md https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/docs/md/design/application/report_service.md
1.1 kB
Application: ReportService
Code: adsp/app/report_service.py
Purpose
ReportService generates stakeholder-friendly reports from computed persona insights.
Responsibilities
- Accept structured “insights” payloads
- Write report artifacts (currently markdown) to an output directory
Public API
generate(persona_id: str, insights: dict) -> pathlib.Path
Inputs
persona_id: identifier used to name the report fileinsights: arbitrary dictionary to embed in the report body
Output
- Returns the filesystem path where the report was written:
{output_dir}/{persona_id}_report.md
Internal logic (current)
- Constructs
report_path - Writes a markdown stub containing the
insightsdict (stringified) - Returns
report_path
Key dependencies / technologies
- Python
dataclasses pathlib.Pathfile IO
Notes / production hardening
- Define a report schema (sections, citations, charts).
- Export to PDF/HTML and store in object storage.
- Add provenance: include evidence snippets and page citations from persona indicators.