Skip to content

Commit

Permalink
new release
Browse files Browse the repository at this point in the history
  • Loading branch information
penguine-ip committed Jan 31, 2025
1 parent bb8a1db commit bbc0948
Show file tree
Hide file tree
Showing 12 changed files with 185 additions and 247 deletions.
3 changes: 1 addition & 2 deletions deepeval/integrations/hugging_face/tests/test_callbacks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Test for callbacks
"""
"""Test for callbacks"""

from transformers import (
Seq2SeqTrainer,
Expand Down
3 changes: 1 addition & 2 deletions deepeval/key_handler.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""File for handling API key
"""
"""File for handling API key"""

import json
from enum import Enum
Expand Down
3 changes: 1 addition & 2 deletions deepeval/metrics/ragas.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""An implementation of the Ragas metric
"""
"""An implementation of the Ragas metric"""

from typing import Optional, Union, Any, List
from langchain_core.language_models import BaseChatModel
Expand Down
2 changes: 1 addition & 1 deletion deepeval/metrics/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
def copy_metrics(
metrics: List[
Union[BaseMetric, BaseConversationalMetric, BaseMultimodalMetric]
]
],
) -> List[Union[BaseMetric, BaseMultimodalMetric, BaseConversationalMetric]]:
copied_metrics = []
for metric in metrics:
Expand Down
2 changes: 1 addition & 1 deletion deepeval/monitor/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def process_additional_data(
additional_data: Optional[
Dict[str, Union[str, Link, List[Link], Dict]]
] = None
] = None,
):
custom_properties = None
if additional_data:
Expand Down
2 changes: 1 addition & 1 deletion deepeval/test_case/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
def check_valid_test_cases_type(
test_cases: Union[
List[Union[LLMTestCase, MLLMTestCase]], List[ConversationalTestCase]
]
],
):
llm_test_case_count = 0
conversational_test_case_count = 0
Expand Down
404 changes: 174 additions & 230 deletions poetry.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"pytest-xdist",
"portalocker",
"langchain",
"llama-index",
"langchain-core",
"langchain_openai",
"langchain-community",
Expand Down
3 changes: 1 addition & 2 deletions tests/test_answer_relevancy.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Tests for answer relevancy
"""
"""Tests for answer relevancy"""

import pytest
from deepeval.metrics.answer_relevancy.schema import Verdicts
Expand Down
3 changes: 1 addition & 2 deletions tests/test_benchmarks.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Tests for various benchmark functions.
"""
"""Tests for various benchmark functions."""

# import pytest
# from deepeval.benchmarks import GSM8K
Expand Down
3 changes: 1 addition & 2 deletions tests/test_custom_metric.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Test for custom metrics in Python
"""
"""Test for custom metrics in Python"""

from deepeval.test_case import LLMTestCase
from deepeval.metrics import BaseMetric
Expand Down
3 changes: 1 addition & 2 deletions tests/test_scoring.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Tests for metrics calculator
"""
"""Tests for metrics calculator"""

import unittest
from deepeval.scorer import Scorer
Expand Down

0 comments on commit bbc0948

Please sign in to comment.