gen_ai_hub.evaluations.models.artifact_source
index
/home/jenkins/agent/workspace/ation_generative-ai-hub-sdk_main/gen_ai_hub/evaluations/models/artifact_source.py

 
Classes
       
builtins.object
ArtifactSource

 
class ArtifactSource(builtins.object)
    ArtifactSource(file_type: Literal['csv', 'json', 'jsonl'], artifact: Union[str, ai_api_client_sdk.models.artifact.Artifact], path: Optional[str] = None)
 
Extends the artifact object with the relative path user can provide inside to be used for EvaluationConfig
Example Usage:
    >>> ArtifactSource(
            artifact={
                "id": "xyfz-rtyu-2456-ojns-yu6s",
                "name": "dataset-artifact",
                "url": "ai://default/eval_dataset"
                ...
            },
            path= "rootfolder/data.csv,
            file_type="csv"
        )
    >>> ArtifactSource(
            artifact="xyfz-rtyu-2456-ojns-yu6s",
            path="rootfolder/data.json,
            file_type="json"
        )
    )
 
  Methods defined here:
__init__(self, file_type: Literal['csv', 'json', 'jsonl'], artifact: Union[str, ai_api_client_sdk.models.artifact.Artifact], path: Optional[str] = None)
Parameters:
    artifact(Union[str,Artifact]): Can just provide the artifact id as a string or the Artifact object of the AI_API_Client sdk.
    path(Optional[str]): Relative path within the artifact path provided and should point to a single file.
    file_type(Literal["csv", "json", "jsonl"]): One of the supported file_types

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        Literal = typing.Literal
Optional = typing.Optional
Union = typing.Union