Skip to content

Commit dc8fa4e

Browse files
committed
Revert "bug fix"
This reverts commit 2543a20.
1 parent 2543a20 commit dc8fa4e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
182 Bytes
Binary file not shown.

agents/query_analyzer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
logger = logging.getLogger(__name__)
1616

17+
DEFAULT_HYBRID_INITIAL_TOP_K = Config.RETRIEVER_INITIAL_K
18+
DEFAULT_HYBRID_FINAL_TOP_K = Config.RETRIEVER_FINAL_K
19+
1720
# --- Download NLTK data if not present (optional, can be done offline) ---
1821
try:
1922
nltk.data.find('corpora/stopwords')
@@ -246,7 +249,7 @@ def _simple_expand_query(self, query_analysis: dict, max_expansions: int = 2) ->
246249
return unique_expansions[:max_expansions]
247250

248251

249-
def run(self, query: str, query_analysis: dict, initial_top_k: int = 25, final_top_k: int = 5):
252+
def run(self, query: str, query_analysis: dict, initial_top_k: int = DEFAULT_HYBRID_INITIAL_TOP_K, final_top_k: int = 5):
250253
"""Retrieves chunks using semantic search (with expansion), filters and re-ranks them."""
251254
run_start_time = time.time()
252255
logger.info(f"🔎 Running hybrid retrieval for: '{query}' (Initial K={initial_top_k}, Final K={final_top_k})")

0 commit comments

Comments
 (0)