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:
Agnieszka Marzec 2022-07-08 11:22:11 +02:00 committed by GitHub
parent ea40387b97
commit 425da1fd31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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.
![image](https://github.com/deepset-ai/haystack/blob/master/docs/img/retriever-reader-pipeline.png)
![image](https://github.com/deepset-ai/haystack/blob/master/docs/img/retriever-reader-pipeline.png?raw=true)
```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

View File

@ -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",
"![image](https://github.com/deepset-ai/haystack/blob/master/docs/img/retriever-reader-pipeline.png)"
"![image](https://github.com/deepset-ai/haystack/blob/master/docs/img/retriever-reader-pipeline.png?raw=true)"
]
},
{
@ -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
}
}