Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Jan 8, 2025
1 parent f14fcc2 commit 990b741
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,8 @@ describe('getStructuredToolForIndexEntry', () => {
field1: 'value1',
field2: 2,
},
inner_hits: {
'test.test': {
hits: {
hits: [
{ _source: { text: 'Inner text 1' } },
{ _source: { text: 'Inner text 2' } },
],
},
},
highlight: {
test: ['Inner text 1', 'Inner text 2'],
},
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export const getStructuredToolForIndexEntry = ({
}

return {
text: hit.highlight?.[indexEntry.field].join(' '),
text: hit.highlight?.[indexEntry.field].join('\n --- \n'),
};
});

Expand Down

0 comments on commit 990b741

Please sign in to comment.