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
raiseRuntimeError(f"Failed to list available models for query rewriting: {e}") frome
358
+
359
+
chat_model=None
360
+
# Look for an LLM model (for chat completion)
361
+
formodelinmodels_response.data:
362
+
ifmodel.model_type==ModelType.llm:
363
+
chat_model=model.identifier
364
+
break
365
+
366
+
# If no suitable model found, raise an error
367
+
ifnotchat_model:
368
+
raiseValueError("No LLM model available for query rewriting")
369
+
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:
0 commit comments