###### NAVIGATE - BACK : [[FABRIC]] ---- >[!info]- [[ENIGMAS]] ---- #### AENIGMAS Fabric gui https://youtu.be/aEdS8ocmOZs Figure out how to get it: >[!quote]- NARU ><iframe allowfullscreen src="https://www.youtube.com/embed/aEdS8ocmOZs" width="100%" height="555" ></iframe> ------ API #wip DONT HAVE THIS IN FUTURE BUT FOR NOW NEED THIS ---- WHOLE WEB A NEW POSSIBLITIES WITH THIS WOW ------ ## INSTALLATION FOLLOW HIS INSTRUCTIONS REQUIREMENTS: pipx MACOS ``` brew install pipx ``` DOWNLOAD REPO ``` cd where/you/want/folder # Clone Fabric to your computer git clone https://github.com/danielmiessler/fabric.git ``` ``` cd fabric ``` ``` pipx install . ``` NEED TO INSTALL yt-transcript [separatly though it did this oh well] ----- https://www.youtube.com/watch?v=nTQIYWgn-lQ >[!quote]- NARU ><iframe allowfullscreen src="https://www.youtube.com/embed/nTQIYWgn-lQ" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe> ---- NETWORK CHUCK TAKE ON THIS https://www.youtube.com/watch?v=UbDyjIIGaxQ >[!quote]- NARU ><iframe allowfullscreen src="https://www.youtube.com/embed/UbDyjIIGaxQ" width="100%" height="555" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" ></iframe> ---- [[FABRIC ANSWER - FABRIC]] ### Fabric: A New AI Tool Overview #### Introduction to Fabric - **Creator**: Daniel Miessler - **Purpose**: To augment humans with AI, reducing friction in using AI for problem-solving. - **Usage**: Open-source tool used daily for enhancing productivity. #### How to Set Up and Use Fabric 1. **Initial Setup**: - **Create a Presentation Template**: - Add a rectangle sized to your presentation screen. - Helps in positioning objects and ensuring proper zoom. - Add navigation links in the bottom right corner for easy slide navigation. - Use the preview mode to render links properly. - In the markdown view, add `excalidraw-link-prefix: ""` to your front matter to remove default link icons. - **Organize Your Templates**: - Save templates in a dedicated folder. - Create a folder for each presentation, with each slide as a separate file. 2. **Using Fabric for YouTube Transcripts**: - **Extracting Transcripts**: - Use the `YT-transcript` command with the video link to get the transcript. - Example command: `yt-transcript <video_link>` - **Processing with Fabric**: - Pipe the transcript into Fabric to extract insights. - Example command: `yt-transcript <video_link> | fabric extract-wisdom` 3. **Deep Dive into Fabric's Core Functionality**: - **Extract Wisdom Pattern**: - Uses curated prompts to extract meaningful insights from text. - Open source and crowdsourced, allowing community contributions. - **Viewing and Editing Prompts**: - Fabric allows you to see and edit the system prompts sent to AI. 4. **Reducing Friction with AI**: - **Command Line Interface (CLI)**: - Fabric can be used entirely from the CLI for quick and efficient interactions. - Supports other interfaces like voice and GUI apps. 5. **Real-world Application: Integrating Fabric with Personal Data**: - **Example with Strava**: - Use a Python script to pull workout data from Strava. - Process the data with Fabric using a custom pattern for workout summaries. 6. **World of Text Concept**: - **Capturing Everything in Text**: - Convert all information to text for easy manipulation by AI. - Useful for organizing notes, transcripts, and other data. #### Step-by-Step Guide to Installing Fabric 1. **System Requirements**: - Works on Mac, Linux, and Windows (using WSL). - Ensure system updates and package managers (Brew for Mac, APT for Linux/WSL). 2. **Installation Process**: - **Clone the Fabric Project**: - Command: `git clone https://github.com/danielmiessler/fabric` - **Install PIPX**: - Mac and WSL: `sudo apt install pipx` - Mac (using Brew): `brew install pipx` - **Install Fabric with PIPX**: - Command: `pipx install .` (run inside the cloned Fabric directory) - **Set Up Environment Variables**: - Ensure your path variables are set correctly. - Command: `pipx ensurepath` - **Run Fabric Setup**: - Command: `fabric --setup` - Provide API keys for OpenAI, Anthropic, and YouTube. 3. **Using Local Models with Fabric**: - **List Available Models**: - Command: `fabric --list-models` - **Specify a Local Model**: - Example: `fabric --model llama:latest` - **Connect to a Remote AI Server**: - Command: `fabric --remote-llama-server <IP_address> --model llama:70B --pattern <pattern_name>` 4. **Connecting to Remote AI Servers with Fabric**: - **Using Twingate**: - Set up a free Twingate account. - Deploy a connector on your server (e.g., Docker container, NAS). - Ensure secure remote access to your AI server. #### Advanced Usage of Fabric 1. **Creating Custom Commands and Patterns**: - **Echo Commands**: - Use basic prompts to interact with Fabric. - Example: `echo "Give me a list of all ice cream flavors and what year they originated" | fabric --pattern ai` - **Stitching Patterns**: - Combine multiple Fabric commands for complex tasks. - Example: Summarizing an article and then writing an essay based on the summary. - Command: `pbpaste | fabric --pattern summarize | fabric --pattern write-essay` 2. **Managing and Updating Custom Patterns**: - **Creating a Custom Pattern**: - Navigate to the patterns directory: `cd ~/.config/fabric/patterns` - Create a new pattern directory: `mkdir <pattern_name>` - Create a system.md file with your pattern: `nano <pattern_name>/system.md` - **Updating Patterns**: - Use `fabric --update` to update built-in patterns. - Keep custom patterns in a separate directory to avoid overwriting. #### Practical Benefits and Philosophy Behind Fabric 1. **Content Filtering and Engagement**: - Use Fabric to filter out valuable content and prioritize what deserves full attention. - Example: Label and rate content for importance and engagement level. 2. **Balancing AI Assistance with Human Effort**: - **Selective Summarization**: - Decide what content should be summarized versus what should be fully engaged with. - Example: Use the label and rate pattern to decide what to watch or read in full. - **Human Flourishing**: - Using AI to enhance human capabilities rather than replace them. 3. **Personal Applications of Fabric**: - Record and transcribe conversations to extract meaningful insights. - Example: Weekly Bible study discussions recorded, transcribed, and analyzed with a custom pattern. 4. **Saving and Integrating Fabric Outputs with Obsidian**: - **Directly Saving to Obsidian**: - Command: `fabric <command> | fabric save <note_name>` - **Setting Up Environment Variables**: - Edit the environment file to include the path to your Obsidian vault. - Command: `nano ~/.config/fabric/env` - Add: `OBSIDIAN_VAULT_PATH=<path_to_vault>` #### Conclusion - **Fabric's Impact**: Enhances productivity by reducing friction in using AI for various tasks. - **Encouragement to Explore**: Users are encouraged to explore Fabric and create custom patterns to fit their specific needs. - **Call to Action**: Feedback and suggestions for more AI tool explorations and improvements are welcomed. -----