I want to build an AI based report generation model in which the input to the LLM model will be a Json file with score’s of users result on answering a survey (our product). This score will be given in json format. Using this scores I have to generate bar, pie and line chart (as of now) all the charts should be interactive.
The reason behind AI is that
I need to add text content that relates to the survey
Including the charts
For example : There is this psychometric test called “RIASEC” here after the taking the test the user will have score for each tag score for R , I , A, S, E,C.
Using these score we can provide career path suggestions. This suggestion and visualization of scores using AI should be done(Charts).
One other reason is that:
Developers need not write code for these templates because we have many survey and psychometric tests.
Thank you,
The problem posed here is that how can pass the chart to the front end.
For users
Can i send a react component code through api call in the backend.
All the contents that is generated using this LLM will be sent in JSON format.
I do this for our ‘weekly report’ - I give it a json with relevant data and let a write a weekly update with text and charts. You prompt the whole thing. And make sure that code completion is on. I shared some of that here earlier : How do you use the Assistants API? - #8 by jlvanhulst