Skip to content

Latest commit

 

History

History
107 lines (71 loc) · 5.28 KB

README.md

File metadata and controls

107 lines (71 loc) · 5.28 KB

en ru

Logo

🦜️🔗 GigaChain (GigaChat + LangChain)

GigaChain integration with Home Assistant

hacs_badge HACS Action Validate with hassfest Generic badge Downloads for latest release Github All Releases

This integration implements Voice Assistant for Home Assistant using GigaChain framework. Currently supported LMMs:

Installation

Install it like any other HACS integration.

Requirements

Home Assistant with installed HACS

Installation with HACS

Find GigaChain in HACS store. If you can't find it in store, you could add this url as HACS custom repository.

hacs_badge

Restart Home Assistant.

Add Integration

Open your Home Assistant instance and start setting up a new integration of a specific brand.

After adding, configure integration.

Settings

GigaChat

GigaChat Authorization

You need to register at https://developers.sber.ru/studio and get an "authorization data" key.

Note

You can find more details in GigaChat official documentation.

Authorization data

YandexGPT

Quick start

Create service account with role ai.languageModels.user. Create API key. You can find Folder ID using this link.

OpenAI

Create API key here https://platform.openai.com/account/api-keys

Anyscale

Register account and create API key here

Configuration

  • Prompt template (template, Home Assistant template)

The starting text for the AI language model to generate new text from. This text can include information about your Home Assistant instance, devices, and areas and is written using Home Assistant Templating. Default value comes from official integration OpenAI Conversation

  • Model (model, string)

Language model is used for text generation

  • Temperature (temperature, float)

A value that determines the level of creativity and risk-taking the model should use when generating text. A higher temperature means the model is more likely to generate unexpected results, while a lower temperature results in more deterministic results.

  • Max Tokens (max_tokens, int)

The maximum number of words or “tokens” that the AI model should generate in its completion of the prompt.

  • Process HA Builtin Sentences (process_builtin_sentences, bool)

If enabled, integration first will pass all sentences to HA built-in sentence processor. This is default behaviour of default Home Assistant Voice Assistant engine which allow you to use commands something like turn on the living room light. If sentence will not be recognized by HA, it will be passed further to chosen LLM.

  • Chat History (chat_history, bool)

Keep all conversation history.

Using as Voice Assistant

Create and configure Voice Assistant:

Voice Assistant