set_filter

Function

Sets the filter criteria for retrieval.

Prototype

def set_filter(filter_dict)

Parameters

Parameter

Data Type

Required/Optional

Description

filter_dict

Dict

Required

Dictionary consisting of retrieval criteria. Currently, only document IDs can be filtered. The filtered document IDs are passed in a list. The length of the ID list cannot exceed 1000 × 1000. For example, if you need to filter the documents whose IDs are 1, 2, and 4, the input dictionary is {"document_id": [1, 2, 4]}.