AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How to Switch Models and Build Custom Web Search Assistants in HuggingChat

劉書磊 · 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

HuggingChat is the closest thing the open-source AI community has to an uncompromised public workbench. While commercial giants wrap proprietary models behind subscriptions and aggressive content fences, Hugging Face built HuggingChat on top of its open-source chat-ui engine, giving anyone immediate, free access to top-tier open weights. At 365Finds, we rely on it constantly to evaluate open releases against closed commercial alternatives.

Yet many users stick to whatever default model loads on the screen and never touch the configuration panel. That misses the entire point of the platform. You can swap foundation models in seconds, toggle real-time internet retrieval, and build dedicated assistants locked down to specific search domains. Here is exactly how to navigate model switching and construct specialized web-grounded assistants on HuggingChat.


1. Switching Open-Source Foundation Models

HuggingChat hosts a curated rotation of prominent open-weights models—typically spanning the Meta Llama family, Mistral and Mixtral checkpoints, Alibaba’s Qwen series, and Cohere’s Command R+. Because these architectures handle reasoning, code generation, and multi-turn instructions differently, knowing how to toggle between them is fundamental.

Step-by-Step Model Switching

  1. Locate the Model Selector: Open HuggingChat (https://huggingface.co/chat/). At the top center or upper-left corner of the chat window, click the model title badge (for example, showing the currently active model name).
  2. Browse the Model Drawer: A modal pops up displaying the active roster of supported models, alongside token context limits and a brief summary of architecture strengths.
  3. Select Your Target Engine: Click Activate on your chosen model. The interface immediately updates the active session to route subsequent queries through that model's inference endpoint.
  4. Permanent Default in Settings: To set a permanent default so you don't have to re-select each visit, click the Settings gear in the bottom-left sidebar, open the Models tab, and toggle your preferred engine as the default base.

What 365Finds Watches Out For: The Session Lock Nuance

HuggingChat binds each individual conversation thread to the model selected at creation. If you are mid-thread with a Llama variant and decide you want Qwen's coding logic instead, you cannot swap the engine inside that active dialogue. You must open a new conversation. At 365Finds, we actually appreciate this design: mixing model weights mid-context often produces chaotic formatting and broken conversational history.


2. Using Built-in Web Search in Standard Chats

Most open-source models suffer from strict training cutoffs. HuggingChat bridges that gap with a built-in internet grounding mechanism powered by open search providers (like SearxNG).

Toggling Web Search

It is not as lightning-fast as Perplexity, and complex JavaScript single-page apps can occasionally fail during extraction. But 365Finds prefers HuggingChat's transparency: you see the exact search queries generated and the links scraped.


3. Creating a Custom Web Search Assistant

Standard chats apply web search across the entire open internet, which often pulls in spam blogs and marketing fluff. HuggingChat’s Assistants feature solves this by letting you create custom personas with granular search rules.

HuggingChat Assistant Setup:
[Base Model Selection] -> [System Prompt / Persona] -> [Internet Access Mode] -> [Save & Share]

Step 1: Access the Assistant Builder

Navigate directly to https://huggingface.co/chat/assistants or click Assistants in the left sidebar, then click Create New Assistant (https://huggingface.co/chat/settings/assistants/new).

Step 2: Configure Basic Identity and Base Model

Step 3: Write Focused System Instructions (Preprompt)

Define how the assistant evaluates search material. Explicit instructions prevent the model from drifting into speculative answers:

You are a technical research assistant. Always verify claims against web search results. Cite specific source URLs for every factual assertion. If search results do not provide adequate evidence, state clearly that information is unavailable.

Step 4: Configure Internet Access Options

HuggingChat offers four distinct internet modes under the assistant settings:

Internet Access ModeHow It FunctionsRecommended Use Case
Default Web SearchQueries the open web globally for every relevant questionGeneral current affairs and broad market research
Domain SearchRestricts all search queries strictly to designated domains (e.g. site:docs.python.org)Official API documentation, legal codices, and trusted wikis
Specific LinksPulls grounded text directly from up to 10 predefined web URLsAnalyzing specific product launch pages, whitepapers, or living documents
DisabledCompletely severs external internet accessCreative writing, offline logic puzzles, and sensitive coding tasks

At 365Finds, our unequivocal recommendation for serious work is Domain Search. Confining an open-source model to authoritative domains like github.com, arxiv.org, or official framework documentation eliminates 90% of web hallucinations.

Step 5: Attach Community Tools (Optional)

If your chosen base model supports function calling, you can link Community Tools hosted on Hugging Face Spaces. This allows your assistant to run Python code, generate image assets, or query external vector stores alongside web retrieval.

Step 6: Save and Publish

Save the assistant. You receive a dedicated URL (huggingface.co/chat/assistant/<id>) that you can bookmark, pin to your HuggingChat sidebar, or share publicly with team members.


365Finds Assessment and Trade-offs

HuggingChat is not an enterprise corporate chat with guaranteed 99.99% uptime. Because it runs on shared Hugging Face community infrastructure, you will occasionally encounter token rate limits or slower queue times during peak European and US working hours. If you require zero-latency production workloads, you should self-host the open-source chat-ui repository on dedicated Hugging Face Endpoints.

For researchers, developers, and AI enthusiasts, however, HuggingChat provides unparalleled freedom: you inspect the real model weights, configure targeted web search without subscription barriers, and deploy specialized research assistants in under five minutes.

References