Live data from Hacker News

How to leverage Claude's capabilities with interactive visualization

github.com

1–10 of 36 posts

Re: How to leverage Claude's capabilities with interactive visualization

#5
(didn't look at the code yet but) Would a challenge of building an app like this that heavily depends on a LLM be getting a deterministic response back? I guess you could code for it to check if it gave you a certain format of data or if it was what you expected, but if I upload something that Claude doesn't understand and it gives back something that breaks the data analysis then that seems it would be tricky to handle that case.

Please correct me if I am wrong. Thanks!

Re: How to leverage Claude's capabilities with interactive visualization

#6

(didn't look at the code yet but) Would a challenge of building an app like this that heavily depends on a LLM be getting a deterministic response back? I guess you could code for it to check if it gave you a certain format of data or if it was what you expected, but if I upload something that Claude doesn't understand and it gives back something that breaks the data analysis then that seems it would be tricky to han…

Anthropic and OpenAI let you define a JSON schema to adhere to for tool calling.

Here's the part you're looking for: https://github.com/anthropics/anthropic-quickstarts/blob/mai...

Re: How to leverage Claude's capabilities with interactive visualization

#8
Well done. We are building something similar [1] and found that generating UIs (mostly charts) on the fly works surprisingly well in most cases, but can be a bit frustrating if you know exactly what you want and just can't prompt it (as a user) to do that because of some edge case.

While this is a cool demo that shows what LLMs can do I am a bit surprised how polished and advanced it looks (even PDF upload) for a quick start. Anyway I love that it's open source so we can learn from it.

[1] https://getdot.ai

Re: How to leverage Claude's capabilities with interactive visualization

#9
post #8

Well done. We are building something similar [1] and found that generating UIs (mostly charts) on the fly works surprisingly well in most cases, but can be a bit frustrating if you know exactly what you want and just can't prompt it (as a user) to do that because of some edge case. While this is a cool demo that shows what LLMs can do I am a bit surprised how polished and advanced it looks (even PDF upload) for a qui…

Here is a link to the prompt.

https://github.com/anthropics/anthropic-quickstarts/blob/9d5...

On a second glance I'd say that the visualizations are pretty limited but good enough for a demo.

Re: How to leverage Claude's capabilities with interactive visualization

#10
I wish they'd focus more on getting the basics solid. Currently Claude can't even render anything beyond the most basic form of a table.

For example, try to let it turn multiple items in a table cell into a bulleted list. It just outputs a mess of literal HTML tags.

Post reply on HN