• Stars
    star
    183
  • Rank 203,968 (Top 5 %)
  • Language
    Rust
  • License
    MIT License
  • Created over 1 year ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ask the Terminal Anything (ATA): ChatGPT in the terminal

ata: Ask the Terminal Anything

ChatGPT in the terminal

asciicast

TIP:
Run a terminal with this tool in your background and show/hide it with a keypress.
This can be done via: Iterm2 (Mac), Guake (Ubuntu), scratchpad (i3/sway), or the quake mode for the Windows Terminal.

Productivity benefits

  • The terminal starts more quickly and requires less resources than a browser.
  • The keyboard shortcuts allow for quick interaction with the query. For example, press CTRL + c to cancel the stream, CTRL + ↑ to get the previous query again, and CTRL + w to remove the last word.
  • A terminal can be set to run in the background and show/hide with one keypress. To do this, use iTerm2 (Mac), Guake (Ubuntu), scratchpad (i3/sway), or the quake mode for the Windows Terminal.
  • The prompts are reproducible because each prompt is sent as a stand-alone prompt without history. Tweaking the prompt can be done by pressing CTRL + ↑ and making changes.

Usage

Download the binary for your system from Releases. If you're running Arch Linux, then you can use the AUR packages: ata, ata-git, or ata-bin.

To specify the API key and some basic model settings, start the application. It should give an error and the option to create a configuration file called ata.toml for you. Press y and ENTER to create a ata.toml file.

Next, request an API key via https://beta.openai.com/account/api-keys and update the key in the example configuration file.

For more information, see:

$ ata --help

FAQ

How much will I have to pay for the API?

Using OpenAI's API for chat is very cheap. Let's say that an average response is about 500 tokens, so costs $0.001. That means that if you do 100 requests per day, which is a lot, then that will cost you about $0.10 per day ($3 per month). OpenAI grants you $18.00 for free, so you can use the API for about 180 days (6 months) before having to pay.

How does this compare to LLM-based search engines such as You.com or Bing Chat?

At the time of writing, the OpenAI API responds much quicker than the large language model-based search engines and contains no adds. It is particularly useful to quickly look up some things like Unicode symbols, historical facts, or word meanings.

Can I build the binary myself?

Yes, you can clone the repository and build the project via Cargo. Make sure that you have Cargo installed and then run:

$ git clone https://github.com/rikhuijzer/ata.git

$ cd ata/

$ cargo build --release

After this, your binary should be available at target/release/ata (Unix-based) or target/release/ata.exe (Windows).

More Repositories

1

PlutoStaticHTML.jl

Convert Pluto notebooks to HTML in automated workflows
Julia
81
star
2

JuliaTutorialsTemplate

A template for building websites with Julia. Easily publish Pluto notebooks online.
Julia
60
star
3

cache-install

Use the GitHub Actions cache for Nix packages
Nix
41
star
4

PrecompileSignatures.jl

Generate precompile directives by reading method signatures
Julia
38
star
5

PowerAnalyses.jl

Statistical power analyses in Julia
Julia
17
star
6

Skans.jl

Monitor web pages and get notified when a page has changed
Julia
13
star
7

StableTrees.jl

This package is DEPRECATED. Use SIRUS.jl instead
Julia
9
star
8

Resample.jl

An implementation of SMOTE
Julia
8
star
9

julia-webserver

An example Julia webserver which can be hosted on services such as Render or Fly.io
Julia
8
star
10

ShowLint

Showing static code analysis results for open source repositories
Julia
7
star
11

SIRUS.jl

Pure Julia implementation of the Stable and Interpretable RUle Sets (SIRUS) algorithm
Julia
6
star
12

julia-nixos

NixOS derivation for Julia 1.6
Nix
4
star
13

PrecompileMacro.jl

A `@precompile` decorator to trigger precompilation
Julia
4
star
14

bench

Benchmarking tool for various intent and entity classification systems
Python
4
star
15

Causality.jl

Automatically determine whether a causal effect is identifiable
Julia
3
star
16

blog

Blog posts about statistics and programming in Julia
Julia
3
star
17

test-caching

Cache Nix packages
Nix
3
star
18

thesis

Automatically responding to customers
TeX
2
star
19

nlu_datasets

Datasets for intent classification and entity extraction including converters.
Python
2
star
20

BayesianAssignment.jl

Bayes factors assignment for statistical solutions to research problems in psychology
Julia
2
star
21

SkansTemplate

Template for monitoring webpages for changes
1
star
22

MLJTuringInterface.jl

Interface for Turing models with MLJ
Julia
1
star
23

improv

Attempting to improve accuracy for intent classification by using Google BERT
Jupyter Notebook
1
star
24

GenTeX.jl

Generate LaTeX images
Julia
1
star