chore(lint): reduce warning debt across core adapters and model clients
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
|
||||
import { describe, it, expect, vi } from 'vitest';
|
||||
import { HybridSearch } from './hybrid-search.js';
|
||||
import type { HybridSearchResult } from './hybrid-search.js';
|
||||
import type { MemoryStore, SearchResult } from './store.js';
|
||||
import type { VectorStore, VectorSearchResult } from './vector-store.js';
|
||||
import type { EmbeddingProvider } from './embeddings.js';
|
||||
@@ -153,7 +152,10 @@ describe('HybridSearch', () => {
|
||||
const keywordResult = results.find((r) => r.source === 'keyword');
|
||||
expect(vectorResult).toBeDefined();
|
||||
expect(keywordResult).toBeDefined();
|
||||
expect(vectorResult!.score).toBeGreaterThan(keywordResult!.score);
|
||||
if (!vectorResult || !keywordResult) {
|
||||
throw new Error('Expected both vector and keyword results');
|
||||
}
|
||||
expect(vectorResult.score).toBeGreaterThan(keywordResult.score);
|
||||
});
|
||||
|
||||
it('falls back to keyword search when vector search fails', async () => {
|
||||
|
||||
Reference in New Issue
Block a user