At 365Finds, HuggingChat has become one of our primary environments for benchmarking open-weight language models against real-time information. Most commercial chatbot interfaces trap you inside a proprietary ecosystem—forcing you into GPT-4o or Claude 3.5 Sonnet with rigid web browsing guardrails. HuggingChat takes the opposite path. Powered by Hugging Face's open-source chat-ui framework, it gives developers direct access to top-tier open weights (such as Llama 3.3, Qwen 2.5, and Command R+) alongside modular web search.
Developers approach HuggingChat in two distinct ways: configuring models and retrieval inside the hosted public interface at huggingface.co/chat, or deploying their own private instance of chat-ui to connect custom fine-tuned weights and dedicated search APIs. Here is how to configure both workflows effectively.
1. Switching Open-Weight Models in the Hosted Interface
The public HuggingChat interface lets you switch between high-performing open models in seconds without touching code.
- Access the Model Menu: In the left sidebar of the HuggingChat interface, locate the active model name or click the settings gear next to your profile.
- Select an Active Backend: The model modal displays the curated roster maintained by Hugging Face. You can select models optimized for reasoning, code generation, or low latency—such as Meta's Llama 3.3 70B, Alibaba's Qwen 2.5 72B, or Cohere's Command R+.
- Activate New Threads: Once chosen, all subsequent chat sessions execute against that specific architecture. You can maintain multiple threads running on different backends side by side to compare output quality directly.
If you need a specific system prompt or a specialized persona wrapped around an open-weight model, don't just paste instructions into every prompt. Use the Assistants feature (huggingface.co/chat/assistants). Clicking Create New Assistant allows you to bind a designated base model to a custom pre-prompt, persistent parameters, and targeted web retrieval rules.
2. Enabling and Restricting Web Search
Standard language models operate within static training cutoffs. HuggingChat solves this by embedding search query generation, web scraping, and real-time grounding into the chat flow.
In General Chat
To run a one-off web-augmented query in any standard conversation:
- Look at the bottom prompt input bar.
- Toggle the Web Search icon (the globe symbol) to the ON position.
- Enter your prompt. HuggingChat automatically generates search queries, retrieves relevant pages, and displays clickable source citations below the synthesized response.
Inside Custom Assistants
At 365Finds, our biggest frustration with unconstrained web search in chat interfaces is noise: general web searches frequently ingest SEO farms and outdated forum posts. When building a HuggingChat Assistant, Hugging Face provides precise Internet Access controls that solve this problem:
| Search Configuration | Behavior | Best Use Case |
|---|---|---|
| Enabled | Broad web search across open search engines | General news, broad technical research, fast fact-checking |
| Domain Search | Restricts all queries to whitelisted domains | Targeting official API references, technical documentation, legal statutes |
| Specific Links | Scrapes only designated static URLs | Document-specific Q&A, chatting with a single long-form paper or changelog |
| Disabled | Zero external network calls | Pure code generation, logic puzzles, zero-leakage prompt testing |
For technical research, 365Finds strongly favors Domain Search. Specifying domains like docs.python.org or huggingface.co/docs forces the underlying model to answer purely from validated documentation, virtually eliminating web retrieval hallucinations.
3. Developer Self-Hosting: Custom Weights and Custom Search Backends
The public HuggingChat service only exposes Hugging Face's pre-approved model list. If you need to chat with your own private fine-tuned checkpoint, an internal company model, or a self-hosted inference engine like vLLM or Ollama, you must deploy Hugging Face's open-source repository: huggingface/chat-ui.
In chat-ui, the architecture natively speaks the OpenAI-compatible API standard. You control your models and search engines entirely through environment variables in your .env.local configuration.
Binding Custom Models
Point chat-ui to your private Hugging Face Inference Endpoint, local vLLM server, or third-party router:
OPENAI_BASE_URL=https://your-inference-endpoint-url.endpoints.huggingface.cloud/v1
OPENAI_API_KEY=hf_yourHuggingFaceToken
MONGODB_URL=mongodb://localhost:27017/chat-ui
# Override or customize specific auto-discovered models
MODELS=`[
{
"id": "meta-llama/Llama-3.3-70B-Instruct",
"name": "Custom Llama 3.3 Internal",
"supportsTools": true,
"parameters": {
"temperature": 0.5,
"max_tokens": 4096
}
}
]`
Configuring the Web Search Provider
By default, self-hosted chat-ui needs a designated search engine backend to crawl and summarize live web pages. You can choose between managed commercial search APIs or a self-hosted metasearch instance:
- Serper API (Recommended for cloud deployments):
SERPER_API_KEY=your_serper_api_key - SearXNG (Ideal for complete data sovereignty and zero external logging):
SEARXNG_QUERY_URL=https://searxng.internal.network/search?q=<query>&engines=duckduckgo,google&format=json - Local Web Scraping (No API key, suitable for small-scale local testing):
USE_LOCAL_WEBSEARCH=true
365Finds Assessment
HuggingChat offers the most honest, inspectable environment for working with open weights today. If your goal is prototyping and comparing models, stick with the hosted interface at huggingface.co/chat and lock down retrieval using an Assistant with Domain Search. If you need to interface with proprietary models, private company repos, or unmonitored search pipelines, spinning up chat-ui with a dedicated Hugging Face Inference Endpoint and SearXNG provides an unmatched level of architectural freedom.