I'm trying to process 30Mb JSON file to Watson Discovery with the Node SDK, but it gives the error that the file is too large. In the documentation, there is explicitly said that we can process up to 50Mb JSON data with the API.
Where the issue might come from? (The JSON has a root array element and each of the objects contain only two Strings)
UPDATE: The JSON file has the following structure
{
"elements":[
{
"Q":" ... ",
"A":" ... "
},
...
]
}
From the API Documentation - https://cloud.ibm.com/apidocs/discovery-data#adddocument
So either the document or metadata is too large. Your data shouldn't be, so that leaves metadata. Again from the API Documentation -