Skip to content

Commit

Permalink
PI-2526 Separate chunks for date, type, outcome and description (#4601)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-bcl authored Jan 30, 2025
1 parent 8f1cdb4 commit a5c238b
Showing 1 changed file with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
{
"description": "Split text into chunks and generate embeddings",
"processors": [
{
"append": {
"field": "text",
"value": [
"{{{date}}}",
"{{{startTime}}}",
"{{{typeDescription}}}",
"{{{typeShortDescription}}}",
"{{{outcomeDescription}}}",
"{{{description}}}",
"{{{notes}}}"
]
}
},
{
"join": {
"field": "text",
"separator": "\n"
}
},
{
"text_chunking": {
"algorithm": {
Expand All @@ -31,10 +11,21 @@
}
},
"field_map": {
"text": "textChunks"
"notes": "textChunks"
}
}
},
{
"append": {
"field": "textChunks",
"value": [
"{{{date}}} {{{startTime}}}",
"{{{typeDescription}}} {{{typeShortDescription}}}",
"{{{outcomeDescription}}}",
"{{{description}}}"
]
}
},
{
"text_embedding": {
"model_id": "${model_id}",
Expand Down

0 comments on commit a5c238b

Please sign in to comment.