@sap-ai-sdk/document-grounding
Version:
> [!warning] > This package is still in **beta** and is subject to breaking changes. Use it with caution.
33 lines • 1.19 kB
TypeScript
import type { SearchConfiguration } from './search-configuration.js';
import type { KeyValueListPair } from './key-value-list-pair.js';
import type { SearchDocumentKeyValueListPair } from './search-document-key-value-list-pair.js';
/**
* Representation of the 'SearchFilter' schema.
*/
export type SearchFilter = {
/**
* Identifier of this SearchFilter - unique per request.
*/
id: string;
collectionIds: string[];
configuration: SearchConfiguration;
/**
* Restrict collections considered during search to those annotated with the given metadata. Useful when combined with collections=['*']
* Default: [].
* Max Items: 2000.
*/
collectionMetadata?: KeyValueListPair[];
/**
* Restrict documents considered during search to those annotated with the given metadata.
* Default: [].
* Max Items: 2000.
*/
documentMetadata?: SearchDocumentKeyValueListPair[];
/**
* Restrict chunks considered during search to those with the given metadata.
* Default: [].
* Max Items: 2000.
*/
chunkMetadata?: KeyValueListPair[];
} & Record<string, any>;
//# sourceMappingURL=search-filter.d.ts.map