Giter Site home page Giter Site logo

gritaro / gigachain Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 0.0 313 KB

This custom component for Home Assistant allows you to generate text responses using GigaChain LLM framework (like GigaChat, YandexGPT, ChatGPT, Anyscale).

Python 100.00%
gigachain gigachat gpt hacs-integration homeassistant yandexgpt chatgpt openai voice-assistant anyscale

gigachain's Introduction

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

gigachain's People

Contributors

gritaro avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.