Butterfish: A CLI Tool for Large Language Models
Butterfish is a CLI tool for large language models (LLMs). It can be used to index and search text, generate text, and answer questions.
- Index text: Butterfish can index text files and then search them using the OpenAI embedding API.
- Generate text: Butterfish can generate text using the OpenAI API.
- Answer questions: Butterfish can answer questions using the OpenAI API.
To use Butterfish, you will need an OpenAI account and an API key. You can sign up for an account and get an API key at
Once you have an account and an API key, you can install Butterfish with the following command:
pip install butterfish
To index a text file, use the following command:
butterfish index my_text_file.txt
To search the index, use the following command:
butterfish indexsearch "my search term"
To generate text, use the following command:
butterfish generate "my prompt"
To answer a question, use the following command:
butterfish question "my question"
For more information, please see the Butterfish documentation at https://github.com/bakks/butterfish/