danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
23.98k stars 2.57k forks source link

[Question]: New patterns not working nor being recognized #1034

Open infinitelyloopy-bt opened 2 weeks ago

infinitelyloopy-bt commented 2 weeks ago

What is your question?

I am using a Mac. I created my own patters, but when I copy it to the right folder, I cannot seem to use Fabric to call it / use it. I receive an error claiming that patter is not there, even though it is in the folder with the right structure.

charlie-romeo commented 1 week ago

hi @infinitelyloopy-bt, I just ran a quick test. I created a new directory and a system.md file. Here's what worked for me. create new dir and file at ~.config/fabric/patterns/new-pat/system.md. worth noting the file needs to be named system.md the md only contains "What is the answer to the meaning of life from 'A hitchiker's guide to the galaxy"?" $ fabric -p new-pat
$ 42

Does it work with other patterns? Check the .env to ensure PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER= points where you want.

hope that helps.

infinitelyloopy-bt commented 1 day ago

Does it work with other patterns? Check the .env to ensure PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER= points where you want.

This must be the problem. I used GO to install Fabric so I am not sure where my .env file would be.

Is it better to copy the git repo and clone it locally instead of using go so I can access the .env files?