Check the init an runtime parameters you can define for the AnswerBuilder component.
YAML Init Parameters
These are the parameters you can pass for AnswerBuilder in the pipeline YAML:
Parameter | Type | Possible Values | Description |
---|---|---|---|
| String | Default: | The regular expression you want to use to extract the answer text from the Generator's output. If not specified, uses the whole string as the answer. The regular expression can have one capturing group at a maximum. If a capturing group is defined, the text that matches it is used as the answer. If there's no capturing group, the whole match is used as the answer. For example: Optional |
| String | Default: | The regular expression you want to use to parse document references. It assumes references are specified as indices of the documents and indices start at 1. If not specified, no parsing is done, and all documents are referenced. Optional. |
REST API Runtime Parameters
These are the parameters you can pass for AnswerBuilder through the Search REST API endpoint: