Querylight TS Demo

populateLSHBuckets

Populates LSH buckets for a single vector per id.

Back to docs search

Reference Entry

populateLSHBuckets

API Reference · foundation · order 146

Populates LSH buckets for a single vector per id.

populateLSHBuckets

Populates LSH buckets for a single vector per id.

Declaration

function populateLSHBuckets(vectors: Record<string, Vector>, randomVectors: Vector[]): Map<number, [string, Vector][]>

Signatures

```ts function populateLSHBuckets(vectors: Record, randomVectors: Vector[]): Map ``` Populates LSH buckets for a single vector per id.

Parameters

- `vectors: Record` - `randomVectors: Vector[]`