Skip to content

Commit 098e5d7

Browse files
committed
test(search): assert the batching guidance
1 parent 4c31d98 commit 098e5d7

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/sim/lib/sim-search/live/providers.test.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,4 +808,12 @@ describe('native query guidance', () => {
808808
expect(lines.slice(1).map((line) => line.split(':')[0])).toEqual(['slack', 'github'])
809809
expect(liveSearchGuidance([]).split('\n')).toHaveLength(1)
810810
})
811+
812+
it('asks for one cross-provider search per question and independent calls in one step', () => {
813+
const guidance = liveSearchGuidance([])
814+
expect(guidance).toContain('One search across several providers returns one ranked list')
815+
expect(guidance).toContain(
816+
'issue independent searches and reads of different documents together in the same step'
817+
)
818+
})
811819
})

0 commit comments

Comments
 (0)