Skip to content

This project aims to provide a locally running, feature rich and smart assist for home assistant that does not require beefy hardware to get the job done.

License

Notifications You must be signed in to change notification settings

kr0ner/multistage-assist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Stage Assist for Home Assistant

Buy Me A Coffee

hacs_badge

Multi-Stage Assist is a highly advanced, local-first (with cloud fallback) conversational agent for Home Assistant. It orchestrates multiple processing stages to provide the speed of standard NLU with the intelligence of LLMs.

📚 Full Documentation →

Quick Overview

Stage Purpose Technology
Stage 0 Fast path - instant NLU Home Assistant built-in
Stage 1 Semantic cache lookup Cached command replay
Stage 2 Local LLM intent Ollama (qwen3:4b)
Stage 3 Cloud fallback + chat Google Gemini

Key Features

  • Semantic Command Cache - Instant replay of learned commands with reranker validation
  • Adaptive Learning - Remembers your custom room/device names
  • Temporary Controls - "Turn on light for 10 minutes"
  • Natural German Responses - Optimized for German language
  • Typo Tolerance - Handles minor spelling mistakes

Quick Start

Prerequisites

  • Home Assistant 2024.1.0+
  • Ollama with qwen3:4b-instruct and mxbai-embed-large
  • Google Gemini API Key
  • Optional: Reranker Addon

Installation

Install via HACS

  1. Add via HACS: https://github.com/kr0ner/multistage-assist
  2. Restart Home Assistant
  3. Add integration: Settings → Devices & Services → Add Integration
  4. Pull embedding model: ollama pull mxbai-embed-large

Expert Configuration

Power users can add YAML settings to configuration.yaml:

multistage_assist:
  # Semantic Cache tuning
  reranker_threshold: 0.73
  hybrid_enabled: true
  hybrid_alpha: 0.7
  
  # Low-hardware mode (cache-only, no LLM in Stage1)
  skip_stage1_llm: false
  
  # LLM behavior
  llm_timeout: 30
  llm_max_retries: 2
  
  # Debugging
  debug_cache_hits: false
  debug_llm_prompts: false

See Configuration Reference for all options.

Documentation

Topic Link
Architecture Architecture.md
Capabilities Capabilities-Reference.md
Configuration Configuration.md
Development Development-Guide.md

Troubleshooting

Enable debug logging:

logger:
  logs:
    custom_components.multistage_assist: debug

License

MIT License - see LICENSE

Attribution Required: github.com/kr0ner/multistage-assist

About

This project aims to provide a locally running, feature rich and smart assist for home assistant that does not require beefy hardware to get the job done.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages