mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-10-12 02:12:50 +00:00
docs: document four undocumented parameters in pipeline internals (#12295)
Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: anakin87 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
anakin87
parent
5b791afa44
commit
0a09321bd9
@@ -270,6 +270,8 @@ class DocumentCleaner:
|
||||
Note: This heuristic uses exact matches and therefore works well for footers like "Copyright 2019 by XXX",
|
||||
but won't detect "Page 3 of 4" or similar.
|
||||
|
||||
:param text: The text to remove headers and footers from, with pages separated by the
|
||||
form feed character described above.
|
||||
:param n_chars: The number of first/last characters where the header/footer shall be searched in.
|
||||
:param n_first_pages_to_ignore: The number of first pages to ignore
|
||||
(e.g. TOCs often don't contain footer/header).
|
||||
|
||||
@@ -1226,6 +1226,8 @@ class PipelineBase: # noqa: PLW1641
|
||||
:param component_name: The name of a component.
|
||||
:param component: Component with component metadata.
|
||||
:param inputs: Global inputs state.
|
||||
:param is_resume: Whether the component is being resumed from a breakpoint. If True, the inputs
|
||||
have already been consumed, so the first available value is returned for each socket.
|
||||
:returns: The inputs for the component.
|
||||
"""
|
||||
component_inputs = inputs.get(component_name, {})
|
||||
|
||||
@@ -262,6 +262,9 @@ def _to_mermaid_image(
|
||||
Dictionary of customization parameters. See `validate_mermaid_params` for valid keys.
|
||||
:param timeout:
|
||||
Timeout in seconds for the request to the Mermaid server.
|
||||
:param super_component_mapping:
|
||||
Mapping of component names to the name of the SuperComponent that contains them, used to
|
||||
group those components visually in the rendered diagram.
|
||||
:returns:
|
||||
The image, SVG, or PDF data returned by the Mermaid server as bytes.
|
||||
:raises ValueError:
|
||||
|
||||
@@ -141,6 +141,8 @@ class Pipeline(PipelineBase):
|
||||
:param component_visits: Current state of component visits.
|
||||
:param parent_span: The parent span to use for the newly created span.
|
||||
This is to allow tracing to be correctly linked to the pipeline run.
|
||||
:param break_point: An optional breakpoint. If it targets this component and its visit
|
||||
count matches the current one, a `BreakpointException` is raised before the Component runs.
|
||||
:raises PipelineRuntimeError: If Component doesn't return a dictionary.
|
||||
:return: The output of the Component.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user