SYMBOL INDEX (54 symbols across 4 files) FILE: src/cache.ts class Cache (line 3) | class Cache { method constructor (line 6) | private constructor() {} method getInstance (line 8) | public static getInstance( FILE: src/hnsw.ts type Vector (line 8) | type Vector = number[]; type Distance (line 9) | type Distance = number; type NodeIndex (line 10) | type NodeIndex = number; type Layer (line 11) | type Layer = LayerNode[]; type LayerNode (line 13) | interface LayerNode { type HNSWData (line 19) | interface HNSWData { class PriorityQueue (line 27) | class PriorityQueue { method constructor (line 31) | constructor(elements: T[], compareFn: (a: T, b: T) => number) { method push (line 37) | push(element: T) { method pop (line 42) | pop(): T | null { method isEmpty (line 46) | isEmpty(): boolean { class ExperimentalHNSWIndex (line 127) | class ExperimentalHNSWIndex { method constructor (line 133) | constructor(L = 5, mL = 0.62, efc = 10) { method setIndex (line 139) | setIndex(index: Layer[]): void { method insert (line 143) | insert(vec: Vector) { method search (line 192) | search(query: Vector, ef = 1): [Distance, NodeIndex][] { method toJSON (line 211) | toJSON() { method fromJSON (line 220) | static fromJSON(json: any): ExperimentalHNSWIndex { method toBinary (line 225) | toBinary() { method fromBinary (line 234) | static fromBinary(binary: Uint8Array): ExperimentalHNSWIndex { FILE: src/index.ts constant DEFAULT_TOP_K (line 1) | const DEFAULT_TOP_K = 3; type Filter (line 3) | interface Filter { type SearchResult (line 16) | interface SearchResult { type StorageOptions (line 21) | type StorageOptions = 'indexedDB' | 'localStorage' | 'none'; type SearchOptions (line 29) | interface SearchOptions { class EmbeddingIndex (line 75) | class EmbeddingIndex { method constructor (line 79) | constructor(initialObjects?: Filter[]) { method findVectorIndex (line 91) | private findVectorIndex(filter: Filter): number { method validateAndAdd (line 97) | private validateAndAdd(obj: Filter) { method add (line 113) | add(obj: Filter) { method update (line 118) | update(filter: Filter, vector: Filter) { method remove (line 132) | remove(filter: Filter) { method removeBatch (line 142) | removeBatch(filters: Filter[]) { method get (line 153) | get(filter: Filter) { method size (line 158) | size(): number { method clear (line 163) | clear() { method search (line 167) | async search( method printIndex (line 218) | printIndex() { method saveIndex (line 225) | async saveIndex( method saveToIndexedDB (line 241) | async saveToIndexedDB( method loadAndSearchFromIndexedDB (line 266) | async loadAndSearchFromIndexedDB( method deleteIndexedDB (line 287) | async deleteIndexedDB(DBname: string = 'clientVectorDB'): Promise { method deleteIndexedDBObjectStore (line 306) | async deleteIndexedDBObjectStore( method getAllObjectsFromIndexedDB (line 323) | async getAllObjectsFromIndexedDB( FILE: src/indexedDB.ts class IndexedDbManager (line 5) | class IndexedDbManager { method constructor (line 9) | constructor(DBname: string, objectStoreName: string) { method create (line 14) | static async create( method createObjectStore (line 41) | async createObjectStore(index: string | null = null): Promise { method addToIndexedDB (line 78) | async addToIndexedDB( method dbGenerator (line 115) | async *dbGenerator(): AsyncGenerator { method deleteIndexedDBObjectStoreFromDB (line 159) | async deleteIndexedDBObjectStoreFromDB(