Skip to content

Commit 92da8d7

Browse files
committed
Rebase with main
1 parent 6105b31 commit 92da8d7

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

src/ragas/metrics/collections/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
)
1515
from ragas.metrics.collections._bleu_score import BleuScore
1616
from ragas.metrics.collections._context_entity_recall import ContextEntityRecall
17+
from ragas.metrics.collections._context_relevance import ContextRelevance
1718
from ragas.metrics.collections._faithfulness import Faithfulness
1819
from ragas.metrics.collections._noise_sensitivity import NoiseSensitivity
1920
from ragas.metrics.collections._rouge_score import RougeScore

tests/e2e/metrics_migration/test_answer_accuracy_migration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ def test_modern_llm(self):
9292
try:
9393
import openai
9494

95-
from ragas.llms.base import instructor_llm_factory
95+
from ragas.llms.base import llm_factory
9696

9797
client = openai.AsyncOpenAI()
98-
return instructor_llm_factory(
99-
"openai",
98+
return llm_factory(
10099
model="gpt-4o",
100+
provider="openai",
101101
client=client,
102102
)
103103
except ImportError as e:

tests/e2e/metrics_migration/test_context_relevance_migration.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ def nvidia_modern_llm():
3030
try:
3131
import openai
3232

33-
from ragas.llms.base import instructor_llm_factory
33+
from ragas.llms.base import llm_factory
3434

3535
client = openai.AsyncOpenAI()
3636
# Set temperature=0.1 to match legacy NVIDIA calls exactly
37-
return instructor_llm_factory(
38-
"openai", model="gpt-4o", client=client, temperature=0.1
37+
return llm_factory(
38+
model="gpt-4o", provider="openai", client=client, temperature=0.1
3939
)
4040
except Exception as e:
4141
pytest.skip(str(e))
@@ -99,12 +99,12 @@ def test_modern_llm(self):
9999
try:
100100
import openai
101101

102-
from ragas.llms.base import instructor_llm_factory
102+
from ragas.llms.base import llm_factory
103103

104104
client = openai.AsyncOpenAI()
105-
return instructor_llm_factory(
106-
"openai",
105+
return llm_factory(
107106
model="gpt-4o",
107+
provider="openai",
108108
client=client,
109109
)
110110
except ImportError as e:

0 commit comments

Comments
 (0)