@@ -23,9 +23,9 @@ class RegexpArtifact(Artifact):
2323
2424class RetrieverArtifact (Artifact ):
2525 """
26- Artifact containing details from the retrieval node.
26+ Artifact containing details from the embedding node.
2727
28- Name of the embedding model chosen after retrieval optimization.
28+ Name of the embedding model chosen after embedding optimization.
2929 """
3030
3131 embedder_name : str
@@ -48,7 +48,7 @@ class ScorerArtifact(Artifact):
4848 )
4949
5050
51- class PredictorArtifact (Artifact ):
51+ class DecisionArtifact (Artifact ):
5252 """
5353 Artifact containing outputs from the predictor node.
5454
@@ -68,9 +68,9 @@ def validate_node_name(value: str) -> str:
6868 :return: Validated node type string.
6969 :raises ValueError: If the node type is invalid.
7070 """
71- if value in [NodeType .retrieval , NodeType .scoring , NodeType .prediction , NodeType .regexp ]:
71+ if value in [NodeType .embedding , NodeType .scoring , NodeType .decision , NodeType .regexp ]:
7272 return value
73- msg = f"Unknown node_type: { value } . Expected one of ['regexp', 'retrieval ', 'scoring', 'prediction ']"
73+ msg = f"Unknown node_type: { value } . Expected one of ['regexp', 'embedding ', 'scoring', 'decision ']"
7474 raise ValueError (msg )
7575
7676
@@ -84,9 +84,9 @@ class Artifacts(BaseModel):
8484 model_config = ConfigDict (arbitrary_types_allowed = True )
8585
8686 regexp : list [RegexpArtifact ] = []
87- retrieval : list [RetrieverArtifact ] = []
87+ embedding : list [RetrieverArtifact ] = []
8888 scoring : list [ScorerArtifact ] = []
89- prediction : list [PredictorArtifact ] = []
89+ decision : list [DecisionArtifact ] = []
9090
9191 def add_artifact (self , node_type : str , artifact : Artifact ) -> None :
9292 """
@@ -120,7 +120,7 @@ def get_best_artifact(self, node_type: str, idx: int) -> Artifact:
120120class Trial (BaseModel ):
121121 """Representation of an individual optimization trial."""
122122
123- module_type : str
123+ module_name : str
124124 """Type of the module being optimized."""
125125 module_params : dict [str , Any ]
126126 """Parameters of the module for the trial."""
@@ -136,9 +136,9 @@ class Trials(BaseModel):
136136 """Container for managing optimization trials for pipeline nodes."""
137137
138138 regexp : list [Trial ] = []
139- retrieval : list [Trial ] = []
139+ embedding : list [Trial ] = []
140140 scoring : list [Trial ] = []
141- prediction : list [Trial ] = []
141+ decision : list [Trial ] = []
142142
143143 def get_trial (self , node_type : str , idx : int ) -> Trial :
144144 """
@@ -174,12 +174,12 @@ class TrialsIds(BaseModel):
174174
175175 regexp : int | None = None
176176 """Best trial index for the regexp node."""
177- retrieval : int | None = None
178- """Best trial index for the retrieval node."""
177+ embedding : int | None = None
178+ """Best trial index for the embedding node."""
179179 scoring : int | None = None
180180 """Best trial index for the scoring"""
181- prediction : int | None = None
182- """Best trial index for the prediction node."""
181+ decision : int | None = None
182+ """Best trial index for the decision node."""
183183
184184 def get_best_trial_idx (self , node_type : str ) -> int | None :
185185 """
0 commit comments