thepipe icon indicating copy to clipboard operation
thepipe copied to clipboard

Unterminated string in JSON at position 16384 (line 1 column 16385)

Open BC-Naman opened this issue 1 year ago • 2 comments

I am trying to perform extraction on a pdf file. I am able to scrape the file using the tool but when trying to extract the information I am getting the following error:

'Unterminated string in JSON at position 16384 (line 1 column 16385)`

BC-Naman avatar Oct 26 '24 05:10 BC-Naman

It looks like the LLM hit the 16K token generation limit. This is a limitation of the language model, so trying other models with larger token limits can help. Using the chunker to split the file into multiple smaller chunks can also help avoid this issue.

emcf avatar Oct 28 '24 16:10 emcf