跳到正文
Simon Willison·· 12 天前精选

Datasette图表插件接入Agent,可对话生成图表并读取面板变化

AI 导读

Simon Willison介绍,Datasette图表插件新增Agent集成,可按对话请求生成图表,并在图表编辑器中继续调整。文中示例还展示:用户切换面板中的数据后,Agent能据此解释新的图表。作者提供演示站,可用GitHub账号登录体验。

推荐理由

提供可直接尝试的数据可视化工作流。原文正文+原站 RSS 时间核验,全部历史归档未见重复;效果来自作者演示,未独立复测。

正文 · 原文

I introduced this new charting plugin for Datasette yesterday. Today it's gained integration with Datasette Agent, so now you can ask chat for a chart and it will create one for you using the same underlying chart suggestion and generation tools.

Here's a demo video, recorded on agent.datasette.io where you can sign in with GitHub to try the plugin yourself:

I prompt Datasette Agent to "Use #stats to show sqlite-utils downloads over time as a chart" - where typing "#stats" opens a table search box. It shows me a chart inline in the chat, and when I click "Open in the chart builder" it opens the chart in a panel along with the table page. I use the table page to switch to a chart of "datasette", then when I ask the agent "what does the chart show?" it notices that I changed the content in the panel and describes the new Datasette chart to me.

Here's a Markdown export of the chat from the video.

来源:Simon Willison · simonwillison.net