Code Monkey home page Code Monkey logo

abanteai-rawdog's Introduction

Rawdog

An CLI assistant that responds by generating and auto-executing a Python script.

rawdog-demo-4.mp4

You'll be surprised how useful this can be:

  • "How many folders in my home directory are git repos?" ... "Plot them by disk size."
  • "Give me the pd.describe() for all the csv's in this directory"
  • "What ports are currently active?" ... "What are the Google ones?" ... "Cancel those please."

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:

  • "Setup the repo per the instructions in the README"
  • "Look at all these csv's and tell me if they can be merged or not, and why."
  • "Try that again."

Please proceed with caution. This obviously has the potential to cause harm if so instructed.

Quickstart

  1. Install rawdog with pip:

    pip install rawdog-ai litellm
    
  2. 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)
    >>> > |
    

Optional Arguments

  • --dry-run: Print and manually approve each script before executing.

Model selection

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.

abanteai-rawdog's People

Contributors

biobootloader avatar granawkins avatar jakethekoenig avatar lloydchang avatar nl3v avatar

abanteai-rawdog's Issues

ModuleNotFoundError: No module named 'litellm'

While litellm has been added to requirements.txt via AbanteAI@abfbc91

The version of rawdog on pip, paired with README.md instructions, is missing a reference to litellm.

Hence the simplest workaround is to amend README.md instructions as follows:

pip install rawdog-ai litellm

Meanwhile, the existing README.md says

Quickstart

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

However, ModuleNotFoundError: No module named 'litellm' happens because litellm was missing in README.md and/or requirements.txt

Example of error message below:

❯ pip3 install rawdog-ai
Collecting rawdog-ai
Obtaining dependency information for rawdog-ai from https://files.pythonhosted.org/packages/b0/c1/d9b6deab1331696eb970a0f62ab41eefaf8f6ac9274e0e71fc581312279b/rawdog_ai-0.1.0-py3-none-any.whl.metadata
Downloading rawdog_ai-0.1.0-py3-none-any.whl.metadata (2.1 kB)
Downloading rawdog_ai-0.1.0-py3-none-any.whl (11 kB)
Installing collected packages: rawdog-ai
Successfully installed rawdog-ai-0.1.0

❯ rawdog Plot the size of all the files and directories in cwd
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.12/bin/rawdog", line 5, in
from rawdog.main import main
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rawdog/main.py", line 6, in
from rawdog.llm_client import LLMClient
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/rawdog/llm_client.py", line 8, in
from litellm import completion, completion_cost
ModuleNotFoundError: No module named 'litellm'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.