Skip to main content

VectorIndex

@retinue/monorepo


@retinue/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[]>