跳到正文
Simon Willison·· 2 小時前AI 評分44

datasette-charts 0.2a0 新增 Datasette Agent 整合

datasette-charts 0.2a0

AI 導讀

datasette-charts 0.2a0 加入與 Datasette Agent 的整合,用戶可以在聊天中要求生成圖表,Agent 會使用同一套圖表建議及生成工具建立圖表。圖表會顯示在聊天內,也可開啟圖表建構器,在面板中配合資料表頁面查看及切換圖表;用戶更改面板內容後,Agent 能描述新的圖表。

正文

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