Skip to content
1 min read · 225 words

@nhtio/adk/batteries/vector/builder

Knex-style chainable query builder for the vector storage battery.

Classes

ClassDescription
FilterBuilderThe where-clause surface of the query builder, factored out so a grouping callback can be handed a builder that only exposes filter methods (not near*/select/limit or the terminals).
VectorQueryBuilderThe where-clause surface of the query builder, factored out so a grouping callback can be handed a builder that only exposes filter methods (not near*/select/limit or the terminals).

Interfaces

InterfaceDescription
PlanSinkThe execution backend a VectorQueryBuilder drains its assembled plans into. Implemented by the vector store; the builder produces SearchPlan/UpsertPlan/DeletePlan objects and hands them here rather than touching the adapter directly.

Type Aliases

Type AliasDescription
FilterCallbackA callback that receives a fresh filter-only builder, used to express a parenthesized group of conditions — A AND (B OR C), NOT (…), and arbitrary nesting. The callback mutates the builder in place (knex-style); its accumulated conditions become a single nested VectorFilter.
SelectArgAn argument accepted by VectorQueryBuilder.select — a field name (or '*'), a [field, config] tuple, or a { field: config } map selecting and configuring projected fields.