Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

147 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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-q4_K_M)
Stage 3 Cloud fallback + chat Google Gemini

Key Features

  • Semantic Command Cache - Instant replay of learned commands with optimized vector lookup
  • 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-q4_K_M and models/multilingual-minilm
  • Google Gemini API Key
  • Optional: Semantic Cache 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 models/multilingual-minilm

Expert Configuration

Power users can add YAML settings to configuration.yaml:

multistage_assist:
  # Semantic Cache tuning
  vector_threshold: 0.85
  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

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages