Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

General help please

Open bongonations opened this issue 1 year ago • 2 comments

Hey Daniel a belated happy new year to you sir. Thank you for your wonderful work. I love your AI Fabric open source idea. I am just learning AI and wondered how you managed to create those GPTs as you demonstrated via your Linux on prem box?

I want to try out the extractwisdom but not too sure how to start. I know you mentioned flask and some other technologies. But wondered if you had an idiots guide as to how to setup a GPT like extractwisdom

image

Any dummies guide help would be gratefully appreciated

Thank you sir AJ

bongonations avatar Feb 02 '24 10:02 bongonations

i would love to know this. Also, I have other question, Sorry for asking here, Hopefully you don't mind [bongonations] Is fabric useful for ethical hacker students who're learning? to sort things out like that for their things instead of just using notes, like replacement for notes or addition to notes for enchanted experience.

omrija1 avatar Feb 02 '24 14:02 omrija1

..

manojgowda5 avatar Feb 02 '24 19:02 manojgowda5

If you can upload those Unix scripts that would be awesome.

tasnuva1 avatar Feb 03 '24 01:02 tasnuva1

Those "Unix script" are nothing more than i.e. python scripts without the extension ".py", but with an appropriate Shebang. There is already one presented in https://github.com/danielmiessler/fabric/blob/main/client/fabric The only thing you have to do is, to create aliases to that executable file fabric. No need to have separate files and whatnot.

So make sure that fabric can be interpreted correctly. Either install python3 onto your system directly or rather install python3 via Conda - or in my case Miniconda. In case you were to install Miniconda the shebang would look something like this:

#!/home/username/miniconda3/envs/fabricenv/bin/python

Assuming your home directory lies in /home/username/ and the Conda environment you have created is called fabricenv.

An alias to the executable fabric would i.e. be stored in ~/.bashrc and could look like this:

alias extractwisdom="/path/to/fabric -p extract_wisdom -t"

Then you would be called like this:

extractwisdom "Believe that life is worth living and your belief will help create the fact."

chrissonntag avatar Feb 03 '24 09:02 chrissonntag

Yes, exactly like Chris said. Good stuff. Thank you for the question and thanks to Chris for the explanation.

danielmiessler avatar Feb 03 '24 22:02 danielmiessler

Those "Unix script" are nothing more than i.e. python scripts without the extension ".py", but with an appropriate

Thanks for sharing. I was behind on the latest commits.

Here is the Arch Linux setup if anyone needs it:

  1. First Note: All commands should be run in this folder: fabric/client.
  2. For installing extra packages: pacman -S yay
  3. For installing python's virtual environment: yay -S python-virtualenv
  4. For creating the virtual environment: virtualenv --python=/usr/bin/python3.11 --python=python3.11 ./
  5. For activating the environment: source ./bin/activate. Side Note For deactivate: deactivate
  6. For installing all the packages: pip install -r requirements.txt
  7. For seeing all the command options: ./fabric --help
  8. For setting up the openAI key: ./fabric --setup
  9. It's needs chatGPT-4 paid version: ./fabric -p extract_wisdom -t "Believe that life is worth living and your belief will help create the fact."

tasnuva1 avatar Feb 05 '24 05:02 tasnuva1