Getting error JSON source is not valid

What are you trying to achieve?

I am trying to transform LLM output into JSON format. I am inputting the expected output in LLM prompt as the following JSON object
{
“employee_count”: “160,000”,
“founding_year”: “1998”
}

LLM Output:

{
  "employee_count": "1,500+",
  "founding_year": "2015"
}

I have also put this at the end of LLM prompt: JUST RESPOND JSON DO NOT ADD ANY TEXT BEFORE - THE OUTPUT MUST BE PURE JSON

Getting the error as JSON source not valid. Can anyone help?

Hi @Aniruddha_Newaskar and welcome to the Make Community!

Can you share your input and output bundles for the LLM module? It seems like something else is happening since that looks like valid JSON.

L

Got resolved by using a different LLM model. Was using Perplexity model earlier. It is working fine with GPT 3.5.

1 Like