rairo commited on
Commit
77ab61b
·
verified ·
1 Parent(s): 4b2023d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -87,7 +87,7 @@ def chat():
87
 
88
  # Also dynamically lookup “what to buy” where applicable
89
  # e.g. for “I want to bake a cake” → search “bake a cake ingredients”
90
- search_query = user_message + " ingredients"
91
  exa_results = exa.search_and_contents(
92
  search_query,
93
  type="auto",
@@ -96,7 +96,7 @@ def chat():
96
  # take top 3 links
97
  links = [r.url for r in exa_results.results[:3]]
98
  suggestion_text = (
99
- "If you need to pick up ingredients, here are some helpful links:\n" +
100
  "\n".join(f"- {url}" for url in links)
101
  )
102
  response_parts.append(suggestion_text)
 
87
 
88
  # Also dynamically lookup “what to buy” where applicable
89
  # e.g. for “I want to bake a cake” → search “bake a cake ingredients”
90
+ search_query = user_message + " shop links for supplies"
91
  exa_results = exa.search_and_contents(
92
  search_query,
93
  type="auto",
 
96
  # take top 3 links
97
  links = [r.url for r in exa_results.results[:3]]
98
  suggestion_text = (
99
+ "If you need to pick up supplies, here are some helpful links:\n" +
100
  "\n".join(f"- {url}" for url in links)
101
  )
102
  response_parts.append(suggestion_text)