Querylight TS Demo

sparseInnerProduct

Computes the exact sparse inner product between two token-weight vectors.

Back to docs search

Reference Entry

sparseInnerProduct

API Reference · foundation · order 134

Computes the exact sparse inner product between two token-weight vectors.

sparseInnerProduct

Computes the exact sparse inner product between two token-weight vectors.

Declaration

function sparseInnerProduct(left: SparseVector, right: SparseVector): number

Signatures

```ts function sparseInnerProduct(left: SparseVector, right: SparseVector): number ``` Computes the exact sparse inner product between two token-weight vectors.

Parameters

- `left: SparseVector` - `right: SparseVector`