Skip to main content

An open-source, local AI chatbot built with GTK4

Project description

Chi

GitHub Repo stars GitHub release (latest by date) GitHub license PyPI status

Install

1. Install system dependencies

Chi uses GTK4 for its interface. These cannot be installed via pip and must come from your system package manager.

Debian / Ubuntu

sudo apt install python3-gi python3-gi-cairo gir1.2-gtk-4.0 libgtk-4-1

Fedora

sudo dnf install python3-gobject gtk4

Arch

sudo pacman -S python-gobject gtk4

2. Install Chi

It is recommended to use pipx to install Chi, as it keeps Chi and its dependencies isolated from your system Python.

pipx install chi-ai

Don't have pipx? Install it first:

pip install pipx

Or if you'd prefer plain pip:

pip install chi-ai

3. Run

chi-ai

Features

This section describes (and shows how to use) all features in Chi.

Model selection

Model selection is important, as Chi will require a specificed model to use in order to continue. Once selected, it will be saved in config.ini and you will not need to redo this process unless you are switching models.

In the settings menu of Chi, click "Open file", located underneath the text that says "Change your model. Upon clicking, a file dialog will appear, allowing you to look through your computer for a model to use. Note that it must be a .gguf model, optimized for LlaMA 3 style prompts.

After selecting a model, you will be able to use Chi in the "Chat" menu.

Generation parameters

In the settings menu of Chi, you will notice two sliders. One controls generation tokens, and the other controls generation temperature. The following is a quick description of these parameters.

  • Tokens are the maximum length of a response. The higher the number, the longer the response.
  • Temperature is the 'creativity' of the model. A lower number means more logical, basic responses, while a higher number means higher creativity, at the sacrifice of some logic.

Quick action buttons

In the chat section of Chi, you may notice three buttons. These buttons append a message at the end of an input, and can alter responses in more favorable ways. The translations to the prompt for each button is provided in the following.

  • Explain like I'm 5 -> Explain this in a way suitable for a 5 year-old.
  • Explain thoroughly -> Explain this thoroughly with examples.
  • Explain efficiently -> Explain this efficiently and concisely.

Personality customization

In the settings section of Chi, there is an entry box to change the personality. You can write instructions and press enter to save them and apply them to the model. Your customizations are saved in config.ini so there is no worry regarding loss of settings.

Want to contribute?

Read CONTRIBUTING.md for information regarding contribution. Any issues can go into the 'issues' section of the repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chi_ai-0.7.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file chi_ai-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: chi_ai-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for chi_ai-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d70c3bf6b1143bc332b09177c16807b930afbc385d000543b2833dbc82a3afe1
MD5 ce4181da0886653bf40aff8d7da19ef1
BLAKE2b-256 2bb172cdba972d5078cb11e285d02c00788e7861ae0b625615235fbb2019d2e9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page