An CLI assistant that responds by generating and auto-executing a Python script.
https://github.com/AbanteAI/rawdog/assets/50287275/1417a927-58c1-424f-90a8-e8e63875dcda
You'll be surprised how useful this can be:
Rawdog (Recursive Augmentation With Deterministic Output Generations) is a novel alternative to RAG (Retreival Augmented Generation). Rawdog can self-select context by running scripts to print things, adding the output to the conversation, and then calling itself again.
This works for tasks like:
Please proceed with caution. This obviously has the potential to cause harm if so instructed.
Install rawdog with pip:
pip install rawdog-ai
Choose a mode of interaction. You will be prompted to input an API key if not found:
Direct: Execute a single prompt and close
rawdog Plot the size of all the files and directories in cwd
Conversation: Initiate back-and-forth until you close. Rawdog can see its scripts and output.
rawdog
>>> What can I do for you? (Ctrl-C to exit)
>>> > |
--dry-run
: Print and manually approve each script before executing.Rawdog uses litellm
for completions with 'gpt-4' as the default. You can adjust the model or
point it to other providers by modifying ~/.rawdog/config.yaml
.