You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fallback: use first available LLM model if no preferred provider found
386
+
ifnotchat_modelandllm_models:
387
+
chat_model=llm_models[0].identifier
388
+
366
389
# If no suitable model found, raise an error
367
390
ifnotchat_model:
368
391
raiseValueError("No LLM model available for query rewriting")
369
392
370
-
rewrite_prompt=f"""Rewrite this search query to improve vector search results by expanding it with relevant synonyms and related terms while maintaining the original intent:
393
+
rewrite_prompt=f"""Expand this query with relevant synonyms and related terms. Return only the improved query, no explanations:
0 commit comments