Skip to content

Commit 9656111

Browse files
authored
[deploy] version 0.8 alpha 1
Dev
2 parents 00d0f5e + b0c7153 commit 9656111

314 files changed

Lines changed: 20129 additions & 64000 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitignore‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ build/
99
dist/
1010
experiment_data/
1111

12-
py-src/eval_rec_ts/*
13-
py-src/evaluation_old/*
14-
1512
## Ignore Visual Studio temporary files, build results, and
1613
## files generated by popular Visual Studio add-ons.
1714
##

‎DEVELOPMENT.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ uv run data_formulator --dev # Run backend only (for frontend development)
7979
Open [http://localhost:5173](http://localhost:5173) to view it in the browser.
8080
The page will reload if you make edits. You will also see any lint errors in the console.
8181
82+
### Advanced: developing against a local `flint-chart`
83+
84+
DF depends on the published [`flint-chart`](https://www.npmjs.com/package/flint-chart) package;
85+
by default (`FLINT_CHART_LOCAL` unset) the bare `flint-chart` import resolves to that npm package.
86+
87+
For co-development against a local Flint checkout with hot reload, point `FLINT_CHART_LOCAL` at
88+
its source when starting the dev server (or tests):
89+
90+
```bash
91+
FLINT_CHART_LOCAL=../flint-chart/packages/flint-js/src yarn start
92+
# tests:
93+
FLINT_CHART_LOCAL=../flint-chart/packages/flint-js/src yarn test
94+
```
95+
96+
Opt-in, advanced-dev only — leave it unset for normal work and CI, which use the installed
97+
package. The alias is wired in `vite.config.ts` and `vitest.config.ts`.
98+
8299
## Build for Production
83100
84101
- **Build the frontend and then the backend**

‎README.md‎

Lines changed: 12 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</p>
1616

1717
<p align="center">
18-
<a href="https://arxiv.org/abs/2408.16119"><img src="https://img.shields.io/badge/Paper-arXiv:2408.16119-b31b1b.svg" alt="arXiv"></a>&ensp;
18+
<a href="https://pypi.org/project/data_formulator/"><img src="https://img.shields.io/pypi/v/data_formulator.svg?label=pypi%3A%20data_formulator" alt="PyPI"></a>&ensp;
1919
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>&ensp;
2020
<a href="https://www.youtube.com/watch?v=GfTE2FLyMrs"><img src="https://img.shields.io/badge/YouTube-white?logo=youtube&logoColor=%23FF0000" alt="YouTube"></a>&ensp;
2121
<a href="https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml"><img src="https://github.com/microsoft/data-formulator/actions/workflows/python-build.yml/badge.svg" alt="build"></a>&ensp;
@@ -38,30 +38,26 @@ Data Formulator makes it simple: **connect any data, ask anything, get charts yo
3838

3939
https://github.com/user-attachments/assets/8e4f8a08-6423-4227-a1f7-559e0126ce31
4040

41-
## News 🔥🔥🔥
41+
> [!TIP]
42+
> **Love the charts?** They're built on [**Flint**](https://github.com/microsoft/flint-chart) — our open-source visualization language that compiles compact, semantic chart specs into polished Vega-Lite, ECharts, and Chart.js. Explore the [project site](https://microsoft.github.io/flint-chart/) or drop it into your own app.
4243
43-
[05-28-2026] **Data Formulator 0.7** — turn ANY data into insights in five easy steps:
44+
## News 🔥🔥🔥
4445

45-
1. **Connect.** Governed, reusable connections to databases, warehouses, BI systems, object stores, and files (Superset, Kusto, Cosmos DB, MySQL, PostgreSQL, MSSQL, BigQuery, S3, Azure Blob, …). Need a custom source? Point your coding agent at the [data loader plugin guide](examples/plugins/README.md).
46-
2. **Load.** Ask the **data-loading agent** to find tables from connected databases, or extract data from Excel files, images, websites, and text.
47-
3. **Explore.** A unified **Data Agent** with thread memory inspects data, runs sandboxed code, and weaves explanation, exploration, and recommendation into one fluid conversation — grounded in your context. The **Data Thread** keeps questions, intermediate results, and charts navigable: revisit earlier steps, branch into alternatives, and compare side by side.
48-
4. **Refine.** 30+ chart types (area, streamgraph, candlestick, radar, maps, KPI, …) via a new semantic chart engine, plus a **style-refinement agent** that turns rough charts into presentation-ready visuals through natural language.
49-
5. **Share.** Build reports and export as image or PDF to tell the story.
46+
[07-13-2026] **Data Formulator 0.8 alpha 1** — a preview of a more connected, agent-driven data workflow:
5047

51-
➕ **Persistent sessions & workspaces** — identity-isolated, saved across restarts. Data Formulator is your de facto data analysis pane.
48+
- **Smarter agent handoffs.** Analysis can delegate directly to data loading while preserving the conversation and request context.
49+
- **A redesigned connector experience.** Progressive setup, explicit authentication paths, database discovery, clearer scope controls, and improved credential handling make data sources easier to configure safely.
50+
- **Better loading plans.** Recommended selections, compact previews, readable filters, provenance, and more reliable history and scrolling improve review before import.
51+
- **Stronger enterprise foundations.** Unified connector metadata, session-scoped knowledge and distillation improvements, model routing, and additional isolation guardrails prepare Data Formulator for larger deployments.
5252

53-
**Multilingual UI** — Data Formulator now speaks Chinese in addition to English (没错,DF现在会说中文了!). More languages on the way — [contributions welcome](src/i18n/TRANSLATION_GUIDE.md).
53+
> Preview with `pip install --pre data_formulator==0.8.0a1` or `uvx --from data_formulator==0.8.0a1 data_formulator`.
5454
55-
> Install with `pip install data_formulator` or run instantly with `uvx data_formulator`.
56-
57-
> [!TIP]
58-
> **Are you a developer?** Join us to shape the future of AI-powered data exploration!
59-
> We're looking for help with new agents, data connectors, chart templates, and more.
60-
> Check out the [Developers' Guide](DEVELOPMENT.md) and our [open issues](https://github.com/microsoft/data-formulator/issues).
55+
> Install the latest stable release (0.7) with `pip install data_formulator` or run instantly with `uvx data_formulator`.
6156
6257
## Previous Updates
6358

6459
Here are milestones that lead to the current design:
60+
- **v0.7** (05-28-2026): Turn ANY data into insights in five steps — connect governed data sources, load via agents, explore with the unified `DataAgent` + Data Thread, refine 30+ chart types (semantic chart engine powered by [Flint](https://github.com/microsoft/flint-chart)) with a style-refinement agent, and share as reports. Plus persistent sessions & workspaces and a multilingual (English/Chinese) UI.
6561
- **v0.7 alpha 2** (05-11-2026): Early preview of data connectors, the unified `DataAgent` with thread memory, persistent workspaces, the semantic chart engine, and experimental knowledge distillation.
6662
- **v0.6** ([Demo](https://github.com/microsoft/data-formulator/releases/tag/0.6)): Real-time insights from live data — connect to URLs and databases with automatic refresh
6763
- **uv support**: Faster installation with [uv](https://docs.astral.sh/uv/) — `uvx data_formulator` or `uv pip install data_formulator`
@@ -133,31 +129,6 @@ Besides uploading csv, tsv or xlsx files that contain structured data, you can a
133129

134130
https://github.com/user-attachments/assets/164aff58-9f93-4792-b8ed-9944578fbb72
135131

136-
## Research Papers
137-
* [Data Formulator 2: Iteratively Creating Rich Visualizations with AI](https://arxiv.org/abs/2408.16119)
138-
139-
```
140-
@article{wang2024dataformulator2iteratively,
141-
title={Data Formulator 2: Iteratively Creating Rich Visualizations with AI},
142-
author={Chenglong Wang and Bongshin Lee and Steven Drucker and Dan Marshall and Jianfeng Gao},
143-
year={2024},
144-
booktitle={ArXiv preprint arXiv:2408.16119},
145-
}
146-
```
147-
148-
* [Data Formulator: AI-powered Concept-driven Visualization Authoring](https://arxiv.org/abs/2309.10094)
149-
150-
```
151-
@article{wang2023data,
152-
title={Data Formulator: AI-powered Concept-driven Visualization Authoring},
153-
author={Wang, Chenglong and Thompson, John and Lee, Bongshin},
154-
journal={IEEE Transactions on Visualization and Computer Graphics},
155-
year={2023},
156-
publisher={IEEE}
157-
}
158-
```
159-
160-
161132
## Contributing
162133

163134
This project welcomes contributions and suggestions. Most contributions require you to

‎loops/model-evaluation/plan.md‎

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Loop — Open-Source (Ollama) Model Evaluation
2+
3+
**High-level plan.** Execute end-to-end, making reasonable decisions when details are
4+
ambiguous, and record them in the final report (`report.md`; all working artifacts go
5+
under `work/`).
6+
7+
## Goal
8+
9+
Benchmark open-source (Ollama) models that drive Data Formulator's analyst agents —
10+
inspect tabular data, write transformation code, and commit a visualization — and report
11+
**two independent axes**:
12+
13+
1. **Success rate** — does the agent actually produce a rendered chart? (reliability)
14+
2. **Quality when produced** — how good is the chart when it finishes, scored 0-100 by a
15+
code + vision grader? (competence)
16+
17+
Keep them separate: a model can write good code yet fail to deliver it through the
18+
protocol. The dominant open-model failure mode is **driving the tool/transport, not
19+
analyzing the data**, so each model runs through more than one agent transport:
20+
21+
- `analyst` — native function/tool calls (with a content-JSON salvage fallback).
22+
- `mini` — single-decision, pure-prompt JSON contract; the production low-cost agent.
23+
24+
Always include the Azure references `gpt-5.5`, `gpt-5-mini` as the baseline.
25+
26+
## Data
27+
28+
A frozen **45-question** set across **15 datasets** from the `../visbench` benchmark, fed
29+
as the **raw / grouped source tables** (not VisBench's derived single-table `data.csv`) so
30+
the agent must do its own joins:
31+
32+
- **vega_datasets** single tables — 9 single-table questions.
33+
- **TidyTuesday** multi-CSV weeks — 18 multi-table questions.
34+
- **Spider** databases grouped by DB — 18 multi-table questions.
35+
36+
Reuse VisBench's quality-filtered question and reference chart for each item. The single-
37+
vs multi-table split (9 / 36) is the axis along which models diverge most.
38+
39+
## Steps
40+
41+
1. **Select & pull models** — the open roster across size tiers (1B → 120B) plus the three
42+
Azure references.
43+
2. **Prepare the benchmark** — materialize the 45 questions as raw/grouped tables and
44+
freeze the VisBench questions + reference charts, reused identically across every model
45+
and agent.
46+
3. **Run agents** — every `(agent, model, question)` cell with `--agent` in `analyst`
47+
and `mini`; capture the event stream and render each chart to PNG. Frozen controls:
48+
`max_iterations = 5`, 240 s timeout, resumable.
49+
4. **Score (two phases, GPT-5.5 grader):**
50+
- **Phase 1 — reliability:** five sequential gates (responded → emitted action → code
51+
ran → output → **produced chart**). The chart gate is decisive and defines the
52+
success rate; only those runs proceed.
53+
- **Phase 2 — quality (0-100, produced charts only):** code review vs the question
54+
(0-50) + vision review of the rendered PNG vs the reference chart (0-50).
55+
5. **Aggregate & report** — report the two axes separately (never collapse them); for
56+
ranking only, derive success-weighted quality (Phase 2 over all 45, no-chart = 0) and
57+
combined = `0.3 × (success_rate × 100) + 0.7 × success-weighted quality`. Always show
58+
the single- vs multi-table split, the per-gate drop-off, comparison to the references,
59+
and recommendations per size tier (with which `--agent`).
60+
61+
## Principles
62+
63+
- **Two axes stay separate** — `combined` is for ranking only.
64+
- **Freeze controls** — same questions, grader, `max_iterations`, and timeout across every cell.
65+
- **`mini` is the production low-cost agent** — `simple` was removed; don't run `--agent simple`.
66+
- **`uv` only**, no secrets (Azure auth via Entra ID), resumable, all artifacts under `work/`.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"dompurify": "^3.4.0",
3636
"echarts": "^6.0.0",
3737
"exceljs": "^4.4.0",
38-
"gofish-graphics": "^0.0.22",
38+
"flint-chart": "^0.2.1",
3939
"html2canvas": "^1.4.1",
4040
"i18next": "^26.0.1",
4141
"i18next-browser-languagedetector": "^8.2.1",
2.51 KB
Loading
15.6 KB
Loading

‎py-src/data_formulator/agent_config.py‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@
4848
# ── Heavy: code-gen, multi-step, tool-using ─────────────────────────────
4949
"data_transform": "low", # generates Python transform scripts
5050
"data_rec": "low", # chart / transformation recommendation
51-
"data_agent": "low", # multi-step exploration agent
52-
"report_gen": "low", # narrative + inspect/embed tools
51+
"analyst": "low", # unified multi-step exploration + report agent
5352
"interactive_explore": "low", # exploration idea agent
5453
"data_loading_chat": "low", # conversational data loading w/ tools
5554

5655
# ── Light: single-turn extractors / classifiers / formatters ────────────
5756
"data_load": "minimal", # one-shot type inference
5857
"data_clean": "minimal", # extract tables from text
59-
"experience_distill": "minimal", # summarise an analysis context
58+
"workflow_distill": "minimal", # summarise an analysis context
6059
"chart_insight": "minimal", # title + 1–3 takeaways from a chart
6160
"chart_restyle": "minimal", # apply style edits to a Vega-Lite spec
6261
"code_explanation": "minimal", # describe derived fields
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
from data_formulator.agents.agent_data_transform import DataTransformationAgent
5-
from data_formulator.agents.agent_data_rec import DataRecAgent
6-
74
from data_formulator.agents.agent_data_load import DataLoadAgent
85
from data_formulator.agents.agent_sort_data import SortDataAgent
96
from data_formulator.agents.agent_simple import SimpleAgents
10-
from data_formulator.agents.agent_interactive_explore import InteractiveExploreAgent
11-
from data_formulator.agents.agent_chart_insight import ChartInsightAgent
127
from data_formulator.agents.agent_chart_restyle import ChartRestyleAgent
138

149
__all__ = [
15-
"DataTransformationAgent",
16-
"DataRecAgent",
1710
"DataLoadAgent",
1811
"SortDataAgent",
19-
"InteractiveExploreAgent",
20-
"ChartInsightAgent",
2112
"ChartRestyleAgent",
2213
]

‎py-src/data_formulator/agents/agent_chart_insight.py‎

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)