MetadataRouter Parameters

Define the rules for MetadataRouter.

YAML Init Parameters

These are the parameters you can pass to this component in the pipeline YAML configuration:

ParameterTypePossible valuesDescription
rulesDictionary of string and dictionaryA dictionary of rules specifying the output connection to route a document based on its metadata. The keys of the dictionary are the names of the output connections, and the values are dictionaries in the following format:
{
"edge_1": {
"operator": "AND",
"conditions": [
{"field": "meta.created.at", "operator": ">=", "value": "2023-02-02"},
{"field": "meta.created.at", "operator": "<", "value": "2023-04-01"},
]
},
"edge_2": {
"operator": "AND",
"conditions": [
{"field": "meta.created_at", "operator": ">=", "value": "2023-04-01"},
{"field": "meta.created_at", "operator": "<", "value": "2023-07-01"},
]
}
For information how to configure filters in rules, see Filtering Logic.
Required.

REST API Runtime Parameters

There are no runtime parameters you can pass to this component when making a request to the Search REST API endpoint.