Skip to content

Commit

Permalink
Strip tags if fall back to joined passages (#127)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Oct 31, 2023
1 parent e8dfaf8 commit 5bb4168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/data-extraction/data-extraction.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class DataExtractionImpl extends DataExtractionCsv<WatsonBackends, Contex
.catch(err => {
console.error('Error getting relevant passages: ', {err})

return passages.join('\n')
return striptags(passages.join('\n'))
})

console.log('Found relevant passage: ', {relevantPassage})
Expand Down

0 comments on commit 5bb4168

Please sign in to comment.