mirror of
https://github.com/babichjacob/ac-qu-ai-nt.git
synced 2025-10-02 04:47:53 -04:00
122 lines
5.5 KiB
Markdown
122 lines
5.5 KiB
Markdown
`ac-qu-ai-nt` is a project I'm working on, using artificial intelligence to break down the user's query, acquire knowledge, and transfer insights to the user('s mind).
|
|
|
|
This is a placeholder while I take small steps to build out the project.
|
|
|
|
# Installation
|
|
|
|
## Automatically Updatable
|
|
|
|
You won't find it very useful yet, because it doesn't really do much of anything, but you can install the multibinary with [Binstall](https://github.com/cargo-bins/cargo-binstall). This means you don't need to have the same development environment (which will require the Vulkan SDK and CUDA Toolkit in the future) in order to use the program, because you'll just download a precompiled executable.
|
|
|
|
```sh
|
|
cargo-binstall -y ac-qu-ai-nt
|
|
```
|
|
|
|
Install [`cargo-update`](https://github.com/nabijaczleweli/cargo-update) and periodically run
|
|
|
|
```sh
|
|
cargo install-update --all
|
|
```
|
|
|
|
in order to keep this program up to date.
|
|
|
|
I'm not sure if you need a Rust compiler installed for either or if they can work standalone.
|
|
|
|
## Just the Executable
|
|
|
|
Head to [the Releases page](https://github.com/babichjacob/ac-qu-ai-nt/releases) and download the asset corresponding to your computer architecture and operating system.
|
|
|
|
Decompress the archive and place the executable contained within it somewhere useful to you (e.g. in a directory in [your `PATH` variable](https://superuser.com/a/284351)).
|
|
|
|
# Usage
|
|
|
|
If it's your preference, you should be able to double click the executable in the folder to be able to run it (defaulting to launching a graphical interface (once I actually make one lol)).
|
|
|
|
You could also type
|
|
|
|
```sh
|
|
ac-qu-ai-nt
|
|
```
|
|
|
|
on the command line to run it. This is also a way to launch a GUI (once there actually is one) for the application.
|
|
|
|
## Command Line Interface
|
|
|
|
It's going to be a goal of this project for there to be feature parity between the GUI, CLI, and TUI.
|
|
|
|
If you want to use its command line interface, start with
|
|
|
|
```sh
|
|
ac-qu-ai-nt cli
|
|
```
|
|
|
|
to see what capabilities are available.
|
|
|
|
(This is an alias for `ac-qu-ai-nt cli-clap` to allow the possibility of experimenting with different implementations of the same type of interface.)
|
|
|
|
# Contributing
|
|
|
|
## Issues and Pull Requests
|
|
|
|
Please create an issue before working on a pull request. It's helpful for you to know if the idea you have in mind will for sure be incorporated into the project, and won't require you to _acquaint_ yourself with the project internals. It even opens the floor for someone else to do the work implementing it for you.
|
|
|
|
Some [existing issues are labeled `straightforward`](https://github.com/babichjacob/ac-qu-ai-nt/issues?q=is%3Aissue+is%3Aopen+label%3Astraightforward) and expected to be the easiest to work on, if you'd like to try.
|
|
|
|
## Project Breakdown
|
|
|
|
This is a summary of the crates in this project and how they are used:
|
|
|
|
```mermaid
|
|
flowchart TD
|
|
core --> cli-clap
|
|
core --> gui-eframe
|
|
core --> tui-ratatui
|
|
cli-clap --> multibinary
|
|
gui-eframe --> multibinary
|
|
tui-ratatui --> multibinary
|
|
```
|
|
|
|
### `core`
|
|
|
|
The core of the project, where code for large language model and embedding model inference using [`llama-cpp-2`](https://crates.io/crates/llama-cpp-2) will be (because it's not started yet at the time of writing), where ingesting data will be done, and where public APIs that the other crates (`cli-clap`, `gui-eframe`, and `tui-ratatui`) use will be.
|
|
|
|
Each of the interface crates are expected to have feature parity (as in capability, not as in a Cargo feature) where possible, but we'll see how that goes.
|
|
|
|
### `cli-clap`
|
|
|
|
A command line interface (CLI) for the project written with [`clap`](https://crates.io/crates/clap).
|
|
|
|
### `gui-eframe`
|
|
|
|
A graphical user interface (GUI) for the project written with [`eframe`](https://crates.io/crates/eframe) for [`egui`](https://crates.io/crates/egui).
|
|
|
|
As of right now, it isn't started yet.
|
|
|
|
### `tui-ratatui`
|
|
|
|
A terminal user interface (TUI) for the project written with [`ratatui`](https://crates.io/crates/ratatui).
|
|
|
|
As of right now, it isn't started yet.
|
|
|
|
## Versioning
|
|
|
|
This project aims to adhere to [semantic versioning](https://semver.org/) using [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/#summary), conducted by [Release-plz](https://release-plz.ieni.dev/).
|
|
|
|
To be more specific about what a breaking change _could_ entail:
|
|
|
|
- a previously successful compilation now failing
|
|
- the program (wrongly) exiting, panicking, reporting an error, etc, where it didn't previously
|
|
- changing the expected result of an existing integration test (not sure if unit tests would count)
|
|
|
|
All the crates in this project have a [minimum supported Rust version (MSRV)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) of 1.76, the release succeeding [the one that stabilized `async fn` in traits](https://blog.rust-lang.org/2023/12/28/Rust-1.75.0.html) (which the `core` crate of this project is expected to make use of). I [intend to test this in CI (GitHub Actions) in the future](https://github.com/babichjacob/ac-qu-ai-nt/issues/5) to identify if it ever gets raised by changes but I have not set this up yet. Raising the MSRV will be considered a breaking change --- my justification is that it [seems more appropriate for an application like this](https://github.com/matklad/once_cell/issues/201#issuecomment-1257213601). This may be reconsidered if [Cargo's MSRV-aware resolver](https://rust-lang.github.io/rfcs/3537-msrv-resolver.html) is stabilized.
|
|
|
|
## License
|
|
|
|
All contents of this repository are licensed under either the
|
|
|
|
- [MIT license](LICENSE-MIT), or
|
|
- [Apache 2.0 license](LICENSE-APACHE), or
|
|
- [Unlicense](LICENSE-UNLICENSE)
|
|
|
|
at your option.
|