futureagi 0.6.1__tar.gz → 0.6.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {futureagi-0.6.1 → futureagi-0.6.2}/PKG-INFO +1 -1
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/datasets/dataset.py +11 -2
- {futureagi-0.6.1 → futureagi-0.6.2}/pyproject.toml +1 -1
- {futureagi-0.6.1 → futureagi-0.6.2}/LICENSE.md +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/README.md +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/api/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/api/apikeys.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/api/auth.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/api/types.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/client.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/datasets/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/datasets/types.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/kb/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/kb/client.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/kb/types.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/prompt/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/prompt/client.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/prompt/types.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/conversational_test_case.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/general.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/llm_test_case.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/mllm_test_case.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/unified_test_case.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/testcases/utils.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/__init__.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/constants.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/errors.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/executor.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/logging.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/routes.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/types.py +0 -0
- {futureagi-0.6.1 → futureagi-0.6.2}/fi/utils/utils.py +0 -0
|
@@ -19,8 +19,12 @@ from fi.datasets.types import (
|
|
|
19
19
|
HuggingfaceDatasetConfig,
|
|
20
20
|
Row,
|
|
21
21
|
)
|
|
22
|
-
|
|
23
|
-
from fi.
|
|
22
|
+
try :
|
|
23
|
+
from fi.evals.evaluator import EvalInfoResponseHandler
|
|
24
|
+
from fi.evals.templates import EvalTemplate
|
|
25
|
+
except ImportError:
|
|
26
|
+
logging.warning(f"ai-evals is not installed. Please install it to add evaluations to your dataset.")
|
|
27
|
+
|
|
24
28
|
from fi.utils.constants import (
|
|
25
29
|
DATASET_TEMP_FILE_PREFIX,
|
|
26
30
|
DATASET_TEMP_FILE_SUFFIX,
|
|
@@ -459,6 +463,11 @@ class Dataset(APIKeyAuth):
|
|
|
459
463
|
reason_column: bool = False,
|
|
460
464
|
config: Optional[Dict[str, Any]] = None,
|
|
461
465
|
) -> "Dataset":
|
|
466
|
+
try :
|
|
467
|
+
from fi.evals.evaluator import EvalInfoResponseHandler
|
|
468
|
+
from fi.evals.templates import EvalTemplate
|
|
469
|
+
except ImportError:
|
|
470
|
+
raise DatasetError("ai-evals is not installed. Please install it to add evaluations to your dataset.")
|
|
462
471
|
|
|
463
472
|
if not self.dataset_config or not self.dataset_config.id:
|
|
464
473
|
raise DatasetError("Dataset must be configured with an ID to add an evaluation.")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|