Optional Readonly__Phantom type markers carrying the factory-instantiated type parameters.
declare emits nothing at runtime — they exist so the overloaded
search signatures can select on scopedness and so member typing
survives assignment. Never assigned or read
Optional Readonly__Stable fingerprint of the search-schema configuration (HASH alias,
sorted inline filter aliases, dimensions, distance function) so IaC can
detect that a decorator change implies a destructive index replacement.
Placeholder, resolved at metadata initialization
OptionalhashTable alias of the scoping foreign key attribute (the index HASH).
Undefined for global indexes. Placeholder, resolved at metadata
initialization
Optional ReadonlyincludeEntity thunks adding FK-only members to a scoped index
Sorted table aliases of the index's inline filters, including the auto-declared entity type filter. Placeholder, resolved at metadata initialization
Class names of the searchable member entities of the index. Placeholder, resolved at metadata initialization
ReadonlymodelThe embedding model descriptor the index is provisioned with
ReadonlynameThe DynamoDB IndexName of the vector index
ReadonlyproviderThe consumer-supplied embed function. Typed as required configuration; optional here so a missing provider (EX: plain JS consumers) is caught by metadata validation rather than a runtime crash.
Optional ReadonlyscopedEntity thunk selecting the scope parent, when the index is scoped
ReadonlytableThe name of the table class the index is defined on
Resolves the index's search schema. Called during metadata initialization once membership and inline filters have been validated.
Searches the vector index. Compiles to exactly one SearchVectors
operation; results carry complete typed entity instances with
similarity and the raw score, ordered most-similar-first.
The return type is inferred from in:: present, results narrow to that
member entity; omitted, results are the index's full member union
(including include: members), discriminated via entity.type. Global
indexes return the base result type — their member set is only known at
runtime.
Scoped indexes take the scope value first — they are searchable only per scope value. Global indexes take the query first and no scope id.
The scope value to search within (scoped indexes only).
The query text to embed, or { vector } with a precomputed vector.
Optionaloptions: IndexSearchOptions<Members, In>A promise resolving to the typed search results.
Searches the vector index. Compiles to exactly one SearchVectors
operation; results carry complete typed entity instances with
similarity and the raw score, ordered most-similar-first.
The return type is inferred from in:: present, results narrow to that
member entity; omitted, results are the index's full member union
(including include: members), discriminated via entity.type. Global
indexes return the base result type — their member set is only known at
runtime.
Scoped indexes take the scope value first — they are searchable only per scope value. Global indexes take the query first and no scope id.
The query text to embed, or { vector } with a precomputed vector.
Optionaloptions: IndexSearchOptions<Members, In>A promise resolving to the typed search results.
Represents the metadata for a vector index defined on a table class through the static
vectorIndexfactory, and carries the index-anchoredsearchsurface. Holds the consumer-supplied configuration (name, model descriptor, provider, scope and membership thunks) plus the search schema resolved at metadata initialization (members,HASHalias, inline filter aliases, and the search-schema fingerprint).Entity thunks (
scopedBy,include) are never resolved at definition time — resolution happens during metadata initialization so index constants can be declared at module evaluation without freezing metadata against a partial entity graph.The type parameters are instantiated by the
vectorIndexfactory's overloads and drive thesearchsurface only:Membersis the index's member entity union (scope parent's searchable adjacency union theinclude:list; unnarrowed for global indexes) andScopedselects the scope-id-first search signature. Metadata-internal code uses the defaults.Param: tableClassName
Name of the table class the index is defined on.
Param: options
Configuration options for the vector index.