enable basic search refiner

Kaveen Kumarasinghe 1 year ago
parent e37f4024c8
commit e532e6d758

@ -31,7 +31,7 @@ from services.environment_service import EnvService
from models.openai_model import Model
__version__ = "10.2.2"
__version__ = "10.2.3"
PID_FILE = Path("bot.pid")

@ -117,7 +117,8 @@ class Search:
query_refined_text = query
# Get the links for the query
links, all_links = await self.get_links(query, search_scope=search_scope)
print("The refined search is " + query_refined_text)
links, all_links = await self.get_links(query_refined_text, search_scope=search_scope)
if all_links is None:
raise ValueError("The Google Search API returned an error.")

Loading…
Cancel
Save