VectorIndex
@forge/monorepo / backend/src / VectorIndex
Interface: VectorIndex
Defined in: backend/src/persistence/index.ts:1463
Methods
search()
search(
input):Promise<readonlyVectorSearchHit[]>
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[]>