Skip to content

Commit bb0d0f8

Browse files
committed
Tooling seems to work over all models.
1 parent b53daa6 commit bb0d0f8

2 files changed

Lines changed: 331 additions & 2 deletions

File tree

llms_wrapper/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import importlib.metadata
2-
__version__ = "0.1.34"
2+
__version__ = "0.2.0"
33

notebooks/test-tooling.ipynb

Lines changed: 330 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,11 +693,340 @@
693693
"answer_query(QUERIES[8], llm=\"openai/gpt-4o\", debug=False, show=True)"
694694
]
695695
},
696+
{
697+
"cell_type": "markdown",
698+
"id": "2113d314",
699+
"metadata": {},
700+
"source": [
701+
"## Test other LLMS"
702+
]
703+
},
696704
{
697705
"cell_type": "code",
698-
"execution_count": null,
706+
"execution_count": 50,
699707
"id": "e0b36066",
700708
"metadata": {},
709+
"outputs": [
710+
{
711+
"name": "stdout",
712+
"output_type": "stream",
713+
"text": [
714+
"LLM: openai/gpt-4o\n"
715+
]
716+
},
717+
{
718+
"data": {
719+
"text/markdown": [
720+
"Query: What is the name of the department John Doe works in?\n",
721+
"\n",
722+
"Answer: John Doe works in the HR department.\n",
723+
"\n",
724+
"Cost: 0.005665"
725+
],
726+
"text/plain": [
727+
"<IPython.core.display.Markdown object>"
728+
]
729+
},
730+
"metadata": {},
731+
"output_type": "display_data"
732+
},
733+
{
734+
"name": "stdout",
735+
"output_type": "stream",
736+
"text": [
737+
"--------------------------------------------------------------------------------\n",
738+
"\n",
739+
"LLM: openai/gpt-4o-mini\n"
740+
]
741+
},
742+
{
743+
"data": {
744+
"text/markdown": [
745+
"Query: What is the name of the department John Doe works in?\n",
746+
"\n",
747+
"Answer: John Doe works in the HR department.\n",
748+
"\n",
749+
"Cost: 0.005665"
750+
],
751+
"text/plain": [
752+
"<IPython.core.display.Markdown object>"
753+
]
754+
},
755+
"metadata": {},
756+
"output_type": "display_data"
757+
},
758+
{
759+
"name": "stdout",
760+
"output_type": "stream",
761+
"text": [
762+
"--------------------------------------------------------------------------------\n",
763+
"\n",
764+
"LLM: gemini/gemini-2.0-flash-exp\n"
765+
]
766+
},
767+
{
768+
"data": {
769+
"text/markdown": [
770+
"Query: What is the name of the department John Doe works in?\n",
771+
"\n",
772+
"Answer: John Doe works in the HR department.\n",
773+
"\n",
774+
"Cost: 0.005665"
775+
],
776+
"text/plain": [
777+
"<IPython.core.display.Markdown object>"
778+
]
779+
},
780+
"metadata": {},
781+
"output_type": "display_data"
782+
},
783+
{
784+
"name": "stdout",
785+
"output_type": "stream",
786+
"text": [
787+
"--------------------------------------------------------------------------------\n",
788+
"\n",
789+
"LLM: gemini/gemini-1.5-flash\n"
790+
]
791+
},
792+
{
793+
"data": {
794+
"text/markdown": [
795+
"Query: What is the name of the department John Doe works in?\n",
796+
"\n",
797+
"Answer: John Doe works in the HR department.\n",
798+
"\n",
799+
"Cost: 0.005665"
800+
],
801+
"text/plain": [
802+
"<IPython.core.display.Markdown object>"
803+
]
804+
},
805+
"metadata": {},
806+
"output_type": "display_data"
807+
},
808+
{
809+
"name": "stdout",
810+
"output_type": "stream",
811+
"text": [
812+
"--------------------------------------------------------------------------------\n",
813+
"\n",
814+
"LLM: gemini/gemini-1.5-pro\n"
815+
]
816+
},
817+
{
818+
"data": {
819+
"text/markdown": [
820+
"Query: What is the name of the department John Doe works in?\n",
821+
"\n",
822+
"Answer: John Doe works in the HR department.\n",
823+
"\n",
824+
"Cost: 0.005665"
825+
],
826+
"text/plain": [
827+
"<IPython.core.display.Markdown object>"
828+
]
829+
},
830+
"metadata": {},
831+
"output_type": "display_data"
832+
},
833+
{
834+
"name": "stdout",
835+
"output_type": "stream",
836+
"text": [
837+
"--------------------------------------------------------------------------------\n",
838+
"\n",
839+
"LLM: anthropic/claude-3-5-sonnet-20240620\n"
840+
]
841+
},
842+
{
843+
"data": {
844+
"text/markdown": [
845+
"Query: What is the name of the department John Doe works in?\n",
846+
"\n",
847+
"Answer: John Doe works in the HR department.\n",
848+
"\n",
849+
"Cost: 0.005665"
850+
],
851+
"text/plain": [
852+
"<IPython.core.display.Markdown object>"
853+
]
854+
},
855+
"metadata": {},
856+
"output_type": "display_data"
857+
},
858+
{
859+
"name": "stdout",
860+
"output_type": "stream",
861+
"text": [
862+
"--------------------------------------------------------------------------------\n",
863+
"\n",
864+
"LLM: anthropic/claude-3-opus-20240229\n"
865+
]
866+
},
867+
{
868+
"data": {
869+
"text/markdown": [
870+
"Query: What is the name of the department John Doe works in?\n",
871+
"\n",
872+
"Answer: John Doe works in the HR department.\n",
873+
"\n",
874+
"Cost: 0.005665"
875+
],
876+
"text/plain": [
877+
"<IPython.core.display.Markdown object>"
878+
]
879+
},
880+
"metadata": {},
881+
"output_type": "display_data"
882+
},
883+
{
884+
"name": "stdout",
885+
"output_type": "stream",
886+
"text": [
887+
"--------------------------------------------------------------------------------\n",
888+
"\n",
889+
"LLM: mistral/mistral-large-latest\n"
890+
]
891+
},
892+
{
893+
"data": {
894+
"text/markdown": [
895+
"Query: What is the name of the department John Doe works in?\n",
896+
"\n",
897+
"Answer: John Doe works in the HR department.\n",
898+
"\n",
899+
"Cost: 0.005665"
900+
],
901+
"text/plain": [
902+
"<IPython.core.display.Markdown object>"
903+
]
904+
},
905+
"metadata": {},
906+
"output_type": "display_data"
907+
},
908+
{
909+
"name": "stdout",
910+
"output_type": "stream",
911+
"text": [
912+
"--------------------------------------------------------------------------------\n",
913+
"\n",
914+
"LLM: xai/grok-beta\n"
915+
]
916+
},
917+
{
918+
"data": {
919+
"text/markdown": [
920+
"Query: What is the name of the department John Doe works in?\n",
921+
"\n",
922+
"Answer: John Doe works in the HR department.\n",
923+
"\n",
924+
"Cost: 0.005665"
925+
],
926+
"text/plain": [
927+
"<IPython.core.display.Markdown object>"
928+
]
929+
},
930+
"metadata": {},
931+
"output_type": "display_data"
932+
},
933+
{
934+
"name": "stdout",
935+
"output_type": "stream",
936+
"text": [
937+
"--------------------------------------------------------------------------------\n",
938+
"\n",
939+
"LLM: groq/llama3-70b-8192\n"
940+
]
941+
},
942+
{
943+
"data": {
944+
"text/markdown": [
945+
"Query: What is the name of the department John Doe works in?\n",
946+
"\n",
947+
"Answer: John Doe works in the HR department.\n",
948+
"\n",
949+
"Cost: 0.005665"
950+
],
951+
"text/plain": [
952+
"<IPython.core.display.Markdown object>"
953+
]
954+
},
955+
"metadata": {},
956+
"output_type": "display_data"
957+
},
958+
{
959+
"name": "stdout",
960+
"output_type": "stream",
961+
"text": [
962+
"--------------------------------------------------------------------------------\n",
963+
"\n",
964+
"LLM: groq/llama-3.3-70b-versatile\n"
965+
]
966+
},
967+
{
968+
"data": {
969+
"text/markdown": [
970+
"Query: What is the name of the department John Doe works in?\n",
971+
"\n",
972+
"Answer: John Doe works in the HR department.\n",
973+
"\n",
974+
"Cost: 0.005665"
975+
],
976+
"text/plain": [
977+
"<IPython.core.display.Markdown object>"
978+
]
979+
},
980+
"metadata": {},
981+
"output_type": "display_data"
982+
},
983+
{
984+
"name": "stdout",
985+
"output_type": "stream",
986+
"text": [
987+
"--------------------------------------------------------------------------------\n",
988+
"\n",
989+
"LLM: deepseek/deepseek-chat\n"
990+
]
991+
},
992+
{
993+
"data": {
994+
"text/markdown": [
995+
"Query: What is the name of the department John Doe works in?\n",
996+
"\n",
997+
"Answer: John Doe works in the HR department.\n",
998+
"\n",
999+
"Cost: 0.005665"
1000+
],
1001+
"text/plain": [
1002+
"<IPython.core.display.Markdown object>"
1003+
]
1004+
},
1005+
"metadata": {},
1006+
"output_type": "display_data"
1007+
},
1008+
{
1009+
"name": "stdout",
1010+
"output_type": "stream",
1011+
"text": [
1012+
"--------------------------------------------------------------------------------\n",
1013+
"\n"
1014+
]
1015+
}
1016+
],
1017+
"source": [
1018+
"for llmalias in llms.list_aliases():\n",
1019+
" print(f\"LLM: {llmalias}\")\n",
1020+
" answer_query(QUERIES[0], llm=\"openai/gpt-4o\", debug=False, show=True)\n",
1021+
" print(\"-\" * 80)\n",
1022+
" print()"
1023+
]
1024+
},
1025+
{
1026+
"cell_type": "code",
1027+
"execution_count": null,
1028+
"id": "aae0d86a",
1029+
"metadata": {},
7011030
"outputs": [],
7021031
"source": []
7031032
}

0 commit comments

Comments
 (0)