Skip to content

Commit

Permalink
PI-2526 Handle null outcome and description (#4606)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Jan 30, 2025
1 parent 9e2e63b commit 4606fdf
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,24 @@
"field": "textChunks",
"value": [
"{{{date}}} {{{startTime}}}",
"{{{typeDescription}}} {{{typeShortDescription}}}",
"{{{outcomeDescription}}}",
"{{{description}}}"
"{{{typeDescription}}} {{{typeShortDescription}}}"
]
}
},
{
"append": {
"field": "textChunks",
"value": ["{{{description}}}"],
"if": "ctx.description != null && ctx.description != \"\""
}
},
{
"append": {
"field": "textChunks",
"value": ["{{{outcomeDescription}}}"],
"if": "ctx.outcomeDescription != null && ctx.outcomeDescription != \"\""
}
},
{
"text_embedding": {
"model_id": "${model_id}",
Expand Down

0 comments on commit 4606fdf

Please sign in to comment.