Coverage for src/qdrant_loader_mcp_server/search/hybrid/components/combining.py: 100%
9 statements
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-08 06:06 +0000
« prev ^ index » next coverage.py v7.10.6, created at 2025-09-08 06:06 +0000
1from __future__ import annotations
3from collections.abc import Iterable
4from typing import Any
7class HybridCombiner:
8 """Simple combiner that preserves input order.
10 This is intentionally minimal to avoid changing behavior while creating
11 seams for future extractions from the engine.
12 """
14 def combine(
15 self, vector_results: Iterable[Any], keyword_results: Iterable[Any]
16 ) -> list[Any]:
17 combined: list[Any] = []
18 combined.extend(list(vector_results))
19 combined.extend(list(keyword_results))
20 return combined