Skip to content

Commit 65e5f60

Browse files
committed
incorporate links to notebooks
1 parent 97cea03 commit 65e5f60

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

ch6/README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,27 @@ To add new dependencies, modify the dependencies in the [pyproject.toml](./pypro
8787
just develop
8888
```
8989

90-
to update.
90+
to update.
91+
92+
## Pipelines
93+
94+
### Case I: Q&A for simple text with custom components
95+
96+
The pipelines can be found here:
97+
98+
1. [Indexing pipeline with custom components to extract, chunk and embed information from a JSONL file](./indexingpipeline.py)
99+
2. [Querying pipeline with prompt templating to retrieve information](./query_pipeline.png)
100+
101+
[](./benzinga_pipeline.png)
102+
103+
Indexing pipeline
104+
105+
[](./query_pipeline.png)
106+
107+
Query pipeline
108+
109+
### Case II: Q&A for a complex knowledge base
110+
111+
The notebook includes an indexing pipeline to extract, chunk and embed information from the Haystack tutorials as well as a querying pipeline with a specific role (software engineer) to build code from the tutorials.
112+
113+
[Notebook](./bonus-build-from-tutorials/rag-tutorials.ipynb)

ch6/bonus-build-from-tutorials/rag-tutorials.ipynb

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,15 @@
7575
"indexing_pipeline.connect(\"embedder\", \"writer\")"
7676
]
7777
},
78+
{
79+
"cell_type": "code",
80+
"execution_count": 21,
81+
"metadata": {},
82+
"outputs": [],
83+
"source": [
84+
"indexing_pipeline.draw(\"indexing_complex_knowledge.png\")"
85+
]
86+
},
7887
{
7988
"cell_type": "markdown",
8089
"metadata": {},
@@ -217,6 +226,22 @@
217226
"pipeline.connect(\"prompt_builder\", \"llm\")"
218227
]
219228
},
229+
{
230+
"cell_type": "code",
231+
"execution_count": 22,
232+
"metadata": {},
233+
"outputs": [],
234+
"source": [
235+
"pipeline.draw(\"answer_generation_pipeline.png\")"
236+
]
237+
},
238+
{
239+
"cell_type": "markdown",
240+
"metadata": {},
241+
"source": [
242+
"[](./indexing_complex_knowledge.png)"
243+
]
244+
},
220245
{
221246
"cell_type": "code",
222247
"execution_count": 13,

0 commit comments

Comments
 (0)