Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ax-sh/ahh
ollama wrapper with pipeable prompts
https://github.com/ax-sh/ahh
cli ollama ollama-client
Last synced: 15 days ago
JSON representation
ollama wrapper with pipeable prompts
- Host: GitHub
- URL: https://github.com/ax-sh/ahh
- Owner: ax-sh
- Created: 2024-05-17T12:25:33.000Z (8 months ago)
- Default Branch: develop
- Last Pushed: 2024-08-05T22:47:49.000Z (5 months ago)
- Last Synced: 2024-08-06T13:45:35.981Z (5 months ago)
- Topics: cli, ollama, ollama-client
- Language: Rust
- Homepage:
- Size: 102 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ollama wrapper
cli tool for using llama3 with custom instruction prompt# To install
1. First install ollama https://ollama.com/download
1. ollama run llama3
```sh
git clone https://github.com/ax-sh/ahh.git
cargo install --path .# OR
cargo install --git https://github.com/ax-sh/ahh.git
```# Examples
```shcargo run
cargo run -- --help
cargo run -- this is a test
echo "using piped data" | cargo run -- this is a testOR
echo "using piped data" | ahh this is a test
```
## Ref
- https://www.shuttle.rs/blog/2023/12/08/clap-rust
- https://www.rustadventure.dev/building-a-digital-garden-cli/clap-v4/implementing-subcommands-with-clap#:~:text=The%20we%20use%20the%20command,as%20the%20flags%20they%20take.- https://github.com/ad-si/cai/blob/main/tests/integration_tests.rs
- https://crates.io/crates/clap-stdin