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
25.44k stars 2.7k forks source link

[Question]: How to update the patterns library #1013

Open AnthoneyY opened 1 month ago

AnthoneyY commented 1 month ago

What is your question?

My computer is windows, I updated fabric using go language and now it works fine with the existing patterns.

The problem is that I have added a couple of system files to the .config/fabric/patterns file that someone else shared with me. The purpose of these patterns is to convert English to Chinese. They work in older python versions.

The filenames are only lowercase letters and _. I have tried the following, none of them work.

  1. using fabric --updating in bash
  2. shutting down and trying again.
  3. use fabric --setup to install again. This time the patterns I put in still exist in the patterns folder, but still nothing.

pls help

AnthoneyY commented 1 month ago

Did you try git pull? I just updated few minutes before I read your issue. Merged latest updates with my local unique patterns.你尝试过 git pull 吗?我在阅读你的问题几分钟前刚刚更新。将最新更新与我的本地独特模式合并。

I'll try it right now.

AnthoneyY commented 1 month ago

Did you try git pull? I just updated few minutes before I read your issue. Merged latest updates with my local unique patterns.

I didn't clone the repository yet. I will try it.

AnthoneyY commented 1 month ago

Did you try git pull? I just updated few minutes before I read your issue. Merged latest updates with my local unique patterns.

wow, it really works. Thank you very much.

  1. I clone the repository first. Using the following code to local it in a file (for example c:\Users\ss\fabric) git clone https://github.com/danielmiessler/fabric.git

2.I put my local pattern in this file ~.config\fabric\patterns Then I

  1. The following code help me copy the patterns provided in this repository xcopy /E /I C:\Users\ss\fabric\patterns C:\Users\Joey.config\fabric\patterns