Hello,
Sorry - complete low-coder here........
I've got a response coming in from OpenAI, that I want to format so that it can populate my table.
I've asked in my prompt that GPT-4 give me the results in JSON however, it still needs some tweaking here and there and of course, I have no idea how to do this.......
I'm hoping someone can help me with some transformer JS.
The format my table would like is:
{
"id": 1,
"material_topic_name": ,
"definition":,
"source":,
]
And the response I get from GPT is:
"Here are the top 5 material topics concerning the Pharmaceutical industry: 1. { "id": 1, "material_topic_name": "Drug Discovery and Development", "definition": "This involves the process of discovering new drugs and their development, covering stages from initial concept to bringing the drug into the market for public consumption.", "source": "https://www.ncbi.nlm.nih.gov/books/NBK56976/" }, 2. { "id": 2, "material_topic_name": "Regulatory Compliance", "definition": "This refers to pharmaceutical companies' adherence to laws, regulations, guidelines and specifications relevant to their business processes. Violations of regulatory compliance often result in legal punishment.", "source": "https://www2.deloitte.com/us/en/pages/regulatory/articles/regulatory-compliance-in-pharma-industry.html" }, 3. { "id": 3, "material_topic_name": "Pharmaceutical Pricing and Reimbursement", "definition": "This pertains to the methods pharmaceutical companies use to price their products and the strategies employed to ensure these drugs are included in health insurance coverages.", "source": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4046457/" }, 4. { "id": 4, "material_topic_name": "Patient-Centric Care", "definition": "This concept involves re-orienting the health care system's focus from diseases to patients, thus putting patient welfare first in every decision-making process.", "source": "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3789163/" }, 5. { "id": 5, "material_topic_name": "Pharma Supply Chain Management", "definition": "This pertains to the methods and processes employed to ensure the efficient and effective distribution of pharmaceutical products from the manufacturer to the consumer.", "source": "https://pubmed.ncbi.nlm.nih.gov/19534505/" }"
thank you very much for any help, Neil