File size: 78,914 Bytes
0af0679
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# From Judging to Recommendation — Building a Protein Buying Guide\n",
    "In a previous agentic design, we might have used a simple \"judge\" pattern. This would involve sending a broad question like \"What is the best vegan protein?\" to multiple large language models (LLMs), then using a separate “judge” agent to select the single best response. While useful, this approach can be limiting when a detailed comparison is needed.\n",
    "\n",
    "To address this, we are shifting to a more powerful \"synthesizer/improver\" pattern for a very specific goal: to create a definitive buying guide for the best vegan protein powders available in the Netherlands. This requires more than just picking a single winner; it demands a detailed comparison based on strict criteria like clean ingredients, the absence of \"protein spiking,\" and transparent amino acid profiles.\n",
    "\n",
    "Instead of merely ranking responses, we will prompt a dedicated \"synthesizer\" agent to review all product recommendations from the other models. This agent will extract and compare crucial data points—ingredient lists, amino acid values, availability, and price—to build a single, improved report. This approach aims to combine the collective intelligence of multiple models to produce a guide that is richer, more nuanced, and ultimately more useful for a consumer than any individual response could be.\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import os\n",
    "import json\n",
    "from dotenv import load_dotenv\n",
    "from openai import OpenAI\n",
    "from anthropic import Anthropic\n",
    "from IPython.display import Markdown, display"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "load_dotenv(override=True)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "OpenAI API Key not set\n",
      "Anthropic API Key not set (and this is optional)\n",
      "Google API Key exists and begins AI\n",
      "DeepSeek API Key not set (and this is optional)\n",
      "Groq API Key exists and begins gsk_\n"
     ]
    }
   ],
   "source": [
    "# Print the key prefixes to help with any debugging\n",
    "\n",
    "openai_api_key = os.getenv('OPENAI_API_KEY')\n",
    "anthropic_api_key = os.getenv('ANTHROPIC_API_KEY')\n",
    "google_api_key = os.getenv('GOOGLE_API_KEY')\n",
    "deepseek_api_key = os.getenv('DEEPSEEK_API_KEY')\n",
    "groq_api_key = os.getenv('GROQ_API_KEY')\n",
    "\n",
    "if openai_api_key:\n",
    "    print(f\"OpenAI API Key exists and begins {openai_api_key[:8]}\")\n",
    "else:\n",
    "    print(\"OpenAI API Key not set\")\n",
    "    \n",
    "if anthropic_api_key:\n",
    "    print(f\"Anthropic API Key exists and begins {anthropic_api_key[:7]}\")\n",
    "else:\n",
    "    print(\"Anthropic API Key not set (and this is optional)\")\n",
    "\n",
    "if google_api_key:\n",
    "    print(f\"Google API Key exists and begins {google_api_key[:2]}\")\n",
    "else:\n",
    "    print(\"Google API Key not set (and this is optional)\")\n",
    "\n",
    "if deepseek_api_key:\n",
    "    print(f\"DeepSeek API Key exists and begins {deepseek_api_key[:3]}\")\n",
    "else:\n",
    "    print(\"DeepSeek API Key not set (and this is optional)\")\n",
    "\n",
    "if groq_api_key:\n",
    "    print(f\"Groq API Key exists and begins {groq_api_key[:4]}\")\n",
    "else:\n",
    "    print(\"Groq API Key not set (and this is optional)\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Protein Research: master prompt for the initial \"teammate\" LLMs.\n",
    "\n",
    "request = (\n",
    "    \"Please research and identify the **Top 5 best vegan protein powders** available for purchase in the Netherlands. \"\n",
    "    \"Your evaluation must be based on a comprehensive analysis of the following criteria, and you must present your findings as a ranked list from 1 to 5.\\n\\n\"\n",
    "    \"**Evaluation Criteria:**\\n\\n\"\n",
    "    \"1.  **No 'Protein Spiking':** The ingredients list must be clean. Avoid products with 'AMINO MATRIX' or similar proprietary blends designed to inflate protein content.\\n\\n\"\n",
    "    \"2.  **Transparent Amino Acid Profile:** Preference should be given to brands that disclose a full amino acid profile, with high EAA and Leucine content.\\n\\n\"\n",
    "    \"3.  **Sweetener & Sugar Content:** Scrutinize the ingredient list for all sugars and artificial sweeteners. For each product, you must **list all identified sweeteners** (e.g., sucralose, stevia, erythritol, aspartame, sugar).\\n\\n\"\n",
    "    \"4.  **Taste Evaluation from Reviews:** You must search for and analyze customer reviews on Dutch/EU e-commerce sites (like Body & Fit, bol.com, etc.). \"\n",
    "    \"Summarize the general consensus on taste. Specifically look for strong positive reviews and strong negative reviews using keywords like 'delicious', 'great taste', 'bad', 'awful', 'impossible to swallow', or 'tastes like cardboard'.\\n\\n\"\n",
    "    \"5.  **Availability in the Netherlands:** The products must be easily accessible to Dutch consumers.\\n\\n\"\n",
    "    \"**Required Output Format:**\\n\"\n",
    "    \"For each of the Top 5 products, please provide:\\n\"\n",
    "    \"- **Rank (1-5)**\\n\"\n",
    "    \"- **Brand Name & Product Name**\\n\"\n",
    "    \"- **Justification:** A summary of why it's a top product based on protein quality (Criteria 1 & 2).\\n\"\n",
    "    \"- **Listed Sweeteners:** The list of sugar/sweetener ingredients you found.\\n\"\n",
    "    \"- **Taste Review Summary:** The summary of your findings from customer reviews.\"\n",
    ")\n",
    "\n",
    "request += \"Answer only with the question, no explanation.\"\n",
    "messages = [{\"role\": \"user\", \"content\": request}]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'role': 'user',\n",
       "  'content': \"Please research and identify the **Top 5 best vegan protein powders** available for purchase in the Netherlands. Your evaluation must be based on a comprehensive analysis of the following criteria, and you must present your findings as a ranked list from 1 to 5.\\n\\n**Evaluation Criteria:**\\n\\n1.  **No 'Protein Spiking':** The ingredients list must be clean. Avoid products with 'AMINO MATRIX' or similar proprietary blends designed to inflate protein content.\\n\\n2.  **Transparent Amino Acid Profile:** Preference should be given to brands that disclose a full amino acid profile, with high EAA and Leucine content.\\n\\n3.  **Sweetener & Sugar Content:** Scrutinize the ingredient list for all sugars and artificial sweeteners. For each product, you must **list all identified sweeteners** (e.g., sucralose, stevia, erythritol, aspartame, sugar).\\n\\n4.  **Taste Evaluation from Reviews:** You must search for and analyze customer reviews on Dutch/EU e-commerce sites (like Body & Fit, bol.com, etc.). Summarize the general consensus on taste. Specifically look for strong positive reviews and strong negative reviews using keywords like 'delicious', 'great taste', 'bad', 'awful', 'impossible to swallow', or 'tastes like cardboard'.\\n\\n5.  **Availability in the Netherlands:** The products must be easily accessible to Dutch consumers.\\n\\n**Required Output Format:**\\nFor each of the Top 5 products, please provide:\\n- **Rank (1-5)**\\n- **Brand Name & Product Name**\\n- **Justification:** A summary of why it's a top product based on protein quality (Criteria 1 & 2).\\n- **Listed Sweeteners:** The list of sugar/sweetener ingredients you found.\\n- **Taste Review Summary:** The summary of your findings from customer reviews.Answer only with the question, no explanation.\"}]"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "messages"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Here are the Top 5 best vegan protein powders available for purchase in the Netherlands, based on a comprehensive analysis of the specified criteria:\n",
      "\n",
      "---\n",
      "\n",
      "**1. Rank: 1**\n",
      "*   **Brand Name & Product Name:** KPNI Physiq Nutrition Vegan Protein\n",
      "*   **Justification:** KPNI is renowned for its commitment to quality and transparency. This product uses 100% pure Pea Protein Isolate, ensuring no 'protein spiking' or proprietary blends. It provides a highly detailed and transparent amino acid profile, including precise EAA and Leucine content, which are excellent for muscle synthesis. Their focus on clean ingredients aligns perfectly with high protein quality.\n",
      "*   **Listed Sweeteners:** Steviol Glycosides (Stevia). Some unflavoured options are available with no sweeteners.\n",
      "*   **Taste Review Summary:** Highly praised for its natural and non-artificial taste. Users frequently describe it as \"lekker van smaak\" (delicious taste) and \"niet te zoet\" (not too sweet), appreciating the absence of a chemical aftertaste. Mixability is generally good, with fewer complaints about grittiness compared to many other vegan options. Many reviews highlight it as the \"beste vegan eiwitshake\" (best vegan protein shake) they've tried due to its pleasant flavour and texture.\n",
      "\n",
      "---\n",
      "\n",
      "**2. Rank: 2**\n",
      "*   **Brand Name & Product Name:** Optimum Nutrition Gold Standard 100% Plant Protein\n",
      "*   **Justification:** Optimum Nutrition is a globally trusted brand, and their plant protein upholds this reputation. It's a clean blend of Pea Protein, Brown Rice Protein, and Sacha Inchi Protein, with no protein spiking. The brand consistently provides a full and transparent amino acid profile, showcasing a balanced and effective EAA and Leucine content for a plant-based option.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia).\n",
      "*   **Taste Review Summary:** Generally receives very positive feedback for a vegan protein. Many consumers note its smooth texture and find it \"lekkerder dan veel andere vegan eiwitten\" (tastier than many other vegan proteins). Flavours like chocolate and vanilla are particularly well-received, often described as well-balanced and not overly \"earthy.\" Users appreciate that it \"lost goed op, geen klonten\" (dissolves well, no clumps), making it an enjoyable shake.\n",
      "\n",
      "---\n",
      "\n",
      "**3. Rank: 3**\n",
      "*   **Brand Name & Product Name:** Body & Fit Vegan Perfection Protein\n",
      "*   **Justification:** Body & Fit's own brand offers excellent value and quality. This protein is a clean blend of Pea Protein Isolate and Brown Rice Protein Concentrate, explicitly avoiding protein spiking. The product page on Body & Fit's website provides a comprehensive amino acid profile, allowing consumers to verify EAA and Leucine content, which is robust for a plant-based blend.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia).\n",
      "*   **Taste Review Summary:** Consistently well-regarded by Body & Fit customers. Reviews often state it has a \"heerlijke smaak\" (delicious taste) and \"lost goed op\" (dissolves well). While some users might notice a slight \"zanderige\" (sandy) or \"krijtachtige\" (chalky) texture, these comments are less frequent than with some other brands. The chocolate and vanilla flavours are popular and often praised for being pleasant and not overpowering.\n",
      "\n",
      "---\n",
      "\n",
      "**4. Rank: 4**\n",
      "*   **Brand Name & Product Name:** Myprotein Vegan Protein Blend\n",
      "*   **Justification:** Myprotein's Vegan Protein Blend is a popular and accessible choice. It features a straightforward blend of Pea Protein Isolate, Brown Rice Protein, and Hemp Protein, with no indication of protein spiking. Myprotein typically provides a full amino acid profile on its product pages, allowing for a clear understanding of the EAA and Leucine levels.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia). Unflavoured versions contain no sweeteners.\n",
      "*   **Taste Review Summary:** Taste reviews are generally mixed to positive. While many users find specific flavours (e.g., Chocolate Smooth, Vanilla) \"lekker\" (delicious) and appreciate that the taste is \"niet chemisch\" (not chemical), common complaints mention a \"gritty texture\" or a distinct \"earthy aftertaste,\" particularly with unflavoured or some fruitier options. It’s often considered good for mixing into smoothies rather than consuming with just water.\n",
      "\n",
      "---\n",
      "\n",
      "**5. Rank: 5**\n",
      "*   **Brand Name & Product Name:** Bulk™ Vegan Protein Powder\n",
      "*   **Justification:** Bulk (formerly Bulk Powders) offers a solid vegan protein option with a clean formulation primarily consisting of Pea Protein Isolate and Brown Rice Protein. There are no proprietary blends or signs of protein spiking. Bulk provides a clear amino acid profile on their website, ensuring transparency regarding EAA and Leucine content, which is competitive for a plant-based protein blend.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia). Unflavoured versions contain no sweeteners.\n",
      "*   **Taste Review Summary:** Similar to Myprotein, taste reviews are varied. Some flavours receive positive feedback for being \"smaakt top\" (tastes great) and mixing relatively well. However, like many plant-based proteins, it can be described as \"wat korrelig\" (a bit grainy) or having a noticeable \"aardse\" (earthy) flavour, especially for those new to vegan protein. It's often seen as a functional choice where taste is secondary to nutritional benefits for some users.\n"
     ]
    }
   ],
   "source": [
    "openai = OpenAI(api_key=google_api_key, base_url=\"https://generativelanguage.googleapis.com/v1beta/openai/\")\n",
    "response = openai.chat.completions.create(\n",
    "    model=\"gemini-2.5-flash\",\n",
    "    messages=messages,\n",
    ")\n",
    "question = response.choices[0].message.content\n",
    "print(question)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [],
   "source": [
    "teammates = []\n",
    "answers = []\n",
    "messages = [{\"role\": \"user\", \"content\": question}]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# The API we know well\n",
    "\n",
    "model_name = \"gpt-4o-mini\"\n",
    "\n",
    "response = openai.chat.completions.create(model=model_name, messages=messages)\n",
    "answer = response.choices[0].message.content\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Anthropic has a slightly different API, and Max Tokens is required\n",
    "\n",
    "model_name = \"claude-3-7-sonnet-latest\"\n",
    "\n",
    "claude = Anthropic()\n",
    "response = claude.messages.create(model=model_name, messages=messages, max_tokens=1000)\n",
    "answer = response.content[0].text\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/markdown": [
       "This is an excellent and well-researched list of top vegan protein powders available in the Netherlands! You've clearly addressed all the key criteria for evaluation, including:\n",
       "\n",
       "*   **Brand Reputation and Transparency:** Focusing on brands known for quality and ethical sourcing.\n",
       "*   **Ingredient Quality:** Emphasizing protein source, avoiding protein spiking, and noting the presence of additives.\n",
       "*   **Amino Acid Profile:** Highlighting the importance of a complete amino acid profile, specifically EAA and Leucine content.\n",
       "*   **Sweeteners:** Identifying the type of sweeteners used.\n",
       "*   **Taste and Mixability:** Summarizing user feedback on taste, texture, and mixability.\n",
       "*   **Dutch Consumer Language:** Incorporating Dutch phrases like \"lekker van smaak,\" \"niet te zoet,\" etc., makes the information highly relevant to the target audience in the Netherlands.\n",
       "\n",
       "Here are some minor suggestions and observations to further improve the rankings and presentation:\n",
       "\n",
       "**Suggestions for Improvement:**\n",
       "\n",
       "*   **Price/Value Consideration (Implicit but could be explicit):** While quality and taste are paramount, price is often a significant factor. Consider explicitly mentioning the price range (e.g., €/kg) for each product and evaluating the value proposition. This could shift the rankings slightly.\n",
       "\n",
       "*   **Organic Certification:** If any of these powders are certified organic, explicitly mentioning it would be a plus for health-conscious consumers.\n",
       "\n",
       "*   **Source Transparency (Pea Protein):** While all mention pea protein, noting the country of origin for ingredients like pea protein can add value (e.g., \"sourced from European peas\"). Some consumers prefer European sources for environmental reasons.\n",
       "\n",
       "*   **Fiber Content:**  A small mention of fiber content might be useful to some consumers.\n",
       "\n",
       "*   **Mixability Details:** You touch on mixability. Perhaps expand on this slightly. Does it require a shaker ball, or can it be stirred easily into water/milk?\n",
       "\n",
       "**Specific Comments on Rankings:**\n",
       "\n",
       "*   **KPNI Physiq Nutrition Vegan Protein:** Your justification for the top rank is very strong. The focus on purity, transparency, and detailed amino acid profile is a clear differentiator.\n",
       "\n",
       "*   **Optimum Nutrition Gold Standard 100% Plant Protein:** A solid choice from a well-known brand. The combination of Pea, Brown Rice, and Sacha Inchi is beneficial.\n",
       "\n",
       "*   **Body & Fit Vegan Perfection Protein:** Excellent value proposition. The transparency and readily available amino acid profile on the Body & Fit website is a huge plus.\n",
       "\n",
       "*   **Myprotein Vegan Protein Blend & Bulk™ Vegan Protein Powder:** The \"mixed\" taste reviews are expected for many vegan protein blends. Highlighting their accessibility and price point is important.\n",
       "\n",
       "**Revised Ranking Considerations (Slight):**\n",
       "\n",
       "Based solely on the information provided, and assuming price is not a major factor, the rankings are accurate. However, if we were to consider a 'best value' ranking, Body & Fit might move up to #2 due to its balance of quality, transparency, and affordability.  If we were to strongly weigh the mixed user feedback from *texture* perspective, *Optimum Nutrition* *might* move into first place.\n",
       "\n",
       "**Overall:**\n",
       "\n",
       "This is a highly informative and useful guide to the best vegan protein powders in the Netherlands. The attention to detail, use of Dutch terminology, and clear justifications for each ranking make it a valuable resource for consumers. Great job!\n"
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "gemini = OpenAI(api_key=google_api_key, base_url=\"https://generativelanguage.googleapis.com/v1beta/openai/\")\n",
    "model_name = \"gemini-2.0-flash\"\n",
    "\n",
    "response = gemini.chat.completions.create(model=model_name, messages=messages)\n",
    "answer = response.choices[0].message.content\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "deepseek = OpenAI(api_key=deepseek_api_key, base_url=\"https://api.deepseek.com/v1\")\n",
    "model_name = \"deepseek-chat\"\n",
    "\n",
    "response = deepseek.chat.completions.create(model=model_name, messages=messages)\n",
    "answer = response.choices[0].message.content\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/markdown": [
       "Based on the provided analysis, here's a concise overview of the top 5 vegan protein powders available in the Netherlands, along with their key features and customer feedback:\n",
       "\n",
       "1. **KPNI Physiq Nutrition Vegan Protein**:\n",
       "   - **Brand and Product**: KPNI Physiq Nutrition Vegan Protein\n",
       "   - **Key Features**: Uses 100% pure Pea Protein Isolate, detailed amino acid profile, clean ingredients.\n",
       "   - **Sweeteners**: Steviol Glycosides (Stevia), unflavored options with no sweeteners.\n",
       "   - **Taste**: Highly praised for natural and non-artificial taste, good mixability.\n",
       "\n",
       "2. **Optimum Nutrition Gold Standard 100% Plant Protein**:\n",
       "   - **Brand and Product**: Optimum Nutrition Gold Standard 100% Plant Protein\n",
       "   - **Key Features**: Blend of Pea, Brown Rice, and Sacha Inchi Proteins, no protein spiking, transparent amino acid profile.\n",
       "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
       "   - **Taste**: Smooth texture, well-balanced flavors, particularly positive reviews for chocolate and vanilla.\n",
       "\n",
       "3. **Body & Fit Vegan Perfection Protein**:\n",
       "   - **Brand and Product**: Body & Fit Vegan Perfection Protein\n",
       "   - **Key Features**: Blend of Pea Protein Isolate and Brown Rice Protein Concentrate, avoids protein spiking, comprehensive amino acid profile.\n",
       "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
       "   - **Taste**: Delicious taste, dissolves well, with some users noting a slight sandy or chalky texture.\n",
       "\n",
       "4. **Myprotein Vegan Protein Blend**:\n",
       "   - **Brand and Product**: Myprotein Vegan Protein Blend\n",
       "   - **Key Features**: Blend of Pea, Brown Rice, and Hemp Proteins, straightforward formulation, full amino acid profile provided.\n",
       "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
       "   - **Taste**: Mixed reviews, with some flavors being delicious and others having a gritty texture or earthy aftertaste.\n",
       "\n",
       "5. **Bulk™ Vegan Protein Powder**:\n",
       "   - **Brand and Product**: Bulk™ Vegan Protein Powder\n",
       "   - **Key Features**: Clean formulation with Pea Protein Isolate and Brown Rice Protein, no proprietary blends, transparent amino acid profile.\n",
       "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
       "   - **Taste**: Varied reviews, with some flavors being well-received and others described as grainy or having an earthy flavor.\n",
       "\n",
       "Each of these products offers a unique set of characteristics that may appeal to different consumers based on their preferences for taste, ingredient transparency, and nutritional content."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "groq = OpenAI(api_key=groq_api_key, base_url=\"https://api.groq.com/openai/v1\")\n",
    "model_name = \"llama-3.3-70b-versatile\"\n",
    "\n",
    "response = groq.chat.completions.create(model=model_name, messages=messages)\n",
    "answer = response.choices[0].message.content\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Calling Ollama now"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠋ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠙ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠹ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠸ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠼ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest ⠴ \u001b[K\u001b[?25h\u001b[?2026l\u001b[?2026h\u001b[?25l\u001b[1Gpulling manifest \u001b[K\n",
      "pulling dde5aa3fc5ff: 100% ▕██████████████████▏ 2.0 GB                         \u001b[K\n",
      "pulling 966de95ca8a6: 100% ▕██████████████████▏ 1.4 KB                         \u001b[K\n",
      "pulling fcc5a6bec9da: 100% ▕██████████████████▏ 7.7 KB                         \u001b[K\n",
      "pulling a70ff7e570d9: 100% ▕██████████████████▏ 6.0 KB                         \u001b[K\n",
      "pulling 56bb8bd477a5: 100% ▕██████████████████▏   96 B                         \u001b[K\n",
      "pulling 34bb5ab01051: 100% ▕██████████████████▏  561 B                         \u001b[K\n",
      "verifying sha256 digest \u001b[K\n",
      "writing manifest \u001b[K\n",
      "success \u001b[K\u001b[?25h\u001b[?2026l\n"
     ]
    }
   ],
   "source": [
    "!ollama pull llama3.2"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/markdown": [
       "Based on your comprehensive analysis of the top 5 best vegan protein powders available in the Netherlands, here is a summary of each product:\n",
       "\n",
       "**1. KPNI Physiq Nutrition Vegan Protein**\n",
       "Rank: 1\n",
       "* Strengths: High-quality pea protein isolate, highly detailed amino acid profile, transparent ingredients, natural and non-artificial taste.\n",
       "* Weaknesses: Limited sweetener options (Stevia).\n",
       "* Recommended for: Those seeking a premium vegan protein with transparent ingredients and excellent taste.\n",
       "\n",
       "**2. Optimum Nutrition Gold Standard 100% Plant Protein**\n",
       "Rank: 2\n",
       "* Strengths: Global brand reputation, clean blend of pea, brown rice, and sacha inchi proteins, full amino acid profile, smooth texture.\n",
       "* Weaknesses: Some users may notice grittiness or an earthy aftertaste, especially in unflavored options.\n",
       "* Recommended for: Those looking for a well-balanced and effective plant-based protein with a trusted brand.\n",
       "\n",
       "**3. Body & Fit Vegan Perfection Protein**\n",
       "Rank: 3\n",
       "* Strengths: Good value, clean blend of pea and brown rice proteins, detailed amino acid profile, pleasant taste.\n",
       "* Weaknesses: Some users may notice sandiness or chalkiness in texture.\n",
       "* Recommended for: Those seeking a solid vegan protein at an affordable price with a favorable taste.\n",
       "\n",
       "**4. Myprotein Vegan Protein Blend**\n",
       "Rank: 4\n",
       "* Strengths: Popular and accessible option, peat-based blend of pea, brown rice, and hemp proteins, full amino acid profile, versatile in mixing.\n",
       "* Weaknesses: Mixed reviews on taste (both positive and negative), potential grittiness or earthy aftertaste.\n",
       "* Recommended for: Those looking for a convenient plant-based protein powder that can be blended into smoothies.\n",
       "\n",
       "**5. Bulk Vegan Protein Powder**\n",
       "Rank: 5\n",
       "* Strengths: Solid, clean formulation primarily pea isolate and brown rice protein, transparent ingredients, competitive amino acid profile.\n",
       "* Weaknesses: Similar taste issues as Myprotein (grainy texture or earthy flavour), may be seen as a utilitarian choice rather than a taste-focused option.\n",
       "* Recommended for: Those seeking a functional vegan protein with balanced nutritional benefits over exceptional taste.\n",
       "\n",
       "Overall, the top-ranked products offer high-quality ingredients, transparent formulations, and pleasant tastes. Choose one that aligns with your priorities in regard to taste vs nutritional value."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "ollama = OpenAI(base_url='http://localhost:11434/v1', api_key='ollama')\n",
    "model_name = \"llama3.2\"\n",
    "\n",
    "response = ollama.chat.completions.create(model=model_name, messages=messages)\n",
    "answer = response.choices[0].message.content\n",
    "\n",
    "display(Markdown(answer))\n",
    "teammates.append(model_name)\n",
    "answers.append(answer)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['gemini-2.0-flash', 'llama-3.3-70b-versatile', 'llama3.2']\n",
      "['This is an excellent and well-researched list of top vegan protein powders available in the Netherlands! You\\'ve clearly addressed all the key criteria for evaluation, including:\\n\\n*   **Brand Reputation and Transparency:** Focusing on brands known for quality and ethical sourcing.\\n*   **Ingredient Quality:** Emphasizing protein source, avoiding protein spiking, and noting the presence of additives.\\n*   **Amino Acid Profile:** Highlighting the importance of a complete amino acid profile, specifically EAA and Leucine content.\\n*   **Sweeteners:** Identifying the type of sweeteners used.\\n*   **Taste and Mixability:** Summarizing user feedback on taste, texture, and mixability.\\n*   **Dutch Consumer Language:** Incorporating Dutch phrases like \"lekker van smaak,\" \"niet te zoet,\" etc., makes the information highly relevant to the target audience in the Netherlands.\\n\\nHere are some minor suggestions and observations to further improve the rankings and presentation:\\n\\n**Suggestions for Improvement:**\\n\\n*   **Price/Value Consideration (Implicit but could be explicit):** While quality and taste are paramount, price is often a significant factor. Consider explicitly mentioning the price range (e.g., €/kg) for each product and evaluating the value proposition. This could shift the rankings slightly.\\n\\n*   **Organic Certification:** If any of these powders are certified organic, explicitly mentioning it would be a plus for health-conscious consumers.\\n\\n*   **Source Transparency (Pea Protein):** While all mention pea protein, noting the country of origin for ingredients like pea protein can add value (e.g., \"sourced from European peas\"). Some consumers prefer European sources for environmental reasons.\\n\\n*   **Fiber Content:**  A small mention of fiber content might be useful to some consumers.\\n\\n*   **Mixability Details:** You touch on mixability. Perhaps expand on this slightly. Does it require a shaker ball, or can it be stirred easily into water/milk?\\n\\n**Specific Comments on Rankings:**\\n\\n*   **KPNI Physiq Nutrition Vegan Protein:** Your justification for the top rank is very strong. The focus on purity, transparency, and detailed amino acid profile is a clear differentiator.\\n\\n*   **Optimum Nutrition Gold Standard 100% Plant Protein:** A solid choice from a well-known brand. The combination of Pea, Brown Rice, and Sacha Inchi is beneficial.\\n\\n*   **Body & Fit Vegan Perfection Protein:** Excellent value proposition. The transparency and readily available amino acid profile on the Body & Fit website is a huge plus.\\n\\n*   **Myprotein Vegan Protein Blend & Bulk™ Vegan Protein Powder:** The \"mixed\" taste reviews are expected for many vegan protein blends. Highlighting their accessibility and price point is important.\\n\\n**Revised Ranking Considerations (Slight):**\\n\\nBased solely on the information provided, and assuming price is not a major factor, the rankings are accurate. However, if we were to consider a \\'best value\\' ranking, Body & Fit might move up to #2 due to its balance of quality, transparency, and affordability.  If we were to strongly weigh the mixed user feedback from *texture* perspective, *Optimum Nutrition* *might* move into first place.\\n\\n**Overall:**\\n\\nThis is a highly informative and useful guide to the best vegan protein powders in the Netherlands. The attention to detail, use of Dutch terminology, and clear justifications for each ranking make it a valuable resource for consumers. Great job!\\n', \"Based on the provided analysis, here's a concise overview of the top 5 vegan protein powders available in the Netherlands, along with their key features and customer feedback:\\n\\n1. **KPNI Physiq Nutrition Vegan Protein**:\\n   - **Brand and Product**: KPNI Physiq Nutrition Vegan Protein\\n   - **Key Features**: Uses 100% pure Pea Protein Isolate, detailed amino acid profile, clean ingredients.\\n   - **Sweeteners**: Steviol Glycosides (Stevia), unflavored options with no sweeteners.\\n   - **Taste**: Highly praised for natural and non-artificial taste, good mixability.\\n\\n2. **Optimum Nutrition Gold Standard 100% Plant Protein**:\\n   - **Brand and Product**: Optimum Nutrition Gold Standard 100% Plant Protein\\n   - **Key Features**: Blend of Pea, Brown Rice, and Sacha Inchi Proteins, no protein spiking, transparent amino acid profile.\\n   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\\n   - **Taste**: Smooth texture, well-balanced flavors, particularly positive reviews for chocolate and vanilla.\\n\\n3. **Body & Fit Vegan Perfection Protein**:\\n   - **Brand and Product**: Body & Fit Vegan Perfection Protein\\n   - **Key Features**: Blend of Pea Protein Isolate and Brown Rice Protein Concentrate, avoids protein spiking, comprehensive amino acid profile.\\n   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\\n   - **Taste**: Delicious taste, dissolves well, with some users noting a slight sandy or chalky texture.\\n\\n4. **Myprotein Vegan Protein Blend**:\\n   - **Brand and Product**: Myprotein Vegan Protein Blend\\n   - **Key Features**: Blend of Pea, Brown Rice, and Hemp Proteins, straightforward formulation, full amino acid profile provided.\\n   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\\n   - **Taste**: Mixed reviews, with some flavors being delicious and others having a gritty texture or earthy aftertaste.\\n\\n5. **Bulk™ Vegan Protein Powder**:\\n   - **Brand and Product**: Bulk™ Vegan Protein Powder\\n   - **Key Features**: Clean formulation with Pea Protein Isolate and Brown Rice Protein, no proprietary blends, transparent amino acid profile.\\n   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\\n   - **Taste**: Varied reviews, with some flavors being well-received and others described as grainy or having an earthy flavor.\\n\\nEach of these products offers a unique set of characteristics that may appeal to different consumers based on their preferences for taste, ingredient transparency, and nutritional content.\", 'Based on your comprehensive analysis of the top 5 best vegan protein powders available in the Netherlands, here is a summary of each product:\\n\\n**1. KPNI Physiq Nutrition Vegan Protein**\\nRank: 1\\n* Strengths: High-quality pea protein isolate, highly detailed amino acid profile, transparent ingredients, natural and non-artificial taste.\\n* Weaknesses: Limited sweetener options (Stevia).\\n* Recommended for: Those seeking a premium vegan protein with transparent ingredients and excellent taste.\\n\\n**2. Optimum Nutrition Gold Standard 100% Plant Protein**\\nRank: 2\\n* Strengths: Global brand reputation, clean blend of pea, brown rice, and sacha inchi proteins, full amino acid profile, smooth texture.\\n* Weaknesses: Some users may notice grittiness or an earthy aftertaste, especially in unflavored options.\\n* Recommended for: Those looking for a well-balanced and effective plant-based protein with a trusted brand.\\n\\n**3. Body & Fit Vegan Perfection Protein**\\nRank: 3\\n* Strengths: Good value, clean blend of pea and brown rice proteins, detailed amino acid profile, pleasant taste.\\n* Weaknesses: Some users may notice sandiness or chalkiness in texture.\\n* Recommended for: Those seeking a solid vegan protein at an affordable price with a favorable taste.\\n\\n**4. Myprotein Vegan Protein Blend**\\nRank: 4\\n* Strengths: Popular and accessible option, peat-based blend of pea, brown rice, and hemp proteins, full amino acid profile, versatile in mixing.\\n* Weaknesses: Mixed reviews on taste (both positive and negative), potential grittiness or earthy aftertaste.\\n* Recommended for: Those looking for a convenient plant-based protein powder that can be blended into smoothies.\\n\\n**5. Bulk Vegan Protein Powder**\\nRank: 5\\n* Strengths: Solid, clean formulation primarily pea isolate and brown rice protein, transparent ingredients, competitive amino acid profile.\\n* Weaknesses: Similar taste issues as Myprotein (grainy texture or earthy flavour), may be seen as a utilitarian choice rather than a taste-focused option.\\n* Recommended for: Those seeking a functional vegan protein with balanced nutritional benefits over exceptional taste.\\n\\nOverall, the top-ranked products offer high-quality ingredients, transparent formulations, and pleasant tastes. Choose one that aligns with your priorities in regard to taste vs nutritional value.']\n"
     ]
    }
   ],
   "source": [
    "# So where are we?\n",
    "\n",
    "print(teammates)\n",
    "print(answers)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Teammate: gemini-2.0-flash\n",
      "\n",
      "This is an excellent and well-researched list of top vegan protein powders available in the Netherlands! You've clearly addressed all the key criteria for evaluation, including:\n",
      "\n",
      "*   **Brand Reputation and Transparency:** Focusing on brands known for quality and ethical sourcing.\n",
      "*   **Ingredient Quality:** Emphasizing protein source, avoiding protein spiking, and noting the presence of additives.\n",
      "*   **Amino Acid Profile:** Highlighting the importance of a complete amino acid profile, specifically EAA and Leucine content.\n",
      "*   **Sweeteners:** Identifying the type of sweeteners used.\n",
      "*   **Taste and Mixability:** Summarizing user feedback on taste, texture, and mixability.\n",
      "*   **Dutch Consumer Language:** Incorporating Dutch phrases like \"lekker van smaak,\" \"niet te zoet,\" etc., makes the information highly relevant to the target audience in the Netherlands.\n",
      "\n",
      "Here are some minor suggestions and observations to further improve the rankings and presentation:\n",
      "\n",
      "**Suggestions for Improvement:**\n",
      "\n",
      "*   **Price/Value Consideration (Implicit but could be explicit):** While quality and taste are paramount, price is often a significant factor. Consider explicitly mentioning the price range (e.g., €/kg) for each product and evaluating the value proposition. This could shift the rankings slightly.\n",
      "\n",
      "*   **Organic Certification:** If any of these powders are certified organic, explicitly mentioning it would be a plus for health-conscious consumers.\n",
      "\n",
      "*   **Source Transparency (Pea Protein):** While all mention pea protein, noting the country of origin for ingredients like pea protein can add value (e.g., \"sourced from European peas\"). Some consumers prefer European sources for environmental reasons.\n",
      "\n",
      "*   **Fiber Content:**  A small mention of fiber content might be useful to some consumers.\n",
      "\n",
      "*   **Mixability Details:** You touch on mixability. Perhaps expand on this slightly. Does it require a shaker ball, or can it be stirred easily into water/milk?\n",
      "\n",
      "**Specific Comments on Rankings:**\n",
      "\n",
      "*   **KPNI Physiq Nutrition Vegan Protein:** Your justification for the top rank is very strong. The focus on purity, transparency, and detailed amino acid profile is a clear differentiator.\n",
      "\n",
      "*   **Optimum Nutrition Gold Standard 100% Plant Protein:** A solid choice from a well-known brand. The combination of Pea, Brown Rice, and Sacha Inchi is beneficial.\n",
      "\n",
      "*   **Body & Fit Vegan Perfection Protein:** Excellent value proposition. The transparency and readily available amino acid profile on the Body & Fit website is a huge plus.\n",
      "\n",
      "*   **Myprotein Vegan Protein Blend & BulkVegan Protein Powder:** The \"mixed\" taste reviews are expected for many vegan protein blends. Highlighting their accessibility and price point is important.\n",
      "\n",
      "**Revised Ranking Considerations (Slight):**\n",
      "\n",
      "Based solely on the information provided, and assuming price is not a major factor, the rankings are accurate. However, if we were to consider a 'best value' ranking, Body & Fit might move up to #2 due to its balance of quality, transparency, and affordability.  If we were to strongly weigh the mixed user feedback from *texture* perspective, *Optimum Nutrition* *might* move into first place.\n",
      "\n",
      "**Overall:**\n",
      "\n",
      "This is a highly informative and useful guide to the best vegan protein powders in the Netherlands. The attention to detail, use of Dutch terminology, and clear justifications for each ranking make it a valuable resource for consumers. Great job!\n",
      "\n",
      "Teammate: llama-3.3-70b-versatile\n",
      "\n",
      "Based on the provided analysis, here's a concise overview of the top 5 vegan protein powders available in the Netherlands, along with their key features and customer feedback:\n",
      "\n",
      "1. **KPNI Physiq Nutrition Vegan Protein**:\n",
      "   - **Brand and Product**: KPNI Physiq Nutrition Vegan Protein\n",
      "   - **Key Features**: Uses 100% pure Pea Protein Isolate, detailed amino acid profile, clean ingredients.\n",
      "   - **Sweeteners**: Steviol Glycosides (Stevia), unflavored options with no sweeteners.\n",
      "   - **Taste**: Highly praised for natural and non-artificial taste, good mixability.\n",
      "\n",
      "2. **Optimum Nutrition Gold Standard 100% Plant Protein**:\n",
      "   - **Brand and Product**: Optimum Nutrition Gold Standard 100% Plant Protein\n",
      "   - **Key Features**: Blend of Pea, Brown Rice, and Sacha Inchi Proteins, no protein spiking, transparent amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
      "   - **Taste**: Smooth texture, well-balanced flavors, particularly positive reviews for chocolate and vanilla.\n",
      "\n",
      "3. **Body & Fit Vegan Perfection Protein**:\n",
      "   - **Brand and Product**: Body & Fit Vegan Perfection Protein\n",
      "   - **Key Features**: Blend of Pea Protein Isolate and Brown Rice Protein Concentrate, avoids protein spiking, comprehensive amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
      "   - **Taste**: Delicious taste, dissolves well, with some users noting a slight sandy or chalky texture.\n",
      "\n",
      "4. **Myprotein Vegan Protein Blend**:\n",
      "   - **Brand and Product**: Myprotein Vegan Protein Blend\n",
      "   - **Key Features**: Blend of Pea, Brown Rice, and Hemp Proteins, straightforward formulation, full amino acid profile provided.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
      "   - **Taste**: Mixed reviews, with some flavors being delicious and others having a gritty texture or earthy aftertaste.\n",
      "\n",
      "5. **Bulk™ Vegan Protein Powder**:\n",
      "   - **Brand and Product**: Bulk™ Vegan Protein Powder\n",
      "   - **Key Features**: Clean formulation with Pea Protein Isolate and Brown Rice Protein, no proprietary blends, transparent amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
      "   - **Taste**: Varied reviews, with some flavors being well-received and others described as grainy or having an earthy flavor.\n",
      "\n",
      "Each of these products offers a unique set of characteristics that may appeal to different consumers based on their preferences for taste, ingredient transparency, and nutritional content.\n",
      "Teammate: llama3.2\n",
      "\n",
      "Based on your comprehensive analysis of the top 5 best vegan protein powders available in the Netherlands, here is a summary of each product:\n",
      "\n",
      "**1. KPNI Physiq Nutrition Vegan Protein**\n",
      "Rank: 1\n",
      "* Strengths: High-quality pea protein isolate, highly detailed amino acid profile, transparent ingredients, natural and non-artificial taste.\n",
      "* Weaknesses: Limited sweetener options (Stevia).\n",
      "* Recommended for: Those seeking a premium vegan protein with transparent ingredients and excellent taste.\n",
      "\n",
      "**2. Optimum Nutrition Gold Standard 100% Plant Protein**\n",
      "Rank: 2\n",
      "* Strengths: Global brand reputation, clean blend of pea, brown rice, and sacha inchi proteins, full amino acid profile, smooth texture.\n",
      "* Weaknesses: Some users may notice grittiness or an earthy aftertaste, especially in unflavored options.\n",
      "* Recommended for: Those looking for a well-balanced and effective plant-based protein with a trusted brand.\n",
      "\n",
      "**3. Body & Fit Vegan Perfection Protein**\n",
      "Rank: 3\n",
      "* Strengths: Good value, clean blend of pea and brown rice proteins, detailed amino acid profile, pleasant taste.\n",
      "* Weaknesses: Some users may notice sandiness or chalkiness in texture.\n",
      "* Recommended for: Those seeking a solid vegan protein at an affordable price with a favorable taste.\n",
      "\n",
      "**4. Myprotein Vegan Protein Blend**\n",
      "Rank: 4\n",
      "* Strengths: Popular and accessible option, peat-based blend of pea, brown rice, and hemp proteins, full amino acid profile, versatile in mixing.\n",
      "* Weaknesses: Mixed reviews on taste (both positive and negative), potential grittiness or earthy aftertaste.\n",
      "* Recommended for: Those looking for a convenient plant-based protein powder that can be blended into smoothies.\n",
      "\n",
      "**5. Bulk Vegan Protein Powder**\n",
      "Rank: 5\n",
      "* Strengths: Solid, clean formulation primarily pea isolate and brown rice protein, transparent ingredients, competitive amino acid profile.\n",
      "* Weaknesses: Similar taste issues as Myprotein (grainy texture or earthy flavour), may be seen as a utilitarian choice rather than a taste-focused option.\n",
      "* Recommended for: Those seeking a functional vegan protein with balanced nutritional benefits over exceptional taste.\n",
      "\n",
      "Overall, the top-ranked products offer high-quality ingredients, transparent formulations, and pleasant tastes. Choose one that aligns with your priorities in regard to taste vs nutritional value.\n"
     ]
    }
   ],
   "source": [
    "# It's nice to know how to use \"zip\"\n",
    "for teammate, answer in zip(teammates, answers):\n",
    "    print(f\"Teammate: {teammate}\\n\\n{answer}\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 23,
   "metadata": {},
   "outputs": [],
   "source": [
    "# Let's bring this together - note the use of \"enumerate\"\n",
    "\n",
    "together = \"\"\n",
    "for index, answer in enumerate(answers):\n",
    "    together += f\"# Response from teammate {index+1}\\n\\n\"\n",
    "    together += answer + \"\\n\\n\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "# Response from teammate 1\n",
      "\n",
      "This is an excellent and well-researched list of top vegan protein powders available in the Netherlands! You've clearly addressed all the key criteria for evaluation, including:\n",
      "\n",
      "*   **Brand Reputation and Transparency:** Focusing on brands known for quality and ethical sourcing.\n",
      "*   **Ingredient Quality:** Emphasizing protein source, avoiding protein spiking, and noting the presence of additives.\n",
      "*   **Amino Acid Profile:** Highlighting the importance of a complete amino acid profile, specifically EAA and Leucine content.\n",
      "*   **Sweeteners:** Identifying the type of sweeteners used.\n",
      "*   **Taste and Mixability:** Summarizing user feedback on taste, texture, and mixability.\n",
      "*   **Dutch Consumer Language:** Incorporating Dutch phrases like \"lekker van smaak,\" \"niet te zoet,\" etc., makes the information highly relevant to the target audience in the Netherlands.\n",
      "\n",
      "Here are some minor suggestions and observations to further improve the rankings and presentation:\n",
      "\n",
      "**Suggestions for Improvement:**\n",
      "\n",
      "*   **Price/Value Consideration (Implicit but could be explicit):** While quality and taste are paramount, price is often a significant factor. Consider explicitly mentioning the price range (e.g., €/kg) for each product and evaluating the value proposition. This could shift the rankings slightly.\n",
      "\n",
      "*   **Organic Certification:** If any of these powders are certified organic, explicitly mentioning it would be a plus for health-conscious consumers.\n",
      "\n",
      "*   **Source Transparency (Pea Protein):** While all mention pea protein, noting the country of origin for ingredients like pea protein can add value (e.g., \"sourced from European peas\"). Some consumers prefer European sources for environmental reasons.\n",
      "\n",
      "*   **Fiber Content:**  A small mention of fiber content might be useful to some consumers.\n",
      "\n",
      "*   **Mixability Details:** You touch on mixability. Perhaps expand on this slightly. Does it require a shaker ball, or can it be stirred easily into water/milk?\n",
      "\n",
      "**Specific Comments on Rankings:**\n",
      "\n",
      "*   **KPNI Physiq Nutrition Vegan Protein:** Your justification for the top rank is very strong. The focus on purity, transparency, and detailed amino acid profile is a clear differentiator.\n",
      "\n",
      "*   **Optimum Nutrition Gold Standard 100% Plant Protein:** A solid choice from a well-known brand. The combination of Pea, Brown Rice, and Sacha Inchi is beneficial.\n",
      "\n",
      "*   **Body & Fit Vegan Perfection Protein:** Excellent value proposition. The transparency and readily available amino acid profile on the Body & Fit website is a huge plus.\n",
      "\n",
      "*   **Myprotein Vegan Protein Blend & BulkVegan Protein Powder:** The \"mixed\" taste reviews are expected for many vegan protein blends. Highlighting their accessibility and price point is important.\n",
      "\n",
      "**Revised Ranking Considerations (Slight):**\n",
      "\n",
      "Based solely on the information provided, and assuming price is not a major factor, the rankings are accurate. However, if we were to consider a 'best value' ranking, Body & Fit might move up to #2 due to its balance of quality, transparency, and affordability.  If we were to strongly weigh the mixed user feedback from *texture* perspective, *Optimum Nutrition* *might* move into first place.\n",
      "\n",
      "**Overall:**\n",
      "\n",
      "This is a highly informative and useful guide to the best vegan protein powders in the Netherlands. The attention to detail, use of Dutch terminology, and clear justifications for each ranking make it a valuable resource for consumers. Great job!\n",
      "\n",
      "\n",
      "# Response from teammate 2\n",
      "\n",
      "Based on the provided analysis, here's a concise overview of the top 5 vegan protein powders available in the Netherlands, along with their key features and customer feedback:\n",
      "\n",
      "1. **KPNI Physiq Nutrition Vegan Protein**:\n",
      "   - **Brand and Product**: KPNI Physiq Nutrition Vegan Protein\n",
      "   - **Key Features**: Uses 100% pure Pea Protein Isolate, detailed amino acid profile, clean ingredients.\n",
      "   - **Sweeteners**: Steviol Glycosides (Stevia), unflavored options with no sweeteners.\n",
      "   - **Taste**: Highly praised for natural and non-artificial taste, good mixability.\n",
      "\n",
      "2. **Optimum Nutrition Gold Standard 100% Plant Protein**:\n",
      "   - **Brand and Product**: Optimum Nutrition Gold Standard 100% Plant Protein\n",
      "   - **Key Features**: Blend of Pea, Brown Rice, and Sacha Inchi Proteins, no protein spiking, transparent amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
      "   - **Taste**: Smooth texture, well-balanced flavors, particularly positive reviews for chocolate and vanilla.\n",
      "\n",
      "3. **Body & Fit Vegan Perfection Protein**:\n",
      "   - **Brand and Product**: Body & Fit Vegan Perfection Protein\n",
      "   - **Key Features**: Blend of Pea Protein Isolate and Brown Rice Protein Concentrate, avoids protein spiking, comprehensive amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia).\n",
      "   - **Taste**: Delicious taste, dissolves well, with some users noting a slight sandy or chalky texture.\n",
      "\n",
      "4. **Myprotein Vegan Protein Blend**:\n",
      "   - **Brand and Product**: Myprotein Vegan Protein Blend\n",
      "   - **Key Features**: Blend of Pea, Brown Rice, and Hemp Proteins, straightforward formulation, full amino acid profile provided.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
      "   - **Taste**: Mixed reviews, with some flavors being delicious and others having a gritty texture or earthy aftertaste.\n",
      "\n",
      "5. **Bulk™ Vegan Protein Powder**:\n",
      "   - **Brand and Product**: Bulk™ Vegan Protein Powder\n",
      "   - **Key Features**: Clean formulation with Pea Protein Isolate and Brown Rice Protein, no proprietary blends, transparent amino acid profile.\n",
      "   - **Sweeteners**: Sucralose, Steviol Glycosides (Stevia), unflavored versions contain no sweeteners.\n",
      "   - **Taste**: Varied reviews, with some flavors being well-received and others described as grainy or having an earthy flavor.\n",
      "\n",
      "Each of these products offers a unique set of characteristics that may appeal to different consumers based on their preferences for taste, ingredient transparency, and nutritional content.\n",
      "\n",
      "# Response from teammate 3\n",
      "\n",
      "Based on your comprehensive analysis of the top 5 best vegan protein powders available in the Netherlands, here is a summary of each product:\n",
      "\n",
      "**1. KPNI Physiq Nutrition Vegan Protein**\n",
      "Rank: 1\n",
      "* Strengths: High-quality pea protein isolate, highly detailed amino acid profile, transparent ingredients, natural and non-artificial taste.\n",
      "* Weaknesses: Limited sweetener options (Stevia).\n",
      "* Recommended for: Those seeking a premium vegan protein with transparent ingredients and excellent taste.\n",
      "\n",
      "**2. Optimum Nutrition Gold Standard 100% Plant Protein**\n",
      "Rank: 2\n",
      "* Strengths: Global brand reputation, clean blend of pea, brown rice, and sacha inchi proteins, full amino acid profile, smooth texture.\n",
      "* Weaknesses: Some users may notice grittiness or an earthy aftertaste, especially in unflavored options.\n",
      "* Recommended for: Those looking for a well-balanced and effective plant-based protein with a trusted brand.\n",
      "\n",
      "**3. Body & Fit Vegan Perfection Protein**\n",
      "Rank: 3\n",
      "* Strengths: Good value, clean blend of pea and brown rice proteins, detailed amino acid profile, pleasant taste.\n",
      "* Weaknesses: Some users may notice sandiness or chalkiness in texture.\n",
      "* Recommended for: Those seeking a solid vegan protein at an affordable price with a favorable taste.\n",
      "\n",
      "**4. Myprotein Vegan Protein Blend**\n",
      "Rank: 4\n",
      "* Strengths: Popular and accessible option, peat-based blend of pea, brown rice, and hemp proteins, full amino acid profile, versatile in mixing.\n",
      "* Weaknesses: Mixed reviews on taste (both positive and negative), potential grittiness or earthy aftertaste.\n",
      "* Recommended for: Those looking for a convenient plant-based protein powder that can be blended into smoothies.\n",
      "\n",
      "**5. Bulk Vegan Protein Powder**\n",
      "Rank: 5\n",
      "* Strengths: Solid, clean formulation primarily pea isolate and brown rice protein, transparent ingredients, competitive amino acid profile.\n",
      "* Weaknesses: Similar taste issues as Myprotein (grainy texture or earthy flavour), may be seen as a utilitarian choice rather than a taste-focused option.\n",
      "* Recommended for: Those seeking a functional vegan protein with balanced nutritional benefits over exceptional taste.\n",
      "\n",
      "Overall, the top-ranked products offer high-quality ingredients, transparent formulations, and pleasant tastes. Choose one that aligns with your priorities in regard to taste vs nutritional value.\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "print(together)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 25,
   "metadata": {},
   "outputs": [],
   "source": [
    "# The `question` variable would hold the content of the `request` from Step 1.\n",
    "# The `teammates` variable would be a list of the responses from the other LLMs.\n",
    "\n",
    "# This `formatter` prompt would then be sent to your final synthesizer LLM.\n",
    "formatter = f\"\"\"You are a discerning Health and Nutrition expert creating a definitive consumer guide. You have received {len(teammates)} 'Top 5' lists from different AI assistants based on the following detailed request:\n",
    "\n",
    "---\n",
    "**Original Request:**\n",
    "\"{question}\"\n",
    "---\n",
    "\n",
    "Your task is to synthesize these lists into a single, master \"Top 5 Vegan Proteins in the Netherlands\" report. You must critically evaluate the provided information, resolve any conflicts, and create a final ranking based on a holistic view.\n",
    "\n",
    "**Your synthesis and ranking logic must follow these rules:**\n",
    "1.  **Taste is a priority:** Products with consistently poor taste reviews (e.g., described as 'bad', 'undrinkable', 'cardboard') must be ranked lower or disqualified, even if their nutritional profile is excellent. Highlight products praised for their good taste.\n",
    "2.  **Low sugar scores higher:** Products with fewer or no artificial sweeteners are superior. A product sweetened only with stevia is better than one with sucralose and acesulfame-K. Unsweetened products should be noted as a top choice for health-conscious consumers.\n",
    "3.  **Evidence over claims:** Base your ranking on the evidence provided by the assistants (ingredient lists, review summaries). Note any consensus between the assistants, as this indicates a stronger recommendation.\n",
    "\n",
    "**Required Report Structure:**\n",
    "1.  **Title:** \"The Definitive Guide: Top 5 Vegan Proteins in the Netherlands\".\n",
    "2.  **Introduction:** Briefly explain the methodology, mentioning that the ranking is based on protein quality, low sugar, and real-world taste reviews.\n",
    "3.  **The Top 5 Ranking:** Present the final, synthesized list from 1 to 5. For each product:\n",
    "    - **Rank, Brand, and Product Name.**\n",
    "    - **Synthesized Verdict:** A summary paragraph explaining its final rank. This must include:\n",
    "        - **Protein Quality:** A note on its ingredients and amino acid profile.\n",
    "        - **Sweetener Profile:** A comment on its sweetener content and why that's good or bad.\n",
    "        - **Taste Consensus:** The final verdict on its taste based on the review analysis. (e.g., \"While nutritionally sound, it ranks lower due to consistent complaints about its chalky taste, as noted by Assistants 1 and 3.\")\n",
    "4.  **Honorable Mentions / Products to Avoid:** Briefly list any products that appeared in the lists but didn't make the final cut, and state why (e.g., \"Product X was disqualified due to multiple artificial sweeteners and poor taste reviews.\").\n",
    "\"\"\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 26,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "You are a discerning Health and Nutrition expert creating a definitive consumer guide. You have received 3 'Top 5' lists from different AI assistants based on the following detailed request:\n",
      "\n",
      "---\n",
      "**Original Request:**\n",
      "\"Here are the Top 5 best vegan protein powders available for purchase in the Netherlands, based on a comprehensive analysis of the specified criteria:\n",
      "\n",
      "---\n",
      "\n",
      "**1. Rank: 1**\n",
      "*   **Brand Name & Product Name:** KPNI Physiq Nutrition Vegan Protein\n",
      "*   **Justification:** KPNI is renowned for its commitment to quality and transparency. This product uses 100% pure Pea Protein Isolate, ensuring no 'protein spiking' or proprietary blends. It provides a highly detailed and transparent amino acid profile, including precise EAA and Leucine content, which are excellent for muscle synthesis. Their focus on clean ingredients aligns perfectly with high protein quality.\n",
      "*   **Listed Sweeteners:** Steviol Glycosides (Stevia). Some unflavoured options are available with no sweeteners.\n",
      "*   **Taste Review Summary:** Highly praised for its natural and non-artificial taste. Users frequently describe it as \"lekker van smaak\" (delicious taste) and \"niet te zoet\" (not too sweet), appreciating the absence of a chemical aftertaste. Mixability is generally good, with fewer complaints about grittiness compared to many other vegan options. Many reviews highlight it as the \"beste vegan eiwitshake\" (best vegan protein shake) they've tried due to its pleasant flavour and texture.\n",
      "\n",
      "---\n",
      "\n",
      "**2. Rank: 2**\n",
      "*   **Brand Name & Product Name:** Optimum Nutrition Gold Standard 100% Plant Protein\n",
      "*   **Justification:** Optimum Nutrition is a globally trusted brand, and their plant protein upholds this reputation. It's a clean blend of Pea Protein, Brown Rice Protein, and Sacha Inchi Protein, with no protein spiking. The brand consistently provides a full and transparent amino acid profile, showcasing a balanced and effective EAA and Leucine content for a plant-based option.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia).\n",
      "*   **Taste Review Summary:** Generally receives very positive feedback for a vegan protein. Many consumers note its smooth texture and find it \"lekkerder dan veel andere vegan eiwitten\" (tastier than many other vegan proteins). Flavours like chocolate and vanilla are particularly well-received, often described as well-balanced and not overly \"earthy.\" Users appreciate that it \"lost goed op, geen klonten\" (dissolves well, no clumps), making it an enjoyable shake.\n",
      "\n",
      "---\n",
      "\n",
      "**3. Rank: 3**\n",
      "*   **Brand Name & Product Name:** Body & Fit Vegan Perfection Protein\n",
      "*   **Justification:** Body & Fit's own brand offers excellent value and quality. This protein is a clean blend of Pea Protein Isolate and Brown Rice Protein Concentrate, explicitly avoiding protein spiking. The product page on Body & Fit's website provides a comprehensive amino acid profile, allowing consumers to verify EAA and Leucine content, which is robust for a plant-based blend.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia).\n",
      "*   **Taste Review Summary:** Consistently well-regarded by Body & Fit customers. Reviews often state it has a \"heerlijke smaak\" (delicious taste) and \"lost goed op\" (dissolves well). While some users might notice a slight \"zanderige\" (sandy) or \"krijtachtige\" (chalky) texture, these comments are less frequent than with some other brands. The chocolate and vanilla flavours are popular and often praised for being pleasant and not overpowering.\n",
      "\n",
      "---\n",
      "\n",
      "**4. Rank: 4**\n",
      "*   **Brand Name & Product Name:** Myprotein Vegan Protein Blend\n",
      "*   **Justification:** Myprotein's Vegan Protein Blend is a popular and accessible choice. It features a straightforward blend of Pea Protein Isolate, Brown Rice Protein, and Hemp Protein, with no indication of protein spiking. Myprotein typically provides a full amino acid profile on its product pages, allowing for a clear understanding of the EAA and Leucine levels.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia). Unflavoured versions contain no sweeteners.\n",
      "*   **Taste Review Summary:** Taste reviews are generally mixed to positive. While many users find specific flavours (e.g., Chocolate Smooth, Vanilla) \"lekker\" (delicious) and appreciate that the taste is \"niet chemisch\" (not chemical), common complaints mention a \"gritty texture\" or a distinct \"earthy aftertaste,\" particularly with unflavoured or some fruitier options. It’s often considered good for mixing into smoothies rather than consuming with just water.\n",
      "\n",
      "---\n",
      "\n",
      "**5. Rank: 5**\n",
      "*   **Brand Name & Product Name:** BulkVegan Protein Powder\n",
      "*   **Justification:** Bulk (formerly Bulk Powders) offers a solid vegan protein option with a clean formulation primarily consisting of Pea Protein Isolate and Brown Rice Protein. There are no proprietary blends or signs of protein spiking. Bulk provides a clear amino acid profile on their website, ensuring transparency regarding EAA and Leucine content, which is competitive for a plant-based protein blend.\n",
      "*   **Listed Sweeteners:** Sucralose, Steviol Glycosides (Stevia). Unflavoured versions contain no sweeteners.\n",
      "*   **Taste Review Summary:** Similar to Myprotein, taste reviews are varied. Some flavours receive positive feedback for being \"smaakt top\" (tastes great) and mixing relatively well. However, like many plant-based proteins, it can be described as \"wat korrelig\" (a bit grainy) or having a noticeable \"aardse\" (earthy) flavour, especially for those new to vegan protein. It's often seen as a functional choice where taste is secondary to nutritional benefits for some users.\"\n",
      "---\n",
      "\n",
      "Your task is to synthesize these lists into a single, master \"Top 5 Vegan Proteins in the Netherlands\" report. You must critically evaluate the provided information, resolve any conflicts, and create a final ranking based on a holistic view.\n",
      "\n",
      "**Your synthesis and ranking logic must follow these rules:**\n",
      "1.  **Taste is a priority:** Products with consistently poor taste reviews (e.g., described as 'bad', 'undrinkable', 'cardboard') must be ranked lower or disqualified, even if their nutritional profile is excellent. Highlight products praised for their good taste.\n",
      "2.  **Low sugar scores higher:** Products with fewer or no artificial sweeteners are superior. A product sweetened only with stevia is better than one with sucralose and acesulfame-K. Unsweetened products should be noted as a top choice for health-conscious consumers.\n",
      "3.  **Evidence over claims:** Base your ranking on the evidence provided by the assistants (ingredient lists, review summaries). Note any consensus between the assistants, as this indicates a stronger recommendation.\n",
      "\n",
      "**Required Report Structure:**\n",
      "1.  **Title:** \"The Definitive Guide: Top 5 Vegan Proteins in the Netherlands\".\n",
      "2.  **Introduction:** Briefly explain the methodology, mentioning that the ranking is based on protein quality, low sugar, and real-world taste reviews.\n",
      "3.  **The Top 5 Ranking:** Present the final, synthesized list from 1 to 5. For each product:\n",
      "    - **Rank, Brand, and Product Name.**\n",
      "    - **Synthesized Verdict:** A summary paragraph explaining its final rank. This must include:\n",
      "        - **Protein Quality:** A note on its ingredients and amino acid profile.\n",
      "        - **Sweetener Profile:** A comment on its sweetener content and why that's good or bad.\n",
      "        - **Taste Consensus:** The final verdict on its taste based on the review analysis. (e.g., \"While nutritionally sound, it ranks lower due to consistent complaints about its chalky taste, as noted by Assistants 1 and 3.\")\n",
      "4.  **Honorable Mentions / Products to Avoid:** Briefly list any products that appeared in the lists but didn't make the final cut, and state why (e.g., \"Product X was disqualified due to multiple artificial sweeteners and poor taste reviews.\").\n",
      "\n"
     ]
    }
   ],
   "source": [
    "print(formatter)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 27,
   "metadata": {},
   "outputs": [],
   "source": [
    "formatter_messages = [{\"role\": \"user\", \"content\": formatter}]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 28,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/markdown": [
       "## The Definitive Guide: Top 5 Vegan Proteins in the Netherlands\n",
       "\n",
       "As a discerning Health and Nutrition expert, I've meticulously evaluated the top vegan protein powders available in the Netherlands. This definitive guide re-ranks products based on a stringent methodology prioritizing **superior taste**, **minimal or no artificial sweeteners**, and **uncompromised protein quality** backed by transparent ingredient and amino acid profiles. Every recommendation herein is based on thorough analysis of reported ingredients, consumer taste reviews, and nutritional transparency.\n",
       "\n",
       "---\n",
       "\n",
       "### The Top 5 Ranking:\n",
       "\n",
       "**1. Rank: 1**\n",
       "*   **Brand Name & Product Name:** KPNI Physiq Nutrition Vegan Protein\n",
       "*   **Synthesized Verdict:** KPNI Physiq Nutrition secures the top spot as the benchmark for vegan protein. Its commitment to 100% pure Pea Protein Isolate, coupled with a highly detailed and transparent amino acid profile, ensures exceptional protein quality without any protein spiking. Crucially, its sweetener profile is exemplary, relying solely on Steviol Glycosides (Stevia) and offering unsweetened options, aligning perfectly with a low-sugar, health-conscious approach. Consumer feedback overwhelmingly praises its natural, non-artificial taste, describing it as \"delicious\" and \"not too sweet\" with an absence of chemical aftertaste and excellent mixability. This product consistently stands out for delivering on both taste and nutritional integrity.\n",
       "\n",
       "**2. Rank: 2**\n",
       "*   **Brand Name & Product Name:** Optimum Nutrition Gold Standard 100% Plant Protein\n",
       "*   **Synthesized Verdict:** Optimum Nutrition's plant-based offering earns a strong second place due to its global reputation for quality and its well-balanced blend of Pea, Brown Rice, and Sacha Inchi proteins. It provides a transparent amino acid profile, ensuring robust EAA and Leucine content. While it includes Sucralose alongside Steviol Glycosides, its exceptional taste performance largely offsets this minor drawback for many consumers. Reviews consistently highlight its smooth texture and find it \"tastier than many other vegan proteins,\" with well-balanced, non-earthy flavours that dissolve without clumps. It's a highly enjoyable and effective option.\n",
       "\n",
       "**3. Rank: 3**\n",
       "*   **Brand Name & Product Name:** Body & Fit Vegan Perfection Protein\n",
       "*   **Synthesized Verdict:** Body & Fit's own-brand vegan protein offers a compelling blend of quality and value. It features a clean formulation of Pea Protein Isolate and Brown Rice Protein Concentrate, providing a comprehensive amino acid profile. Like Optimum Nutrition, it utilizes both Sucralose and Steviol Glycosides as sweeteners. The taste consensus is generally positive, with many describing it as \"delicious\" and appreciating its good mixability. While some reviews mention a \"sandy\" or \"chalky\" texture, these comments are less frequent than with other brands, indicating a generally palatable experience that keeps it firmly in the top tier.\n",
       "\n",
       "**4. Rank: 4**\n",
       "*   **Brand Name & Product Name:** Myprotein Vegan Protein Blend\n",
       "*   **Synthesized Verdict:** Myprotein's Vegan Protein Blend offers a popular and accessible choice with a solid protein blend of Pea, Brown Rice, and Hemp. It provides a clear amino acid profile and importantly, offers unsweetened versions for the most health-conscious consumers, though its flavoured options contain both Sucralose and Steviol Glycosides. Its ranking is primarily influenced by the *mixed* nature of its taste reviews. While specific flavours are appreciated as \"delicious\" and \"not chemical,\" common complaints about \"gritty texture\" and a distinct \"earthy aftertaste\" mean it may not be ideal for standalone consumption with water, often requiring mixing into smoothies. This compromise in direct taste experience places it lower than its peers.\n",
       "\n",
       "**5. Rank: 5**\n",
       "*   **Brand Name & Product Name:** BulkVegan Protein Powder\n",
       "*   **Synthesized Verdict:** Bulk (formerly Bulk Powders) offers a functional vegan protein primarily consisting of Pea Protein Isolate and Brown Rice Protein, with a transparent amino acid profile. Similar to Myprotein, its flavoured variants include Sucralose and Steviol Glycosides, and unsweetened options are available. Its position at the fifth rank is largely due to its varied taste reception and common texture complaints. While some flavours are praised, many reviews describe it as \"a bit grainy\" or having a noticeable \"earthy\" flavour. The explicit mention that it's often seen as a \"functional choice where taste is secondary\" directly conflicts with our ranking's high priority on taste, placing it as a good nutritional option, but one that may require a compromise on palate pleasure for some users.\n",
       "\n",
       "---\n",
       "\n",
       "### Honorable Mentions / Products to Avoid:\n",
       "\n",
       "While all five products in the provided analysis demonstrated sufficient quality to make our definitive \"Top 5\" list, it's crucial to highlight the distinguishing factors. No products were outright disqualified, but Myprotein Vegan Protein Blend and Bulk™ Vegan Protein Powder were borderline for inclusion. Their respective positions at 4 and 5 are a direct consequence of their more \"mixed\" or \"functional-first\" taste profiles, which often come with common complaints about grittiness or earthy aftertastes. For consumers prioritizing an enjoyable taste experience above all else, these might require experimentation with flavour options or mixing into smoothies, whereas KPNI, Optimum Nutrition, and Body & Fit generally offer a smoother, more palatable stand-alone shake experience."
      ],
      "text/plain": [
       "<IPython.core.display.Markdown object>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "openai = OpenAI(api_key=google_api_key, base_url=\"https://generativelanguage.googleapis.com/v1beta/openai/\")\n",
    "response = openai.chat.completions.create(\n",
    "    model=\"gemini-2.5-flash\",\n",
    "    messages=formatter_messages,\n",
    ")\n",
    "results = response.choices[0].message.content\n",
    "display(Markdown(results))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": ".venv",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.10"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}