askai/README.md

31 lines
888 B
Markdown
Raw Permalink Normal View History

2024-01-04 01:20:29 +00:00
# askai
2024-01-21 02:32:42 +00:00
askai is an interactive Linux tool that processes data from stdin according to user-specified instructions. It utilizes Ollama and opensource AI models for generating responses.
2024-01-04 01:49:55 +00:00
## Usage
2024-01-20 20:44:29 +00:00
To use the tool, simply input your information through stdin and pass your command line argument as a parameter. If you want to save default settings or update them, run askai with `--config` flag.
2024-01-04 01:49:55 +00:00
## Installation
To install this tool first create a venv python enviorment.
```bash
2024-01-04 03:03:39 +00:00
python3 -m venv ~/askai
2024-01-04 01:49:55 +00:00
```
Next download the repository and install askai.
```bash
git clone https://gitea.locker98.com/tofasthacker/askai.git
cd askai
2024-01-04 01:56:57 +00:00
source ~/askai/bin/activate
2024-01-04 01:49:55 +00:00
pip install -r requirements.txt
2024-01-04 02:04:29 +00:00
chmod +x askai
sudo cp askai /usr/bin/askai
2024-01-04 01:49:55 +00:00
askai --config
```
## Example Usage
```bash
2024-01-04 02:55:17 +00:00
$ cat askai | askai "what programming language is this"
The script is written in Python language.
2024-01-04 01:49:55 +00:00
```