You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that the values array is most of the time returned incompletely, e.g. with only 1488 elements, even though batch.batchType was data. I want each root JSON array element to be left intact, i.e. the values array should always contain all 2048 values from the file.
constbatches=awaitloadInBatches(vectorWithEmbeddings,JSONLoader);forawait(constbatchofbatches){// batch.data will contain a number of rowsfor(constarrayElementofbatch.data){// I need `arrayElement.values` to be intact here}
The size of each JSON array element is quite manageable: 2048 floats, plus some text of at most 500 characters.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm working on an NLP application. I have a vector with embeddings, like this:
The problem is that the
values
array is most of the time returned incompletely, e.g. with only 1488 elements, even thoughbatch.batchType
wasdata
. I want each root JSON array element to be left intact, i.e. thevalues
array should always contain all 2048 values from the file.The code I'm using is that from the JSON docs:
The size of each JSON array element is quite manageable: 2048 floats, plus some text of at most 500 characters.
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions