Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 + "
|
| 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
|
| 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)
|