AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Run Open-Source Models with Web Search on HuggingChat

Natalia Amaral · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

Open-source models used to feel trapped behind a static training cutoff. If a library shipped a major patch last week or an API changed its authentication header this morning, a raw Llama or Mistral checkpoint would confidently invent deprecated syntax. HuggingChat changes that dynamic completely. Built on Hugging Face’s open-source chat-ui, it provides a production-grade playground where developers can run tier-one open-weight models with real-time web retrieval baked directly into the conversation.

At 365Finds, we look at HuggingChat not merely as a free consumer chat clone, but as a rapid prototyping lab. You do not need to wire up LangChain, subscribe to Tavily, or deploy an orchestration layer just to test how an open model synthesizes live search results. You can flip a switch, test instruction prompts, and verify search-grounded code in seconds.

Here is exactly how to configure HuggingChat for web search, pick the right models, and lock down custom system prompts.

Step 1: Pick an Open-Source Model That Handles Search Context

In the top model banner or the Model Settings menu, HuggingChat exposes a rotating roster of top-tier open-source foundation weights: Llama, Qwen, Mistral, Command R+, and DeepSeek variants.

Switching models is straightforward:

  1. Click the current model name displayed at the top of the interface.
  2. Select your target architecture from the modal.
  3. Review the model card details, including context length and author notes.

Here is the honest truth from our testing at 365Finds: do not expect every open model to handle web-augmented generation equally. Smaller 7B and 8B parameter weights tend to choke on retrieved web snippets. They either copy-paste raw search fragments verbatim or lose track of their core instructions once noisy HTML chunks flood the prompt window.

If you are writing code or querying technical documentation, 365Finds strongly recommends choosing models optimized for tool calling and context integration, such as Cohere Command R+ or 70B+ parameter checkpoints like Llama 3.3 70B and Qwen 2.5 72B. They grasp nuance, ignore web fluff, and parse real-world technical references far more reliably.

Step 2: Toggle Web Search on the Fly

Once your model is selected, triggering web search in an ad-hoc session requires just one click:

  1. Locate the Search web button (the globe icon) sitting right beside the prompt input box at the bottom.
  2. Click it to toggle search On. When active, the icon highlights.
  3. Type your query—specifically targeting recent information (for example: "What changed in Next.js 15 routing conventions?" or "How do I authenticate with the latest Stripe SDK?").
  4. Watch the inference stream: HuggingChat first translates your prompt into search queries, queries search engines (like Serper or SearXNG backends), retrieves top links, and feeds relevant text snippets into the model's prompt context.

The search sources appear as expandable citation cards above or below the generation. You can inspect the exact pages the model crawled to verify that it did not pull stale forum threads.

Step 3: Create a Custom Assistant for Persistent System Prompts

Toggling web search for a one-off query works fine, but it has a glaring friction point for developers: every new chat resets your environment. If you want the model to behave like a senior systems architect, output strict TypeScript types, and search only authoritative technical documentation, manual prompting gets exhausting.

This is where HuggingChat Assistants come in. They allow you to bundle a base model, web search capabilities, and a custom system prompt into a permanent, reusable tool.

Here is how to set one up:

  1. Open the left sidebar and click Assistants (or navigate to https://huggingface.co/chat/assistants).
  2. Click Create new assistant.
  3. Fill in basic metadata: Name (e.g., DevDocs Live Auditor), Avatar, and Description.
  4. Select the Base Model: Match the model to the task. For code and documentation, stick to high-parameter instruction-tuned models.
  5. Write the User Instructions (System Prompt): Define the operational boundaries. At 365Finds, we enforce strict grounding rules in our preprompts:
    • Direct the assistant to rely exclusively on retrieved web results for post-cutoff facts.
    • Instruct it to cite URLs explicitly inline.
    • Forbid conversational filler and demand raw code blocks with commented trade-offs.
  6. Enable Web Search: Under the tools configuration, toggle Web Search to active. You can also restrict search domains if you want the assistant to index only specific developer hubs or documentation domains.
  7. Click Create.

Your custom assistant now lives in your sidebar with dedicated URLs you can bookmark or share across your engineering team.

Developer Self-Hosting: The chat-ui Path

For engineering teams that cannot send proprietary queries through the public Hugging Face interface, Hugging Face open-sourced the underlying engine: huggingface/chat-ui.

Running your own private HuggingChat instance gives you total infrastructure ownership:

365Finds Recommendation

HuggingChat is one of the most practical, no-nonsense environments available today for testing open-source AI with live web access. It strips away the marketing bloat found in proprietary wrappers and lets you see how open weights actually perform against real-time information.

Our recommendation is unambiguous: do not rely on ad-hoc chat turns. Build dedicated HuggingChat Assistants tailored to specific stacks, pair them with heavy instruction-tuned weights (Command R+ or 70B-class models), and enforce strict grounding in your system prompt. For fast documentation checks and live code verification, it delivers exceptional utility without costing a single dollar.

References