Skip to main content

An open-source, local AI chatbot built with GTK4

Project description

Chi

Chi Logo Gif

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, specifically with instruct in its name.

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

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.

Document writing

In the "Create" section of Chi, there is a document writing function. On the right is where your prompt is inputted, and the left shows the output! On the top left, you can type in your desired filename and download to a .docx file!

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 Distribution

chi_ai-0.7.1.1.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

chi_ai-0.7.1.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file chi_ai-0.7.1.1.tar.gz.

File metadata

  • Download URL: chi_ai-0.7.1.1.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for chi_ai-0.7.1.1.tar.gz
Algorithm Hash digest
SHA256 bbb75d48ad3f71d9242826ed4fb987e1f71aecf7a79d0bb5206c038a70fd54f2
MD5 b5c76e627735498a4e38b844f05c184b
BLAKE2b-256 e88a69a08d2f993fefd2edcb19272da20b379f17fc4b8b40ccf0429b7f6c8283

See more details on using hashes here.

File details

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

File metadata

  • Download URL: chi_ai-0.7.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8ad7b432e069a594593a86c8401e3230770595a0a97e069f0155f4a1afddd12b
MD5 4ab3ab56fccc9fc7377ef5c3a05cfa1a
BLAKE2b-256 34b2fe1be7f2eba057c1060339e4feecbd24f3254f4fa63d0da22a54b9f859a2

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