3 ms·
In the example it looks like this needs one JSON encoding/decoding step per call for parameters & results which seems a bit inefficient, but maybe my intuition
by alpaca128 3y ago
In the example it looks like this needs one JSON encoding/decoding step per call for parameters & results which seems a bit inefficient, but maybe my intuition is wrong there? Or does it allow dumping a whole list of vectors (I only see vector1 and vector2 though)?
- eigenvalue 3y agoYes, you're right, and it's a good point. I'll add an additional python function that allows you to supply a pandas dataframe or numpy array for one of the arguments so you can specify a query vector and a matrix/table of vectors to search across.