Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix load_from_yaml example in the Pipelines tutorial #2774

Merged
merged 5 commits into from Jul 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/_src/tutorials/tutorials/11.md
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tutorials/Tutorial11_Pipelines.ipynb
Expand Up @@ -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)"
]
},
{
Expand Down Expand Up @@ -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",
"```"
]
},
Expand Down Expand Up @@ -790,4 +790,4 @@
},
"nbformat": 4,
"nbformat_minor": 2
}
}