Giter Site home page Giter Site logo

kait's Introduction

Python Version

Kait (Kubernetes AI Tool)

kait is an AI assisted kubernetes debugging tool which automatically troubleshoots, diagnoses, and fixes issues related to kubernetes.

kait uses autonomous AI agents built using Microsoft's AutoGen

Installation and setup

You can install kait directly using pip:

pip install kait

kait requires an OpenAI API key which is read via the environment variable KAIT_OPENAI_KEY. You can provide a list of models to use and kait will use the available model. It is recommended to use models with the capabilities of gpt-4. Larger contexts work better too e.g. 'gpt-4-1106-preview'. Your environment variable needs to point to a list of models in the following format:

[
    {
        "model": "gpt-4",
        "api_key": "YOUR_OPENAI_API_KEY"
    }
]

Using a Local LLM

You can use OpenAI compatible local LLMs by including a base_url in your model spec:

[
    {
        "model": "chatglm2-6b",
        "base_url": "http://localhost:8000/v1",
        "api_key": "NULL", # Any string will do
    }
]

FastChat/ and llama-cpp-python both provide OpenAI compatible APIs which can be used with the above config. Which models provide adequate performance still needs validating.

Usage

kait requires kubectl to be installed and authenticated against the cluster you want to use.

To run kait simply run:

kait debug <DESCRIPTION OF THE ISSUE TO DEBUG>

For a full list of options, run:

kait debug --help

Examples

A number of examples/ are provided so you can see how kait performs.

kait's People

Contributors

asaharland 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.