# Type Alias VectorSearchFilter

VectorSearchFilter: {
chunkMetadata?: VectorKeyValueListPair[];
collectionIds: string[];
collectionMetadata?: VectorKeyValueListPair[] | null;
configuration: VectorSearchConfiguration;
documentMetadata?: VectorSearchDocumentKeyValueListPair[] | null;
filter?: BinaryBooleanFilter | ScopedKeyValueListPair | null;
id: string;
} & Record<string, any>

Representation of the 'VectorSearchFilter' schema.

#### Type Declaration

- ##### `Optional` chunkMetadata?: VectorKeyValueListPair[]

  Restrict chunks considered during search to those with the given metadata. Default: [].

- ##### collectionIds: string[]

- ##### `Optional` collectionMetadata?: VectorKeyValueListPair[] | null

  Restrict collections considered during search to those annotated with the given metadata. Useful when combined with collections=['*'] Default: [].

- ##### configuration: VectorSearchConfiguration

- ##### `Optional` documentMetadata?: VectorSearchDocumentKeyValueListPair[] | null

  Restrict documents considered during search to those annotated with the given metadata. Default: [].

- ##### `Optional` filter?: BinaryBooleanFilter | ScopedKeyValueListPair | null

  Advanced filter expression for combining metadata filters with boolean logic

- ##### id: string

  Identifier of this VectorSearchFilter - unique per request.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/document-grounding/dist/client/api/schema/vector-search-filter.d.ts:9