Pipeline

class pysyrev.Pipeline(config)[source]

Bases: object

Literature review pipeline.

Instantiate with from_config(), then call run().

Parameters:

config (Config)

config: Config
bib: BibDataset | None = None
review: LLMReview | None = None
network: BibNetwork | None = None
topic: TopicModel | None = None
report: TopicReport | None = None
classmethod from_config(config)[source]

Create a Pipeline from a YAML config path or a Config object.

Return type:

Pipeline

Parameters:

config (str | Config)

run(stages=None)[source]

Run one or more pipeline stages.

Parameters:

stages (list of str, optional) – Subset of stages to run. Defaults to all configured stages in order. Valid values: ‘bib’, ‘review’, ‘bib-network’, ‘topic-model’, ‘topic-report’. Stages are always executed in canonical order regardless of the order they appear in the list. When None, only stages that have a corresponding section in the config are executed.

Returns:

The Pipeline instance (for chaining).

Return type:

self