Skip to main content

Interface: IChunkFilters

Defined in: internal/vector-store/types.ts:263

The knowledge-base scope of a search: which libraries and books, AND-ed with the optional tags and language. The gateway does not know which libraries and books exist or who may read them: the caller decides the scope on every call.

Properties​

bookIds​

bookIds: string[]

Defined in: internal/vector-store/types.ts:271

Narrows to single books inside those libraries. Empty array = all their books.


language?​

optional language?: string

Defined in: internal/vector-store/types.ts:275

BCP-47.


libraryIds​

libraryIds: string[] | "all"

Defined in: internal/vector-store/types.ts:269

The libraries to search; a chunk matches when it is in any of them. One id covers every book of a library. "all" = every library of the tenant, and it has to be written out. Empty array = nothing is searched (no KB for this call) — a list that came out empty by accident never opens every library.


tags?​

optional tags?: string[]

Defined in: internal/vector-store/types.ts:273

Narrows to chunks whose document carries one of these tags. Absent = any.