hnsw icon indicating copy to clipboard operation
hnsw copied to clipboard

indexedDB is not defined

Open MathieuNls opened this issue 1 year ago • 0 comments

Hello,

Thanks for this library. I am trying to use the HNSWWithDB option but I got:

{stack: 'ReferenceError: indexedDB is not defined
    …/hnsw/dist/db.js:8:71', message: 'indexedDB is not defined'}

with the following:

import { HNSWWithDB } from "hnsw";
const localHnsw = await HNSWWithDB.create(1280, 16, "some-name");

Any advice ?

MathieuNls avatar Sep 11 '23 16:09 MathieuNls