chasebank87 / mesh-ai

MIT License
75 stars 6 forks source link

How to use the fabric patterns and my own? #29

Open markallisongit opened 1 month ago

markallisongit commented 1 month ago

I'm using Obsidian on Windows 11. I have been using fabric in WSL2 in ubuntu, but I'm doing a lot of terminal work and copying and pasting which is a bore.

I have configured Mesh-AI Fabric patterns folder to be Atlas/Assets/ai-prompts/fabric and this works fine if there's a bunch of md files in there. However I have just copied over the entire patterns folder from the fabric project github into Atlas/Assets/ai-prompts/fabric but Mesh-AI can't find them when I tell it to process a new note. Can it traverse sub-folders? e.g.

image

Do I have to rename all the system.md files in the fabric folder to the pattern name and then copy them over?

The Custom patterns folder Atlas/Assets/ai-prompts/mine works for my own patterns just fine if they are not in sub-folders.

chasebank87 commented 1 month ago

Two things, first you have to use forward slashes instead of back slashes. Second we have a feature to download fabric patterns for you, just have to setup the fabric patterns folder and then click download patterns from settings.Sent from my iPhoneOn Oct 24, 2024, at 2:59 AM, Mark Allison @.***> wrote: I'm using Obsidian on Windows 11. I have been using fabric in WSL2 in ubuntu, but I'm doing a lot of terminal work and copying and pasting which is a bore. I have configured Mesh-AI Fabric patterns folder to be Atlas/Assets/ai-prompts/fabric and this works fine if there's a bunch of md files in there. However I have just copied over the entire patterns folder from the fabric project github into Atlas/Assets/ai-prompts/fabric but Mesh-AI can't find them when I tell it to process a new note. Can it traverse sub-folders? e.g. image.png (view on web) Do I have to rename all the system.md files in the fabric folder to the pattern name and then copy them over? The Custom patterns folder Atlas/Assets/ai-prompts/mine works for my own patterns just fine if they are not in sub-folders.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

markallisongit commented 1 month ago

Two things, first you have to use forward slashes instead of back slashes. Second we have a feature to download fabric patterns for you, just have to setup the fabric patterns folder and then click download patterns from settings.

Got it thanks, I just tested the pattern extract_article_wisdom on the text from this page https://seths.blog/2024/10/full-circle-with-myopia/

When doing that in Linux, the markdown headers are formatted correctly as level-2 headers (##). e.g.

$ pbpaste | ./fabric -s -p extract_article_wisdom

output:

SUMMARY

The author reflects on the impact of Ted Levitt's 1960 article "Marketing Myopia" on their career, leading to their own concept, "strategy myopia."

IDEAS:

etc


When running the same prompt in Mesh-AI, the headers are formatted as bold and not level-2 headers.

output from Mesh-AI:

SUMMARY:

A 1983 Harvard Business Review article by Ted Levitt, discussed in a recent expansion by the author, emphasizes the need to avoid strategy myopia.

IDEAS:

etc

fabioscarsi commented 1 month ago

Two things, first you have to use forward slashes instead of back slashes. Second we have a feature to download fabric patterns for you, just have to setup the fabric patterns folder and then click download patterns from settings.Sent from my iPhoneOn Oct 24, 2024, at 2:59 AM, Mark Allison @.> wrote: I'm using Obsidian on Windows 11. I have been using fabric in WSL2 in ubuntu, but I'm doing a lot of terminal work and copying and pasting which is a bore. I have configured Mesh-AI Fabric patterns folder to be Atlas/Assets/ai-prompts/fabric and this works fine if there's a bunch of md files in there. However I have just copied over the entire patterns folder from the fabric project github into Atlas/Assets/ai-prompts/fabric but Mesh-AI can't find them when I tell it to process a new note. Can it traverse sub-folders? e.g. image.png (view on web) Do I have to rename all the system.md files in the fabric folder to the pattern name and then copy them over? The Custom patterns folder Atlas/Assets/ai-prompts/mine works for my own patterns just fine if they are not in sub-folders. —Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.>

@chasebank87, I have a very modest suggestion: If possible, your plugin should be able to dynamically SYNC the patterns with Fabric, grab them directly from Fabric's installation folder, or sync the folders periodically or at every Obsidian startup. Otherwise, we have a useless and harmful duplication that is worse considering the rapid development pace of Fabric ... Similarly, for non-standard patterns, it would be great if your plugin was the editor for building them and, in some way, using them also in Fabric through the terminal. Naturally, I hope not to be too superficial in my suggestion (from a non-coder ....).

chasebank87 commented 1 month ago

I appreciate your suggestion, and would be perfect for my other plugin the unofficial fabric integration plugin, but for this it's meant to be standalone. For those who really don't want to use fabric from terminal and therefore don't need fabric installed.

The download of patterns at startup is a good idea though.

fabioscarsi commented 4 weeks ago

@chasebank87, is the unofficial fabric integration plugin development still ongoing? I wrongly thought that mesh-ai was substituting it...