ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

Is the current text-to-sql capable of outputting data analysis charts?

Open gavinju opened this issue 9 months ago • 1 comments

Self Checks

  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (Language Policy).
  • [x] Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • [x] Please do not modify this template :) and fill in all the required fields.

Is your feature request related to a problem?


Describe the feature you'd like

Is the current text-to-sql capable of outputting data analysis charts? Does the agent support the output of simple data analysis charts?

Describe implementation you've considered

No response

Documentation, adoption, use case


Additional information

No response

gavinju avatar Apr 01 '25 11:04 gavinju

Not supported yet.

KevinHuSh avatar Apr 03 '25 01:04 KevinHuSh

@gavinju Great question—thanks for asking!

Just to understand better:

  • What’s the business scenario or workflow where you’d like to generate data analysis charts from Text-to-SQL or agents?
  • Are you working with structured business data (e.g. sales, users, operations), and aiming to visualize trends or summaries?

Knowing the usage context will help us evaluate how to best support chart output in the product. Looking forward to your input!

ZhenhangTung avatar May 14 '25 02:05 ZhenhangTung

@ZhenhangTung The method I am currently using is to have the LLM output HTML code segments, modify the front-end source code, load those with the classname "language-html" into an iframe for display. The ECharts JS files are placed in the public folder. In fact, if a code segment preview function is added, it can be implemented very conveniently.

ooodwbooo avatar Jun 05 '25 09:06 ooodwbooo

@ooodwbooo Got it. I think we could gradually support this kind of capability as we enhance the Deep Research feature set within the Agent module. I'll keep it in mind during the design phase.

ZhenhangTung avatar Jun 06 '25 02:06 ZhenhangTung