diff --git a/mcp_codebase.py b/mcp_codebase.py index 8c07329..61d64e1 100644 --- a/mcp_codebase.py +++ b/mcp_codebase.py @@ -1492,7 +1492,7 @@ def hybrid_search(query: str, k: int = 30) -> List[Tuple[str, Dict[str, Any], fl # Sort by fused score descending sorted_items = sorted(fused.items(), key=lambda x: x[1], reverse=True) - # Build accurate mapping from document text to its true metadata + # Build accurate mapping from document text to its true metadata text_to_meta = {text: meta for text, meta in zip(bm25_corpus, chunks_metadata)} results = []