Repository navigation
vec-cache@1.1.0
·
31 commits
to master
since this release
Minor Changes
- cf49574:
getOrCreatenow checks an explicitdimensionsrequest against whatembed
actually returns, and passes the requested width to the callback as
request.dimensions. A callback that ignores it and returns another width
throwsEMBED_DIMENSION_MISMATCHbefore anything is written, instead of
storing a row keyed as the requested width and stored at another — which made
every later identical call demote the row and pay for the same embedding
again. - a1b0c2f: Add
getOrCreate'smaxEmbedBatchSizeoption: a cap on how many texts go to
embedin one call, so a cold cache over a large corpus no longer hands the
callback more inputs than the provider accepts. Sub-batches run in order and
each is cached as it succeeds — a later failure leaves the completed ones
cached and throws — andreport.embedCallCountis the number of calls
actually made. Omitting it keeps the previous behavior: one call for every
unique miss.
Patch Changes
- 09f228c: Honor
busyTimeoutMswhile the database is being opened. It was applied only
after the header probe, the migration reads and the WAL switch, so until then
the driver's own 5 s default was in force and a larger configured timeout was
silently capped — losing the race against another process checkpointing its
WAL onclose().