Skip to content

Commit 46f7512

Browse files
sjrlbilgeyucel
andauthored
Add conversational rag tutorial (#420)
* Initial adding of the file * Rename file * PR comments and adapt to make a tutorial * Update link * Add to index.toml * Update install box * Comment out draw call * Formatting and wording changes * Try to fix tests * Change name * Also update run_tutorials * Use different syntax * Use yes Q * Add missing dep --------- Co-authored-by: bilgeyucel <[email protected]>
1 parent e4fb561 commit 46f7512

File tree

4 files changed

+840
-5
lines changed

4 files changed

+840
-5
lines changed

.github/workflows/nightly.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,15 @@ jobs:
6767
6868
- name: Run the converted notebook
6969
run: |
70-
# We add a prompt to confirm any user inputs in the HiTL notebook
71-
yes y | python ./tutorials/${{ matrix.notebook }}.py
70+
NOTEBOOK="./tutorials/${{ matrix.notebook }}.py"
71+
if [ "${{ matrix.notebook }}" = "47_Human_in_the_Loop_Agent" ]; then
72+
# We add a prompt to confirm any user inputs in the HiTL notebook
73+
yes y | python "$NOTEBOOK"
74+
elif [ "${{ matrix.notebook }}" = "48_Conversational_RAG" ]; then
75+
yes Q | python "$NOTEBOOK"
76+
else
77+
python "$NOTEBOOK"
78+
fi
7279
7380
- name: Send Failure to Datadog
7481
if: failure()

.github/workflows/run_tutorials.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,12 @@ jobs:
9898
9999
- name: Run the converted notebook
100100
run: |
101-
# We add a prompt to confirm any user inputs in the HiTL notebook
102-
yes y | python ./tutorials/${{ matrix.notebook }}.py
101+
NOTEBOOK="./tutorials/${{ matrix.notebook }}.py"
102+
if [ "${{ matrix.notebook }}" = "47_Human_in_the_Loop_Agent" ]; then
103+
# We add a prompt to confirm any user inputs in the HiTL notebook
104+
yes y | python "$NOTEBOOK"
105+
elif [ "${{ matrix.notebook }}" = "48_Conversational_RAG" ]; then
106+
yes Q | python "$NOTEBOOK"
107+
else
108+
python "$NOTEBOOK"
109+
fi

index.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ aliases = []
159159
completion_time = "20 min"
160160
created_at = 2024-03-05
161161
dependencies = ["sentence-transformers>=4.1.0", "gradio"]
162-
featured = true
163162

164163
[[tutorial]]
165164
title = "Query Classification with TransformersTextRouter and TransformersZeroShotTextRouter"
@@ -252,3 +251,15 @@ completion_time = "20 min"
252251
created_at = 2025-10-30
253252
dependencies = ["haystack-experimental>=0.14.2"]
254253
featured = true
254+
255+
[[tutorial]]
256+
title = "Conversational RAG Agent using InMemoryChatMessageStore"
257+
description = "Learn how to use conversational history for RAG to enable multi-turn conversations grounded in documents"
258+
level = "advanced"
259+
weight = 9
260+
notebook = "48_Conversational_RAG.ipynb"
261+
aliases = []
262+
completion_time = "20 min"
263+
created_at = 2025-12-30
264+
dependencies = ["haystack-experimental>=0.15.0", "datasets"]
265+
featured = true

tutorials/48_Conversational_RAG.ipynb

Lines changed: 810 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)