Marks a function as a pipeline entry point. Each invocation creates a new run that groups all steps together.
Parameters
| Parameter | Type | Description |
|---|---|---|
name | str | Unique identifier for this pipeline |
version | str | Optional version string for A/B testing |
Example
@xray.pipeline("search-pipeline", version="v2.0")
def search(query: str):
results = retrieve(query)
ranked = rank(results)
return filter(ranked)