You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose context from the orchestrator to the components (#301)
* Expose context from the orchestrator to the components
* Rename to match component name + ruff
* Add tests
* Update changelog and example readme
* unused import
* mypy
* Changes so that the `run` method is not required anymore
* Update documentation
* We still need to raise error if components do not have at least one of the two methods implemented
* Update CHANGELOG.md
* Improve documentation of future changes
* Undo make notifier private, not needed
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,19 @@
2
2
3
3
## Next
4
4
5
+
### Added
6
+
7
+
- Added the `run_with_context` method to `Component`. This method includes a `context_` parameter, which provides information about the pipeline from which the component is executed (e.g., the `run_id`). It also enables the component to send events to the pipeline's callback function.
8
+
9
+
5
10
## 1.6.0
6
11
7
12
### Added
8
13
9
14
- Added optional schema enforcement as a validation layer after entity and relation extraction.
10
15
- Introduced a linear hybrid search ranker for HybridRetriever and HybridCypherRetriever, allowing customizable ranking with an `alpha` parameter.
11
16
- Introduced SearchQueryParseError for handling invalid Lucene query strings in HybridRetriever and HybridCypherRetriever.
17
+
- Components can now be called with the `run_with_context` method that gets an extra `context_` argument containing information about the pipeline it's run from: the `run_id`, `task_name` and a `notify` function that can be used to send `TASK_PROGRESS` events to the same callback as the pipeline events.
0 commit comments