#ai #openai #machine-learning #cli

app ai-buddy-cli

Personal AI Assistant CLI using the multi-ai-provider ai-buddy library

2 releases

0.0.3 Dec 28, 2023
0.0.2 Dec 24, 2023

#320 in Machine learning

MIT/Apache

43KB
940 lines

IMPORTANT: For the YouTube Video Coding a Rust OpenAI Assistant CLI from scratch, be sure to refer to the GitHub Tag E01 (see note below).

Rust AI-Buddy

The vision for Rust AI-Buddy is to create a simple on-device AI assistant that leverages AI assistant services such as OpenAI (Cloud), Gemini (Cloud), ollama (local), lamafile (local), among others. It aims to demonstrate best practices in Rust coding.

YouTube Videos

NOTE: The main branch has been updated with a * MAJOR - Refactoring multiple crates commit and other significant upgrades.

Cargo Commands

# Build everything
cargo build

# Run the command line
cargo run -p ai-buddy-cli

# Install the `buddy` command line locally
cargo install --path crates/ai-buddy-cli 

Context

Rust AI-Buddy is part of the Rust10x blueprint family (https://github.com/rust10x).

The concept of Rust AI-Buddy is to leverage existing AI remote and cloud services like OpenAI (Cloud), Gemini (Cloud), ollama (local), lamafile (local), and others as it makes sense, and build higher-level constructs that are useful for end users.

ai-buddy is a multi-crate codebase that includes the following crates:

Crate Name Description
/crates/ai-buddy The core/main library used by ai-buddy-cli
/crates/ai-buddy-cli The CLI for ai-buddy (buddy binary name)
/crates/ai-buddy-app (Upcoming) Tauri App

Repository

GitHub Repository

Dependencies

~14–29MB
~445K SLoC