Skip to content

Commit 650f856

Browse files
Merge pull request Azure-Samples#106 from colombod/complete_tool_call
Complete example with Tool calling
2 parents 7525b1a + 8dccb39 commit 650f856

File tree

4 files changed

+560
-63
lines changed

4 files changed

+560
-63
lines changed

Basic_Samples/Datastores/dotnet/csharp/Question_answering_using_vector_store_search_qdrant.ipynb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
},
151151
{
152152
"cell_type": "code",
153-
"execution_count": 4,
153+
"execution_count": 3,
154154
"metadata": {
155155
"dotnet_interactive": {
156156
"language": "csharp"
@@ -183,7 +183,7 @@
183183
},
184184
{
185185
"cell_type": "code",
186-
"execution_count": 5,
186+
"execution_count": 4,
187187
"metadata": {
188188
"dotnet_interactive": {
189189
"language": "csharp"
@@ -203,7 +203,7 @@
203203
},
204204
{
205205
"cell_type": "code",
206-
"execution_count": 6,
206+
"execution_count": 5,
207207
"metadata": {
208208
"dotnet_interactive": {
209209
"language": "csharp"
@@ -236,7 +236,7 @@
236236
},
237237
{
238238
"cell_type": "code",
239-
"execution_count": 7,
239+
"execution_count": 6,
240240
"metadata": {
241241
"dotnet_interactive": {
242242
"language": "csharp"
@@ -255,7 +255,7 @@
255255
},
256256
{
257257
"cell_type": "code",
258-
"execution_count": 8,
258+
"execution_count": 7,
259259
"metadata": {
260260
"dotnet_interactive": {
261261
"language": "csharp"
@@ -280,7 +280,7 @@
280280
},
281281
{
282282
"cell_type": "code",
283-
"execution_count": 11,
283+
"execution_count": 8,
284284
"metadata": {
285285
"dotnet_interactive": {
286286
"language": "csharp"
@@ -371,7 +371,7 @@
371371
"name": "stdout",
372372
"output_type": "stream",
373373
"text": [
374-
"506bef4dd2f09b84216f63afae2ba8c426c66339a61465faae5423b50512b12e\r\n"
374+
"5d210d1ef33f1b0023ce5b603e15c285e30b15e6dbf7ea05a1604632314122cd\r\n"
375375
]
376376
}
377377
],
@@ -397,15 +397,15 @@
397397
{
398398
"data": {
399399
"text/html": [
400-
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Qdrant.Client, 1.6.0-alpha.1</span></li></ul></div></div>"
400+
"<div><div></div><div></div><div><strong>Installed Packages</strong><ul><li><span>Qdrant.Client, 1.8.0</span></li></ul></div></div>"
401401
]
402402
},
403403
"metadata": {},
404404
"output_type": "display_data"
405405
}
406406
],
407407
"source": [
408-
"#r \"nuget: Qdrant.Client, 1.6.0-alpha.1\""
408+
"#r \"nuget: Qdrant.Client, 1.8.0\""
409409
]
410410
},
411411
{
@@ -456,7 +456,7 @@
456456
},
457457
{
458458
"cell_type": "code",
459-
"execution_count": null,
459+
"execution_count": 14,
460460
"metadata": {
461461
"dotnet_interactive": {
462462
"language": "csharp"
@@ -475,7 +475,7 @@
475475
},
476476
{
477477
"cell_type": "code",
478-
"execution_count": 16,
478+
"execution_count": 15,
479479
"metadata": {
480480
"dotnet_interactive": {
481481
"language": "csharp"
@@ -515,7 +515,7 @@
515515
},
516516
{
517517
"cell_type": "code",
518-
"execution_count": 17,
518+
"execution_count": 16,
519519
"metadata": {
520520
"dotnet_interactive": {
521521
"language": "csharp"
@@ -562,7 +562,7 @@
562562
},
563563
{
564564
"cell_type": "code",
565-
"execution_count": 19,
565+
"execution_count": 17,
566566
"metadata": {
567567
"dotnet_interactive": {
568568
"language": "csharp"
@@ -597,7 +597,7 @@
597597
},
598598
{
599599
"cell_type": "code",
600-
"execution_count": 20,
600+
"execution_count": 18,
601601
"metadata": {
602602
"dotnet_interactive": {
603603
"language": "csharp"
@@ -681,7 +681,7 @@
681681
},
682682
{
683683
"cell_type": "code",
684-
"execution_count": 21,
684+
"execution_count": 19,
685685
"metadata": {
686686
"dotnet_interactive": {
687687
"language": "csharp"
@@ -735,7 +735,7 @@
735735
},
736736
{
737737
"cell_type": "code",
738-
"execution_count": 22,
738+
"execution_count": 21,
739739
"metadata": {
740740
"dotnet_interactive": {
741741
"language": "csharp"
@@ -751,20 +751,20 @@
751751
{
752752
"data": {
753753
"text/plain": [
754-
"The athletes from Norway won a total of 16 gold medals at the 2022 Winter Olympics."
754+
"The 2022 Winter Olympics took place in Beijing, China."
755755
]
756756
},
757757
"metadata": {},
758758
"output_type": "display_data"
759759
}
760760
],
761761
"source": [
762-
"await AskAsync(\"How many gold medals in total?\")"
762+
"await AskAsync(\"Where did the 2022 winter Olympics took place?\")"
763763
]
764764
},
765765
{
766766
"cell_type": "code",
767-
"execution_count": 23,
767+
"execution_count": 25,
768768
"metadata": {
769769
"dotnet_interactive": {
770770
"language": "csharp"
@@ -780,15 +780,15 @@
780780
{
781781
"data": {
782782
"text/plain": [
783-
"The 2022 Winter Olympics took place in Beijing, China."
783+
"The 2022 Winter Olympics featured 109 events in 7 different sports, encompassing a total of 15 disciplines. New events included men's and women's big air freestyle skiing, women's monobob, mixed team competitions in freestyle skiing aerials, ski jumping, and snowboard cross, and the mixed relay in short track speed skating."
784784
]
785785
},
786786
"metadata": {},
787787
"output_type": "display_data"
788788
}
789789
],
790790
"source": [
791-
"await AskAsync(\"Where did the 2022 winter Olympics took place?\")"
791+
"await AskAsync(\"What where the main sport events in the 2022 Winter Olympics?\")"
792792
]
793793
}
794794
],

0 commit comments

Comments
 (0)