Skip to content

Commit c25e2da

Browse files
authored
Add a tutorial with OpenAI function calling (deepset-ai#301)
* Add a tutorial with OpenAI function calling * Change the name * Reduce code * Minor updates * Change the level * Update README.md * Word replacement
1 parent fc05d35 commit c25e2da

File tree

4 files changed

+6346
-2
lines changed

4 files changed

+6346
-2
lines changed

.github/workflows/run_tutorials.yml

+1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ jobs:
7979
"tutorials/36_Building_Fallbacks_with_Conditional_Routing.ipynb"
8080
"tutorials/37_Simplifying_Pipeline_Inputs_with_Multiplexer.ipynb"
8181
"tutorials/39_Embedding_Metadata_for_Improved_Retrieval.ipynb"
82+
"tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb"
8283
)
8384
for changed_file in ${{ steps.files.outputs.all_changed_files }}; do
8485
if [[ $changed_file == *".ipynb" ]]; then

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Haystack 2.0
4848
| [[OUTDATED] Knowledge Graph](./tutorials/10_Knowledge_Graph.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/10_Knowledge_Graph.ipynb) | [Building Pipelines with Conditional Routing](./tutorials/36_Building_Fallbacks_with_Conditional_Routing.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/36_Building_Fallbacks_with_Conditional_Routing.ipynb)|
4949
| [Pipelines](./tutorials/11_Pipelines.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/11_Pipelines.ipynb) | [Simplifying Pipeline Inputs with Multiplexer](./tutorials/37_Simplifying_Pipeline_Inputs_with_Multiplexer.ipynb)| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/37_Simplifying_Pipeline_Inputs_with_Multiplexer.ipynb)|
5050
| [[OUTDATED] Seq2SeqGenerator](./tutorials/12_LFQA.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/12_LFQA.ipynb) | [Embedding Metadata for Improved Retrieval](./tutorials/39_Embedding_Metadata_for_Improved_Retrieval.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/39_Embedding_Metadata_for_Improved_Retrieval.ipynb)|
51-
| [Question Generation](./tutorials/13_Question_generation.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/13_Question_generation.ipynb) | | |
51+
| [Question Generation](./tutorials/13_Question_generation.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/13_Question_generation.ipynb) | [Building a Chat Application with Function Calling](./tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb)| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/40_Building_Chat_Application_with_Function_Calling.ipynb)|
5252
| [Query Classifier](./tutorials/14_Query_Classifier.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/14_Query_Classifier.ipynb) | | |
5353
| [Table QA](./tutorials/15_TableQA.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/15_TableQA.ipynb) | | |
5454
| [Document Classifier at Index Time](./tutorials/16_Document_Classifier_at_Index_Time.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/deepset-ai/haystack-tutorials/blob/main/tutorials/16_Document_Classifier_at_Index_Time.ipynb) | | |

index.toml

+14-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ created_at = 2021-08-12
4747
title = "Evaluation of a QA System"
4848
description = "Learn how to evaluate the performance of individual nodes as well as entire pipelines."
4949
level = "advanced"
50-
weight = 100
50+
weight = 105
5151
notebook = "05_Evaluation.ipynb"
5252
aliases = ["evaluation"]
5353
created_at = 2021-08-12
@@ -275,6 +275,7 @@ aliases = []
275275
completion_time = "10 min"
276276
created_at = 2023-12-05
277277
haystack_2 = true
278+
featured = true
278279

279280
[[tutorial]]
280281
title = "Generating Structured Output with Loop-Based Auto-Correction"
@@ -396,3 +397,15 @@ aliases = []
396397
completion_time = "10 min"
397398
created_at = 2024-02-20
398399
haystack_2 = true
400+
401+
[[tutorial]]
402+
title = "Building a Chat Application with Function Calling"
403+
description = "Learn how to build chat applications that have agent-like behavior with OpenAI function calling"
404+
level = "advanced"
405+
weight = 100
406+
notebook = "40_Building_Chat_Application_with_Function_Calling.ipynb"
407+
aliases = []
408+
completion_time = "20 min"
409+
created_at = 2024-03-05
410+
haystack_2 = true
411+
featured = true

0 commit comments

Comments
 (0)