mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 12:07:04 +00:00
Fix load_from_yaml example in the Pipelines tutorial (#2774)
* Fix load from yaml example and image * Update Documentation & Code Style * Fixed pipeline exmple * Update Documentation & Code Style Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
ea40387b97
commit
425da1fd31
@ -187,7 +187,7 @@ To find out more about these pipelines, have a look at our [documentation](https
|
||||
With any Pipeline, whether prebuilt or custom constructed,
|
||||
you can save a diagram showing how all the components are connected.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
```python
|
||||
@ -405,7 +405,7 @@ pipelines: # multiple Pipelines can be defined using the components from abov
|
||||
|
||||
To load, simply call:
|
||||
``` python
|
||||
pipeline.load_from_yaml(Path("sample.yaml"))
|
||||
yaml_pipeline = Pipeline.load_from_yaml(Path("sample.yaml"))
|
||||
```
|
||||
|
||||
## Conclusion
|
||||
|
||||
@ -363,7 +363,7 @@
|
||||
"With any Pipeline, whether prebuilt or custom constructed,\n",
|
||||
"you can save a diagram showing how all the components are connected.\n",
|
||||
"\n",
|
||||
""
|
||||
""
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -725,7 +725,7 @@
|
||||
"source": [
|
||||
"To load, simply call:\n",
|
||||
"``` python\n",
|
||||
"pipeline.load_from_yaml(Path(\"sample.yaml\"))\n",
|
||||
"yaml_pipeline = Pipeline.load_from_yaml(Path(\"sample.yaml\"))\n",
|
||||
"```"
|
||||
]
|
||||
},
|
||||
@ -790,4 +790,4 @@
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user