fabric icon indicating copy to clipboard operation
fabric copied to clipboard

[Feature request]: A pattern that suggests what fabric pattern/command to use

Open kevnk opened this issue 7 months ago • 6 comments

What do you need?

As a newbie to this, I basically only use extract_wisdom, but I know there's got to be more.

I'd love to run something like fabric suggest "I have a youtube video that I just want to get the main how-to steps out of it"

I would imagine the output being either:

  1. Here are some commands you could run yt "YOUR VIDEO" | some_command (maybe it shows and explains multiple options OR maybe it just says, "I got you, paste in the video URL and I'll run this command: some_command")
  2. No command is found and so it runs create_pattern for you (bonus: if it prompts you to save this somewhere and copy it into the patterns directory. Double bonus: if it does that and then runs it!)

I'm thinking the fabric suggest command may dynamically cache some version of create_summary and/or explain_docs loop through all the patterns as context for suggesting the right command.

Or maybe if you really wanted to get fancy, you could set up a vector database for all the fabric commands to be able to search it better with real language without pinging your model. (This is new stuff to me and I'm not sure where I would start)

BOTTOM LINE: I want to use fabric more, but I don't want to spend time reading through all the system.md to guess what it's going to do.

kevnk avatar Jul 01 '24 17:07 kevnk