Spaces:
Sleeping
Sleeping
Update app.py
Browse files150 unmodified lines151152153154154155156157158159160160161162163164161162163150 unmodified lines # wait up to 1s for snippets, then replace debug with them if enable_search: thread_search.join(timeout=float(search_timeout)) if search_results: if len(search_results) > 0: debug = "### Search results merged into prompt\n\n" + "\n".join( f"- {r}" for r in search_results ) system_prompt.strip() + "\n\nRelevant context:\n" + "\n".join(search_results) else: debug = "*No web search results found.*"
# merge fetched snippets into the system prompt if search_results: enriched = system_prompt.strip() + "\n\nRelevant context:\n" + "\n".join(search_results) else: enriched = system_prompt else: enriched = system_promptapp.py+2-6