fix: make cleanlab evaluator outputs not be grouped (#9149)
* Added color to number * Group cleanlab outputs * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
115b0f535f
commit
e58879f10b
2 changed files with 17 additions and 3 deletions
|
|
@ -113,9 +113,21 @@ class CleanlabEvaluator(Component):
|
|||
]
|
||||
|
||||
outputs = [
|
||||
Output(display_name="Response", name="response_passthrough", method="pass_response", types=["Message"]),
|
||||
Output(display_name="Trust Score", name="score", method="get_score", types=["number"]),
|
||||
Output(display_name="Explanation", name="explanation", method="get_explanation", types=["Message"]),
|
||||
Output(
|
||||
display_name="Response",
|
||||
name="response_passthrough",
|
||||
method="pass_response",
|
||||
types=["Message"],
|
||||
group_outputs=True,
|
||||
),
|
||||
Output(display_name="Trust Score", name="score", method="get_score", types=["number"], group_outputs=True),
|
||||
Output(
|
||||
display_name="Explanation",
|
||||
name="explanation",
|
||||
method="get_explanation",
|
||||
types=["Message"],
|
||||
group_outputs=True,
|
||||
),
|
||||
]
|
||||
|
||||
def _evaluate_once(self):
|
||||
|
|
|
|||
|
|
@ -122,6 +122,7 @@ export const nodeColors: { [char: string]: string } = {
|
|||
Document: "#65a30d",
|
||||
Data: "#dc2626",
|
||||
Message: "#4f46e5",
|
||||
number: "#7E22CF",
|
||||
Prompt: "#7c3aed",
|
||||
Embeddings: "#10b981",
|
||||
BaseLanguageModel: "#c026d3",
|
||||
|
|
@ -166,6 +167,7 @@ export const nodeColorsName: { [char: string]: string } = {
|
|||
output_parsers: "yellow",
|
||||
retrievers: "yellow",
|
||||
str: "indigo",
|
||||
number: "purple",
|
||||
Text: "indigo",
|
||||
unknown: "gray",
|
||||
Document: "lime",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue