(score: number, filePath: string)
| 3 | import type { SearchResult } from '../src/types/index.js'; |
| 4 | |
| 5 | function makeResult(score: number, filePath: string): SearchResult { |
| 6 | return { |
| 7 | summary: `Result from ${filePath}`, |
| 8 | snippet: 'export class Foo {}', |
| 9 | filePath, |
| 10 | startLine: 1, |
| 11 | endLine: 10, |
| 12 | score, |
| 13 | language: 'typescript', |
| 14 | metadata: {} |
| 15 | } as SearchResult; |
| 16 | } |
| 17 | |
| 18 | describe('Reranker ambiguity detection', () => { |
| 19 | it('detects ambiguous results when top scores are clustered', () => { |