Skip to content

Commit 2543a20

Browse files
committed
bug fix
1 parent dff19ba commit 2543a20

File tree

2 files changed

+1
-4
lines changed

2 files changed

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

agents/query_analyzer.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
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-
2017
# --- Download NLTK data if not present (optional, can be done offline) ---
2118
try:
2219
nltk.data.find('corpora/stopwords')
@@ -249,7 +246,7 @@ def _simple_expand_query(self, query_analysis: dict, max_expansions: int = 2) ->
249246
return unique_expansions[:max_expansions]
250247

251248

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

0 commit comments

Comments
 (0)