Skip to content

Commit 411410e

Browse files
authored
fix: imports for generation examples (#60)
1 parent cd09de2 commit 411410e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/generation_low_level_metrics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"metadata": {},
88
"outputs": [],
99
"source": [
10-
"from langchain_openai import ChatOpenAI\n",
10+
"from langchain_openai import AzureChatOpenAI\n",
1111
"from aidial_rag_eval.metrics import calculate_inference, calculate_batch_inference\n",
1212
"\n",
1313
"llm = AzureChatOpenAI(model=\"gemini-2.5-flash-lite\")"
@@ -91,7 +91,7 @@
9191
"name": "python",
9292
"nbconvert_exporter": "python",
9393
"pygments_lexer": "ipython3",
94-
"version": "3.9.24"
94+
"version": "3.11.14"
9595
}
9696
},
9797
"nbformat": 4,

examples/generation_metrics.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"import json\n",
1111
"import pandas as pd\n",
1212
"\n",
13-
"from langchain_openai import ChatOpenAI\n",
13+
"from langchain_openai import AzureChatOpenAI\n",
1414
"from aidial_rag_eval import evaluate\n",
1515
"from aidial_rag_eval.metric_binds import CONTEXT_TO_ANSWER_INFERENCE,\\\n",
1616
" ANSWER_TO_GROUND_TRUTH_INFERENCE, GROUND_TRUTH_TO_ANSWER_INFERENCE, ANSWER_REFUSAL, GROUND_TRUTH_REFUSAL\n",
@@ -796,7 +796,7 @@
796796
"name": "python",
797797
"nbconvert_exporter": "python",
798798
"pygments_lexer": "ipython3",
799-
"version": "3.9.24"
799+
"version": "3.11.14"
800800
}
801801
},
802802
"nbformat": 4,

0 commit comments

Comments
 (0)