Untitled
unknown
plain_text
a year ago
1.7 kB
8
Indexable
prompt = f"""
You are a data analyst expert.
**Task**:
1. Produce a **broad textual overview** of what this data represents and what each chart/table will depict.
- The overview must be returned in **JSON** format with these fields:
```json
{{
"title": "...",
"tags": [...],
"features": [...],
"description": "..."
}}
```
2. Then generate **one single, self-contained HTML** code block (using Plotly for each widget).
- For each chart type (donut, bar, table, etc.), embed the Plotly script from a CDN.
- After each chart in the HTML, include a short <p> or <div> explaining that chart (“detailed explanation”).
3. **Return** them in the exact format:
OVERVIEW_START
[JSON overview here]
OVERVIEW_END
HTML_START
[HTML code here]
HTML_END
- Do **not** put the overview inside the HTML.
- No extra text outside these markers.
**Additional Details**:
- Generate **{len(sections)} sections** and **{state['template_widgets']}** charts from the following sections data:
{sections}
- This template has multiple sections, each containing widgets with one chart/analysis.
- The data covers compliance (RBI requirements, notices), branding (hoardings), administrative checks (CCTV, hygiene), support staff details, system/digital issues, customer service (complaints), loan processing (TAT, trackers), business targets, training, and an employee board.
**Here is the 'template' array** you must process:
{template_data_str}
Please produce only the final text in the required format now:
- `OVERVIEW_START ... OVERVIEW_END` (JSON overview)
- `HTML_START ... HTML_END` (HTML code with Plotly).
"""
Editor is loading...
Leave a Comment