Skip to main content

VectorIndex

@forge/monorepo


@forge/monorepo / backend/src / VectorIndex

Interface: VectorIndex

Defined in: backend/src/persistence/index.ts:1463

Methods

search(input): Promise<readonly VectorSearchHit[]>

Defined in: backend/src/persistence/index.ts:1471

Nearest neighbours, filtered by permission inside the query.

authSubjects is required and not optional. An optional filter is a filter someone omits, and the day it is omitted every tenant member can retrieve every chunk. An empty array means "no subjects", which correctly returns nothing rather than everything.

Parameters

input

TenantScope & object

Returns

Promise<readonly VectorSearchHit[]>