Querylight TS Demo

KnnQuery

Direct dense-vector nearest-neighbor retrieval over a VectorFieldIndex.

Back to docs search

Reference Entry

KnnQuery

API Reference · foundation · order 113

Direct dense-vector nearest-neighbor retrieval over a VectorFieldIndex.

Relevant APIs

KnnQuery

Direct dense-vector nearest-neighbor retrieval over a VectorFieldIndex.

Declaration

class KnnQuery

Constructors

constructor

```ts constructor(__namedParameters: KnnQueryParams): KnnQuery ``` Parameters: - `__namedParameters: KnnQueryParams`

Members

boost

```ts boost: number | undefined ```

hits

```ts hits(documentIndex: DocumentIndex, context: QueryContext): Promise ``` Parameters: - `documentIndex: DocumentIndex` - `context: QueryContext`

highlightClauses

```ts highlightClauses(): [] ```