You've been using AI Wrong

NetworkChuck
28 May 202430:58

Summary

TLDRThe video introduces Fabric, an open-source AI tool designed to augment human capabilities by simplifying AI interaction. Creator Daniel Meer discusses reducing friction for users to leverage AI for problem-solving. Viewers learn to set up Fabric, use built-in 'patterns' for tasks like extracting insights from videos, and even create custom patterns. The tool's potential for personal and professional augmentation is highlighted, emphasizing its role in helping humans flourish by managing information overload and enhancing productivity.

Takeaways

  • 🤖 Fabric is an open-source AI tool designed to augment human capabilities by reducing the friction to use AI for problem-solving.
  • 🛠️ The primary goal of Fabric is to make AI more accessible and easier to use, with a focus on solving specific problems through 'patterns', which are curated sets of instructions for AI.
  • 🔍 Fabric allows users to extract insights and summaries from various forms of content, such as YouTube video transcripts, by using built-in tools and patterns like 'Extract Wisdom'.
  • 🌐 The tool is CLI (Command Line Interface) native, enabling users to interact with AI directly from the command line, which is beneficial for those proficient with terminal usage.
  • 💡 Fabric's 'patterns' are open-source and crowdsourced, meaning they are continuously improved by the community, and users can also create their own custom patterns.
  • 🔗 The tool can be integrated with local AI models or cloud-based APIs from providers like OpenAI, Anthropic, or others, requiring API keys for access.
  • 🌟 A unique feature of Fabric is the ability to 'stitch' patterns together, allowing for a sequence of AI processing steps to be executed in a pipeline.
  • 🔑 Users need to set up their API keys for various services within Fabric to utilize its full capabilities, including accessing local and remote AI models.
  • 📝 Fabric supports saving outputs directly to note-taking applications like Obsidian, enhancing the workflow for users who rely on a 'world of text' for information management.
  • 🌱 The philosophy behind Fabric is to aid in human flourishing by helping users identify, articulate, and pursue their purpose in life through AI augmentation.
  • 🚀 The tool is in active development with new features being added, such as the ability to save outputs to Obsidian and improvements in pattern creation and management.

Q & A

  • What is Fabric and what is its primary goal?

    -Fabric is an open-source AI tool created by Daniel Meer, designed to augment humans with AI capabilities. Its primary goal is to reduce friction in using AI to solve problems, making AI more accessible and easier to integrate into daily tasks.

  • How does Fabric help in reducing friction for using AI?

    -Fabric reduces friction by providing a command-line interface (CLI) that allows users to interact with AI through pre-defined 'patterns' or prompts. These patterns are designed to solve specific problems and can be easily integrated into existing workflows.

  • What is a 'pattern' in the context of Fabric?

    -In Fabric, a 'pattern' is a set of instructions or a way to get the AI to perform a specific task. It's essentially a prompt that has been carefully curated and crowdsourced to elicit the best response from an AI for a particular problem.

  • How does Fabric handle the use of AI models from different platforms?

    -Fabric is compatible with various AI models from platforms like Open AI, Anthropic, and even local models with Alamaze. It sends text to the user's preferred AI model and processes the response according to the selected pattern.

  • What is the 'Extract Wisdom' pattern in Fabric and how is it used?

    -The 'Extract Wisdom' pattern is a feature within Fabric that processes text, such as a YouTube transcript, to extract key insights, quotes, and ideas. It's designed to quickly provide users with the essential takeaways from lengthy content.

  • How does Fabric allow users to create their own patterns?

    -Fabric enables users to create custom patterns by modifying existing ones or starting from scratch. Users can save their custom patterns in a local directory and integrate them into Fabric for use in their workflows.

  • What is the significance of the 'World of Text' concept mentioned in the script?

    -The 'World of Text' concept refers to the practice of capturing all information in text format, making it easily manipulable and accessible by AI tools. This approach allows for better organization and retrieval of information, as well as enhanced AI integration.

  • How does Fabric facilitate the integration of AI into programming and data handling?

    -Fabric allows users to incorporate AI capabilities directly into their scripts or programs. For example, it can process JSON data from an API or interact with local AI models to perform tasks, reducing the need for complex API interactions.

  • What is Twin Gate and how does it relate to Fabric?

    -Twin Gate is a remote access solution that allows users to connect to their home or office servers from anywhere. It's mentioned in the context of accessing a local AI server for Fabric when the user is away from their main setup.

  • How can Fabric be used to enhance personal productivity and knowledge acquisition?

    -Fabric can be used to summarize and analyze content, filter out what is worth in-depth attention, and even record and transcribe conversations for later review. This helps in efficiently managing the consumption of information and enhancing personal productivity.

  • What is the potential impact of Fabric on the way humans interact with and consume content?

    -Fabric has the potential to significantly change content consumption by enabling users to quickly extract valuable insights from vast amounts of information. It promotes a more efficient and focused approach to learning and staying informed.

Outlines

00:00

🤖 Discovering Fabric: The AI Tool for Human Augmentation

The speaker introduces Fabric, an open-source AI tool created by Daniel Meer, designed to augment humans with AI capabilities. The focus is on reducing friction for utilizing AI to solve problems. The speaker shares their daily use of Fabric and previews a demonstration of setting it up and using it to access a local AI server. The tool's ability to extract wisdom from a lengthy YouTube video is highlighted, showcasing its efficiency. Fabric operates by sending text to AI models and uses 'Extract Wisdom', a pattern or set of prompts, to guide AI responses. The concept of patterns is discussed as an open-source, crowdsourced method of refining AI prompts to solve specific problems effectively.

05:01

🔧 Setting Up Fabric and Embracing the World of Text

This section provides a step-by-step guide on setting up Fabric on various operating systems, including Linux, Mac, and Windows via WSL. The process involves cloning the Fabric project from GitHub, installing PIP x, and using it to install Fabric. The setup includes updating system repositories and ensuring path variables are correctly set. The speaker also introduces the concept of a 'World of Text', emphasizing the importance of capturing and manipulating text for AI processing. The video also mentions the need for API keys from Open AI, Anthropic, and YouTube to utilize Fabric's full capabilities, acknowledging that while Fabric is a framework, it relies on external AI services which may incur costs.

10:04

🌐 Accessing Local AI Models and Remote Servers with Fabric

The speaker discusses the capability of Fabric to work with local large language models (LLMs) and how it can be used to summarize content from sources like YouTube videos. They demonstrate using Fabric with a local model called LAMA and show how to switch between different models. The integration with Twin Gate, a remote access solution, is highlighted, allowing the user to connect to a remote AI server from anywhere. The setup for Twin Gate is briefly explained, showcasing its ease of use and the ability to control access to specific resources.

15:04

📚 Advanced Fabric Features: Stitching, Context, and Custom Patterns

Advanced features of Fabric are explored, such as stitching, which allows combining multiple patterns to perform complex tasks. The speaker demonstrates summarizing an article and then using the summary to generate an essay. They also discuss the ability to analyze claims and rate the quality of content. The concept of context in Fabric is introduced, which helps define the user's goals and intentions for using AI. Additionally, the process of creating custom patterns in Fabric is outlined, emphasizing the user's ability to solve specific problems by crafting and iterating on their own patterns.

20:05

💡 The Philosophy Behind Fabric: Augmenting Human Intelligence

The underlying philosophy of Fabric is discussed, focusing on its aim to augment human intelligence rather than replace it. Daniel Mesler's background as a hacker and his decision to go independent upon the release of GPT-4 are shared. The speaker talks about the importance of processing and thinking in personal growth and how Fabric can be used to filter and prioritize content consumption. The tool is positioned as a means to help users determine which content is worth their time and attention, emulating the process of manual note-taking to enhance understanding and retention.

25:06

🔗 Integrating Fabric with Obsidian: Saving AI Insights

The final paragraph covers the integration of Fabric with Obsidian, a note-taking application. The speaker demonstrates how to save the output from Fabric directly into Obsidian, creating a new note. This feature is particularly appealing for users who maintain a 'world of text' and wish to incorporate AI-generated insights into their笔记 system seamlessly. The process involves setting the correct environment variables to ensure Fabric knows where to save the new markdown files in the Obsidian directory structure.

Mindmap

Keywords

💡AI

AI, or Artificial Intelligence, refers to the simulation of human intelligence in machines that are programmed to think like humans and mimic their actions. In the context of the video, AI is central to the theme as it discusses the use of AI to augment human capabilities through the Fabric tool. The script mentions various AI models from companies like Open AI and Anthropic, illustrating the integration of AI into daily tasks to enhance productivity and knowledge extraction.

💡Open Source

Open source denotes a philosophy of software development where the source code is made available to the public, allowing anyone to view, use, modify, and distribute the software. In the video, the Fabric tool is described as open source, emphasizing its collaborative nature where the community can contribute to its development and improvement, as well as use it without restriction.

💡Fabric

Fabric is an open-source AI tool introduced in the video with the goal of augmenting humans with AI capabilities. It is designed to reduce friction in using AI to solve problems, making it more accessible and integrated into daily workflows. The script discusses how Fabric can be used to extract insights from videos, manage APIs, and even create custom patterns to solve specific problems.

💡Patterns

In the context of the video, patterns refer to a set of instructions or prompts engineered to guide AI in performing specific tasks. They are the 'secret sauce' behind Fabric, curated to solve particular problems effectively. The script highlights that these patterns are open source and crowdsourced, allowing for continuous improvement by the community.

💡Command Line Interface (CLI)

CLI is a user interface for interacting with computers where users input commands in the form of lines of text. The video emphasizes the CLI-native aspect of Fabric, which allows users to perform AI-related tasks directly from the command line, streamlining the process and making it more efficient. This is particularly appealing to users who prefer a direct and scriptable approach to problem-solving.

💡API Key

An API key is a unique code provided to users when they register for a service that requires authentication to access an API (Application Programming Interface). In the script, it is mentioned that Fabric requires API keys for services like Open AI, Anthropic, and YouTube to function, which connects the user's Fabric setup with these external services.

💡Transcription

Transcription is the process of converting spoken language into written form. The video script provides an example of using Fabric to transcribe a YouTube video and then extract valuable insights from it. This demonstrates the practical application of Fabric in processing and analyzing multimedia content.

💡Crowdsourcing

Crowdsourcing is a process that involves outsourcing tasks to a large, undefined group of people, typically via the internet. In the video, the development of Fabric's patterns is described as crowdsourced, meaning that the community contributes to their creation and refinement, leading to a more robust and diverse set of solutions.

💡Local AI Models

Local AI models refer to AI systems that run on the user's own hardware, as opposed to cloud-based services. The script mentions the option to use local models with Fabric, such as LAMA, which allows for processing data on a personal server, providing more control and potentially enhancing privacy.

💡Remote Access

Remote access allows users to connect to and control systems from different locations. The video discusses using Twin Gate for remote access to a local AI server, enabling the user to interact with their AI models even when they are not physically present near the server. This is particularly useful for maintaining productivity while working from various locations.

💡Human Augmentation

Human augmentation is the concept of enhancing human capabilities through technology. The video's main theme revolves around using Fabric to augment human intelligence and productivity. The tool is presented as a means to help users process information more effectively, make better decisions, and improve their overall ability to manage and utilize AI technologies.

Highlights

Introduction of Fabric, an open-source AI tool designed to augment humans with AI capabilities.

Fabric's purpose is to reduce friction for using AI to solve problems, as explained by its creator, Daniel Meer.

Demonstration of using Fabric to extract insights from a two-hour YouTube video transcript.

Explanation of 'Extract Wisdom', a pattern within Fabric that prompts AI to think deeply and extract key information.

Fabric's use of open-source and crowdsourced patterns to improve AI interaction.

The concept of patterns in Fabric as a set of instructions to guide AI in performing specific tasks.

How Fabric allows users to create and customize their own AI interaction patterns.

Fabric's Command Line Interface (CLI) and its benefits for reducing friction in AI problem-solving.

Integration of Fabric with local AI models and servers for on-the-go AI assistance.

Sponsorship mention of Twin Gate, a remote access solution for Fabric users.

The 'World of Text' concept by Daniel Mesler, emphasizing the importance of text for AI manipulation and human interaction.

Fabric's setup process for various operating systems including Linux, Mac, and Windows.

Instructions for installing Fabric using PIP x and setting up the environment for first-time use.

The necessity of API keys for using cloud-based AI models within Fabric.

Introduction of local LLMs in Fabric for AI usage without external data sharing.

How to use Twin Gate for remote access to local AI servers from anywhere.

Advanced Fabric features like stitching patterns together for complex AI tasks.

The ability to create custom patterns in Fabric for personalized AI assistance.

Philosophy behind Fabric focusing on human flourishing and augmentation rather than replacement.

Discussion on the importance of using AI to filter and prioritize content consumption for efficiency.

How Fabric can be used to analyze and store personal conversations for later reflection.

Integration of Fabric with Obsidian, a note-taking application, for seamless AI-generated note creation.

Transcripts

play00:00

I found a new AI tool and I am obsessed.

play00:02

It's completely open source and I use it every day. It's called Fabric. Daniel,

play00:06

tell me what fabric is.

play00:07

So basically the goal is to augment humans with ai,

play00:11

so it's all about reducing that friction to be able to use AI for your.

play00:15

Problems. That's Daniel Meer,

play00:16

the creator of Fabric Reducing Friction so you can use AI to solve your

play00:20

problems. That's the real purpose of technology and ai,

play00:23

and that's what this Project Fabric is helping us do.

play00:25

I legit use this every day and I think you might too.

play00:28

So in this video we're going to break down what Fabric is and I'll show you how

play00:30

to set this up so you can start using it right now and later in this video I'll

play00:33

show you how I use Fabric to access my local AI server. Terry,

play00:37

wherever I go with a sponsor of this video, twin Gate,

play00:39

we'll talk more about them later.

play00:41

Okay? You want to see something absolutely crazy?

play00:43

Yes, Daniel, I do get you coffee ready? Let's do this.

play00:47

Now before we dive too deep,

play00:48

I want to give you a feel for what Using Fabric is kind of like,

play00:51

what's the use case? What would I use this for?

play00:53

This you're going to love watch this. Let's say I've got a YouTube video,

play00:55

this two hour interview that maybe I don't have time to watch,

play00:58

so I'll grab the link and on my command line I'll use the tool YT dash

play01:02

transcript and paste the link,

play01:04

and this is going to grab the transcript of that YouTube video. By the way,

play01:06

this is a tool that's built into fabric. That alone makes this thing amazing.

play01:10

Then I'll pipe that over into Fabric two hour YouTube video. Here we go.

play01:14

Within moments I'm told about David Bumble and everything we discuss in this

play01:19

video, the ideas, insights, quotes,

play01:22

like this one man who said that smart guy.

play01:24

So within a few moments I took a two hour YouTube interview and extracted all

play01:28

the wisdom and insights I need to know. That's crazy, right?

play01:30

So what's happening here? What is Fabric doing? Let's break that down.

play01:33

First we start off with some kind of text. In this case, a YouTube transcript.

play01:37

It really could be anything. And then Fabric will send this text, in this case,

play01:40

our YouTube transcripts off to your favorite ai.

play01:42

It could be models from open ai, anthropic or even local models with Alama,

play01:46

which again,

play01:46

I will show you how to access a local server from anywhere using to one gate

play01:49

here in a bit. Now looking at the command,

play01:51

it's not just sending the transcript by itself. Here you go, ai.

play01:54

It's using this thing called Extract Wisdom. What is that?

play01:56

This is the secret sauce behind fabric and something you should get pretty

play01:59

excited about. Daniel, tell us more about it.

play02:02

What I've done is take any piece of AI from any platform that is interesting and

play02:07

usually the language that I care about is actually prompts.

play02:10

So what we started doing is collecting all these prompts into this concept

play02:15

called patterns.

play02:17

A set of instructions or a way to get the AI to do what we want it to do. Now,

play02:20

this is not a new concept. Prompt engineering is a thing, but this,

play02:24

it's a bit different, different in two ways that I am a big fan of.

play02:27

They're open source and they're crowdsourced. I'll be the first to admit.

play02:30

That's kind of a weird concept for a prompt, but here's why it's cool. First,

play02:34

these prompts or patterns, we'll just call 'em patterns from now on,

play02:36

have been carefully curated, created, manipulated,

play02:39

added to do exactly what it's designed to do to solve a problem,

play02:43

a very specific problem,

play02:44

and it's everyone including maybe you that helps create these prompts to make

play02:48

them better. Now, let's take a look at this one in particular. I love this one,

play02:51

extract wisdom. You'll really get a feel for what I'm talking about here.

play02:54

And this is the other cool part about this.

play02:56

It's open source so you can actually see this system prompt.

play02:59

Normally when you're interacting with GPTs,

play03:01

you can't see the actual prompt being sent to the AI here,

play03:04

we're controlling that. We're part of that and I want to show you this one part.

play03:07

I think this will illustrate what I'm talking about.

play03:08

Look at how this prompt talks to the ai. Take a step back, think step by step,

play03:13

think deeply. It kind of sounds like he's talking to this AI like a human,

play03:18

and that's exactly the case. Even Daniel said.

play03:21

You're basically telling it to act like a human.

play03:22

We don't know why it works,

play03:24

but just talking to these AI like they're humans elicits a better response,

play03:29

better results. Kind of scary Do with that what you will,

play03:32

but I point that out to say that these prompts have been tested time and time

play03:36

again added to similar to what you would see with open source code,

play03:39

and this is just one pattern. Look over here on the side,

play03:41

look at all of these that have been created and you don't have to stop there.

play03:44

You can create your own, which I've done that and oh my gosh, that's the secret.

play03:49

It's so amazing. But hold on,

play03:50

you might be like me and think this kind of seems just like fancy prompts.

play03:54

What is this thing actually doing that I can't just do with chat?

play03:57

GBTI want to revisit this idea Fabric is all about reducing friction to have

play04:02

AI help you solve problems.

play04:03

And one of the areas of friction I didn't even realize I had was the fact that I

play04:07

had to keep going out to chat GBT, open up a web interface,

play04:10

load up maybe a custom GBT or start having a conversation and it didn't feel

play04:14

like a lot of time, but that is time it gets in the way fabric,

play04:18

and this is one of the reasons I fell in love with it is CLI native.

play04:21

You do everything here in the CLI, which I get may or may not excite you,

play04:25

but you're not limited to that. Daniel Meer touches more on that.

play04:28

What I'm trying to do is make the on-ramp to using these things as easy as

play04:32

possible. So I want to be able to use them via voice.

play04:34

I want to be able to use them via command line via a gooey app.

play04:38

I want to be able to just access them as quickly as possible.

play04:41

So that's the main thrust of this project is to collect

play04:45

problems, collect the solutions in the form of these patterns,

play04:49

and then to have as many on-ramps onto them as well.

play04:51

Now I'll talk more about why I love that it's here in the command line,

play04:54

but it's more than just how you interact with it.

play04:56

Think about how you might use this to build programs instead of going through

play04:58

the pain of interfacing with AI APIs.

play05:00

So that's kind of hard to say actually it wasn't. Anyways,

play05:05

you can just use fabric. Now check this out.

play05:07

I want to show you something I did actually yesterday.

play05:09

I'm trying to build my cardiovascular health.

play05:11

So I started running and rowing and I tracked that with the app called Strava,

play05:14

which gets all sorts of amazing data.

play05:16

So I wrote a Python script to interact with their API to pull down all my data

play05:21

and it looks like this, a bunch of messy JSON,

play05:23

but I created a pattern called Workout summary and it takes care of the JSON for

play05:27

me or I can just bake fabric right inside my Python script.

play05:31

And that's just a simple example. This thing is crazy.

play05:33

Now we're about to set this up, but I want to talk about one more thing.

play05:35

It's called a World of Text and it's a concept that I'm

play05:40

really adopting now, thank you to Daniel Mesler. Go ahead and tell him Daniel,

play05:44

about this world of text.

play05:45

20 Years ago I got into this guy named David Allen who basically said,

play05:48

never ever store anything in your brain. Immediately capture.

play05:53

What I do now is I capture a concept or a structure for an essay or something.

play05:57

I capture it immediately in a note and now that it's text and because I'm fairly

play06:02

proficient with Vim and the Terminal,

play06:05

my whole world is text and the ability to manipulate text and I have all my

play06:09

notes in text and when I record something that's actually sound,

play06:13

I immediately transcribe it, send it to Notion, and so it's also in text.

play06:18

So now I have this world of text that I could use and now I have this AI

play06:22

infrastructure that manipulates text using AI to get results that help us as

play06:27

humans.

play06:27

So it's about getting everything into a text format so it can be used anywhere

play06:31

by anything, especially ai.

play06:33

And notice when I run these commands like getting this YouTube transcript,

play06:36

it's outputting this in marked down format so it can play nice pretty much

play06:41

wherever it goes, especially my notes application obsidian.

play06:43

Now we'll touch more on the philosophy of why I think this is amazing and I'll

play06:46

show you a few more patterns I've been working with.

play06:48

But now let's get you set up. Let's get fabric on your computer right now.

play06:52

And by the way,

play06:52

if you want to see the full Daniel Meisler interview where we talk about a ton

play06:55

of other stuff from cybersecurity,

play06:57

AI scares to just bonding over coffee because we both love coffee.

play07:01

I'll have that full interview on Network Check Academy. Just check that out.

play07:04

Anyways, what do we need? Honestly, just a computer. Now, as I mentioned before,

play07:08

this is Command Line World and this is going to be a Linux-based or Unix-based

play07:12

system, but we're not leaving out anybody here. You got a Mac,

play07:15

it works great on Mac. In fact, Daniel Mesler, all he does is use Mac.

play07:19

He loves it. Linux, of course, if you use Linux is your main desktop,

play07:22

you'll have a good time. And then Windows, which is what I use WSL,

play07:25

the Windows subsystem for Linux, so it'll work everywhere.

play07:28

You have Linux and Linux is everywhere. What a time to be alive, right?

play07:32

Coffee break. For that coffee break, the setup and install is actually really,

play07:36

really fast.

play07:37

I'm going to set up a new machine here in WSL on my Windows machine.

play07:41

You don't have to do this unless you don't already have one.

play07:43

And then best practice,

play07:44

just go ahead and do a pseudo a PT update to update your repos and go ahead and

play07:48

run a pseudo a PT upgrade if you haven't already. Now on Mac,

play07:51

you don't have to do that,

play07:52

just make sure you have your system updates and you'll be golden.

play07:55

Now let's install Fabric, Mac, windows, Linux.

play07:57

We're all following along right now.

play07:58

First we'll just copy and paste this command cloning the Fabric project from Git

play08:03

Hub. If we type in ls, there's the fabric project right there.

play08:06

We'll go ahead and jump in there, CD fabric. And then to install everything,

play08:09

we'll use a tool called PIP x, but we'll have to install PIP X first.

play08:13

Now on Mac and Windows with WSL, we'll do a pseudo a PT install Pip x.

play08:17

If you're on Mac, you'll want to use a tool called Brew.

play08:20

Brew is an amazing utility and I think Package Manager that enables you to

play08:24

install a ton of things and you should have it on your Mac.

play08:26

So install brew first if you don't already have it.

play08:29

And then with the Command Brew, say Brew, install PIP x. Again,

play08:34

that's Mac only. I'll go ahead and install PIP X. Yep,

play08:37

and now we'll install Fabric with pip x. Simply type in pip.

play08:40

I've been sing PIP XA lot, it's making me feel weird. Anyways,

play08:42

pip x install dot, that should be it. Ready, set,

play08:47

go and done. We have all these tools installed.

play08:50

I do have a note from me saying that my path variables aren't correct.

play08:53

I'll just run this command real quick. You might have to do the same thing.

play08:56

Pit backs Ensure Path done, and now Fabric is almost ready to go.

play09:00

We'll just need to run one command fabric, dash dash setup. Oh wait,

play09:05

I got to refresh my terminal. If you're in Linux,

play09:07

you'll do source tilda or library sign, whatever you want to call that.

play09:11

Bash rc. If you're on Mac wll, be Z-S-H-R-C.

play09:16

If you're using ZSH as your default.

play09:17

And now we should be able to do fabric dash dash setup.

play09:20

And what this will do is ask you for a couple things. Your open AI,

play09:23

API key if you want to use G PT four and all those other models and also your

play09:27

Anthropic API key to use the cloud models. Now what that means is yes,

play09:31

you will need an API key. So if you don't already have one, go get one.

play09:35

I'll put a link down below showing you how to do that.

play09:37

I'm going to grab mine real quick and I'll paste that there.

play09:39

And then my Claude API key, which is the Anthropic API key.

play09:42

And then one more thing, it's going to want your YouTube API key.

play09:45

So when you are going out to YouTube to pull those transcripts from videos,

play09:48

you can even do comments. It will use a Google, YouTube, API key.

play09:51

Those are free to set up. Again,

play09:52

I'll have a link below to show you how to do that.

play09:54

And once you've added your API keys, that's it. Now you may be wondering, Chuck,

play09:58

why do we have to do that? Well, remember,

play10:00

fabric is just a framework in itself is not ai.

play10:03

It will use whatever favorite AI you have.

play10:06

Now that does mean that if you're using Open AI or anthropic,

play10:09

you're going to have to pay for that usage and it's a pay as you go thing.

play10:13

Put your credit card in there.

play10:14

Most of the time it does end up being cheaper than just paying for Chad GPT the

play10:18

Pro, but just keep that in mind. Now,

play10:20

if you don't want to pay anything and you don't want to give any data to anybody

play10:23

ever, there's local LLMs as well, which Fabric just added. Thank you, Daniel.

play10:27

So if you have Alama installed or llama installed on a remote server like I do

play10:31

on Terry, we can type in fabric and do dash dash list models.

play10:35

And right here are the available local models. I'll grab a YouTube video.

play10:39

This one by Peter McKinnon, I've been meaning to watch.

play10:41

I'll just grab the summary and then with Fabric,

play10:43

I'll do a dash dash model to specify a certain model.

play10:46

In my case it'll be LAMA three colon latest.

play10:50

Then I'll do dash SP to specify the pattern, which will be Extract Wisdom.

play10:56

And just like that, I'm using a local model.

play10:58

Now if I want to use a bigger model like Llama three seven db,

play11:02

that's not going to run on my local computer, but it will run on Terry.

play11:05

So to connect to a remote AI server,

play11:07

specify remote llama server,

play11:11

put the IP address in of your remote server. This is Terry.

play11:15

Specify the model Llama three 70 B,

play11:19

and then your pattern. Now I'm not sure what the whole Alex and Jordan thing,

play11:23

but that's how you do it. And when I'm away from Terry,

play11:25

when I'm out of the office remote somewhere, I still want to talk to him.

play11:28

And here's how I do it. When I'm working remote out and about as I normally do,

play11:32

I got to make sure I can run my fabric commands and access Terry.

play11:35

Wherever I am right now, it's not going to work. I'm getting nothing.

play11:39

That's where Twin Gate comes in.

play11:40

My favorite way to remotely access my stuff back at home, my office, my studio,

play11:44

everything. Setting up Twin Gate is pretty stinking easy,

play11:47

easier than standing in a field. What was that?

play11:49

All you have to do is set up a free twin gate account, create a network,

play11:52

and then deploy connector.

play11:53

It could be a Docker container on a Raspberry Pi in your house or running on

play11:57

your Sonology nas like I do at my home.

play11:58

And within a few minutes you get remote access to everything you want to like

play12:02

now lighting strikes, nah, I'm good. Wildlife maybe. What was that?

play12:06

But seriously, wherever I go, wherever I am, other hidden holes,

play12:09

I can remotely access my stuff back at home, including Terry.

play12:12

My AI server Twin Gate is special because they use all the latest and greatest

play12:16

technologies to make sure your connection is fast,

play12:18

including quick one of the new internet protocols that is blazingly fast.

play12:22

And with Twin Gate, you can control exactly what your people have access to.

play12:25

All my employees, I don't want you using Terry when you're away from the office,

play12:28

but you can log into the server and work. I'll allow that.

play12:31

So if you want to use my remote access solution, check it out, link below.

play12:34

I've been using it for over a year and it's my favorite way to remotely access

play12:37

everything. I even did it when I was in Japan too. Worked great. Alright,

play12:40

I'm getting out of here.

play12:42

Now let's get a bit more advanced and break down some fabric stuff first.

play12:46

You don't have to just give it stuff like copy and paste from a YouTube

play12:49

transcript or something to work with fabric.

play12:51

You could ask a basic question like watch this. I can echo saying,

play12:55

give me a list of all ice creams flavors and what year

play13:00

they originated. Actually, I'm pretty curious about that.

play13:03

I'll pipe that into fabric and we'll break this down a bit.

play13:06

So far we've been using the command or the switch.

play13:09

Sp that's a combined switch. Let's split 'em up so we can talk about it.

play13:13

So dash s and dash P dash s is for stream. And when we use that switch,

play13:17

we're telling it to go ahead and output whatever the AI says as it's saying it

play13:22

stream it to us. PP is for specifying the pattern.

play13:25

So right after you put the pattern you want to use,

play13:28

and we'll just say the pattern ai, which is a specific pattern,

play13:31

just allowing us to talk with AI just told me, no,

play13:36

you can't do the AI exceeds practical limits. You exceed practical limits.

play13:40

I'm just kidding. Let's try something more easy. There we go. Now we're talking.

play13:44

And by the way, when I use fabric about specifying a model,

play13:46

it defaults to using open AI and GPT-4 Turbo. If you want to change that,

play13:51

especially if you want to stick to local models,

play13:52

we can do fabric dash list models to see all our models and then do fabric,

play13:57

dash, dash change default model and then specify the model.

play14:02

Now we can also do the command fabric, dash dash list,

play14:06

just the list and it'll list all the available patterns we have right now.

play14:10

Again, so many things you can play with. Now I want to show you something crazy.

play14:13

As Daniel mentioned before, the theme behind fabric is very well, fabric E,

play14:18

so you got fabric, then you've got patterns. If you want to run a server,

play14:23

which does some fun stuff, I'm not going to cover right now, it's called a mill.

play14:26

But you can also do what's called stitching,

play14:29

which allows you to stitch patterns together. So let's try this.

play14:33

I've got this article, this long read about that YouTuber poppy,

play14:37

do you remember her? She's still around. She's crazy. It's super long read.

play14:41

I'm just going to copy and paste everything and put this into fabric PB paste

play14:46

fabric. And by the way, I know you're probably wondering, Chuck,

play14:48

how are you doing that? What is this PB paste thing?

play14:51

This is built in by default into Max. So if you have a Mac,

play14:55

just enjoy it on WSL and Linux. It's harder to do.

play14:59

I'll show you how to do that here in a minute. And if I run out of time,

play15:02

I'll show you somewhere else. Anyways,

play15:03

we'll paste that in there and I'll use the prompt, summarize.

play15:06

So summarize the article,

play15:08

and then I'll pipe that result into another fabric command or stitch

play15:12

it. And this pattern will be right essay.

play15:16

Actually I'll do a dash s so we can see that streamed in and go. Now fabric,

play15:20

while it's doing this thing, just think about what it's doing right now.

play15:23

First it's going to summarize that entire article.

play15:25

Then it's going to kick its summary over to the right essay pattern.

play15:30

That's powerful. This is crazy. Writing an essay.

play15:33

We can also do a thing where we analyze the claims of the article.

play15:36

This is not stitching, I just want to see what happens. Analyze claims,

play15:41

I mean, this is just cool. Again, these prompts, crowdsourced, open sourced,

play15:45

they've been meddled with and messed with to make 'em perfect and they're not

play15:49

perfect. I mean they're still going to be worked on improved.

play15:52

You can also do one called label and rate giving it a quality score saying

play15:57

it's B tier, consume when time allows.

play15:59

This is another superpower of fabric and the idea and the mentality is bringing

play16:03

two AI and how you might approach your life.

play16:07

We'll talk more about that here in a minute. I don't want to dive too deep,

play16:09

but now I want to show you how you can create your own patterns because right

play16:13

now we're using what's built in default just there.

play16:16

So I'll show you how you can approach writing a pattern and then getting it into

play16:19

fabric so you can use it. Keeping in mind that when you write a pattern,

play16:22

it remains local to you. It doesn't get uploaded to the fabric repository,

play16:25

and none of that's happening unless you want to submit it. That's up to you.

play16:29

Everything's still private. But when I first started trying to write patterns,

play16:32

I didn't really know how to do it.

play16:33

So I would just go and pick one of my favorite ones, extract wisdom,

play16:37

and just kind of modify it, which is absolutely a great way to do it.

play16:40

But then I found this, there's a pattern. There's a pattern for everything. See,

play16:43

a pattern means solving a problem.

play16:46

There's a pattern called Improve Prompt that basically does everything for you.

play16:50

It's crazy. So check this out, we'll do it real quick.

play16:53

We'll echo something and say you are,

play16:55

we'll just try to write it on prompt real quick, but messy, dirty.

play16:58

And by the way, this is a real example of how I wanted to,

play17:01

and I talked with Daniel about this, how I wanted to digest sermons better.

play17:05

I go to church every Sunday.

play17:06

Sometimes I'm serving in the nursery taking care of babies,

play17:09

and I miss the sermon. Now,

play17:10

I rarely have time to go back and watch the sermon throughout the week.

play17:12

So if I could just somehow digest it like this, that'd be amazing.

play17:16

But I wanted to create a pattern that would look for specific things,

play17:19

unique to a sermon. So let's try this. Alright,

play17:22

so I'll pipe that out to fabric and I'll do the pattern and prove prompt.

play17:27

That's crazy, right? This is so cool. So this is just live off the cuff.

play17:32

I'm going to take this, copy it.

play17:33

So now I've got my instruction and I'm going to go to the place where our

play17:37

patterns live. Here's where they live. We'll go to cd.

play17:40

We'll do dot config slash fabric type in Ls.

play17:44

Here we can see we have a directory for patterns.

play17:47

That's the patterns that fabric we'll use.

play17:49

And then we have a directory called My Patterns, which is what I created.

play17:52

So go ahead and make that for yourself right now. We'll do a mic directory,

play17:55

M-K-D-I-R, let's call it my super Awesome Patterns.

play18:00

I'll jump in there. And then to create our new pattern,

play18:02

we'll make a new directory. Call it Sermon Sensei.

play18:08

It's a has how spell Sensei? Nope. We'll CD in there.

play18:10

And we'll make a new file called System md. Do nano system md.

play18:15

Jump in there and I'll paste the contents of that pattern. Control X,

play18:19

Y enter to safe. So to summarize what we just did,

play18:21

we created a directory to how our custom patterns and inside that directory,

play18:26

we made a new directory creating a new pattern sermon sensei,

play18:30

and we created a file called System md,

play18:31

which is the system prompt to the actual contents of the pattern. Now,

play18:34

the reason we created our own super awesome special directory is that often

play18:38

patterns will be updated because again, this is open sourced,

play18:40

crowdsourced patterns are always being improved. And if they're in the repo,

play18:44

you'll want to update your patterns.

play18:45

So we might do this fabric dash update and that'll update your patterns,

play18:49

but it will overwrite anything that doesn't belong in there.

play18:52

So we're keeping our custom patterns inside my super awesome patterns.

play18:56

That way they're never deleted,

play18:57

but to make sure they can be used by fabric when we run our commands,

play19:00

we do need to copy everything into the Patterns folder.

play19:04

So we'll do that real quick. We'll simply do copy or CP dash r,

play19:08

we'll specify our directory,

play19:09

our home directory symbol tilda slash config slash fabric slash your

play19:14

directory. So mine is super awesome, that super awesome patterns.

play19:17

We'll do the asterisk to make sure all the folders and stuff are copied just so

play19:21

into R patterns, directory config, fabric patterns, just like that.

play19:27

So now if we do fabric dash dash list to list our patterns,

play19:30

I should see sermon sensei right there.

play19:34

Notice I have another one called Sermon Wisdom, which I had previously created.

play19:36

Now let's test out Sermon sensei. I'm going to grab the sermon from my church,

play19:41

one of our recent ones. Do yt, grab that transcript, put the URL there,

play19:46

and then pipe that into fabric using my sermon sensei pattern I just

play19:51

created. Now this is pretty cool and honestly I think it needs some work.

play19:54

So just like the open source patterns in the fabric repo,

play19:57

you can work on yours and keep iterating.

play20:00

So the one I really enjoy is the one I created Sermon Wisdom that I think does a

play20:04

better job and that really does demonstrate the power of a really,

play20:07

really good prompt. I mean, I love how it pulls out quotes.

play20:10

Probably one of my favorite things,

play20:11

and that was killer is the references pulling out all the scripture or things

play20:14

that he mentioned in the sermon. I love that. Now looking back at Fabric,

play20:18

if we type in fabric help,

play20:20

we can see there are options we haven't mentioned yet.

play20:22

We're not going to go over all of them,

play20:23

but one thing I do want to touch on is the idea of a context.

play20:27

I'll let Daniel talk about that real quick.

play20:29

This is the latest thing that I've been working on under Config Fabric.

play20:34

We now have a context file.

play20:37

My context file is about increasing human flourishing by

play20:42

helping people identify, articulate, and pursue their purpose in life.

play20:45

Helping people transition to Human 3.0 to be our best selves.

play20:50

This is literally my soul that I'm translating it to text.

play20:54

I haven't done this yet, but I want to make a context for myself soon.

play20:56

Now I've got two more features.

play20:57

I want to show you the PV paste option for Linux users and the ability to save

play21:02

anything you create with Fabric two obsidian, my favorite notes application,

play21:06

what I use and what I've been obsessing over for a while now. Oh, it's so cool.

play21:09

I just found this. But before we get there,

play21:11

I want to talk more about the philosophy behind Fabric and why it's kind of

play21:15

captured my imagination and why I feel like it's more than just a fancy

play21:19

prompter. Now, to understand that,

play21:21

I think we need to know a bit more about Daniel Mesler. Daniel Meer is a hacker.

play21:24

That's his background. That's what he did and still does.

play21:27

And the reason I created it is because I basically went independent

play21:32

as of the end of 22. As soon as the ai,

play21:36

as soon as GPT-4 launched, I was working at Robinhood at the time.

play21:40

I built a VM program over there.

play21:43

And before that I was at Apple and a bunch of other places,

play21:47

and I had been in AI for five, six years.

play21:50

But when I saw g BT four happen, I was like, okay, I'm out.

play21:54

I basically got out and said, I need to do this full time.

play21:57

So I started collecting all this different AI stuff as I'm sure everyone has

play22:00

seen. And what I found after a couple of months is like, okay,

play22:04

I've got a million different prompts. Now what do I actually do with them?

play22:07

What I started doing is collecting them into an infrastructure that I could use

play22:11

personally, and this is a little bit before Fabric,

play22:14

but it became the content for Fabric.

play22:17

And essentially what it turns into is these patterns here.

play22:20

And you can tell just by using these patterns that this is the result of many,

play22:24

many iterations. It does things so well.

play22:27

And if you've been using AI for a while, again,

play22:30

you know what it feels like to use a really good prompt and had your results be

play22:34

so clean and almost exactly what you were looking for or even more than what you

play22:39

expected. And that's so fun.

play22:40

Now I want to get back to the idea of human flourishing. Again,

play22:43

that is the goal of the Fabric Project, and honestly, when you hear that,

play22:47

it kind of captures your imagination, right? I love, because for me,

play22:51

I dunno if you're like this, but the more AI advances,

play22:53

the more I get just a little bit more scared of where my place in the world

play22:57

might be. But when I hear about projects like Fabric,

play22:59

where it's not about replacing humans,

play23:01

but about augmenting humans to help us become better,

play23:04

to help us think better and to help us consume more content.

play23:07

And that's one of the main things that Daniel uses this tool for.

play23:10

One of the main reasons he created this tool is that there's so much content

play23:14

being produced all the time from YouTube videos to podcasts to articles.

play23:18

Just staying relevant in your space and your niche takes a tremendous amount of

play23:22

time. Time. You don't have to consume things.

play23:25

A big part of it is I am using it to determine what I should go

play23:29

watch regularly. In fact, I'm actually building a product around that called,

play23:34

but I won't say what it's called, but I'm building a product around that.

play23:36

So just because I need it in my life, essentially,

play23:41

I'm using it as a filter to determine what I should go watch and then go watch

play23:45

it fully. And oftentimes I take manual notes,

play23:48

but I watch or listen to it in its entirety,

play23:52

and then I go and take notes on it and it spawns thoughts.

play23:55

So I'm not stepping away and disengaging,

play23:58

I'm still reading massive number of books,

play24:02

I'm still watching the videos, I'm still reading the essays.

play24:06

What this is helping me do is just filter out or filter up or

play24:11

raise attention to the particular stuff that I want to watch.

play24:15

So a big way he uses fabric is to filter out what is good,

play24:19

what deserves a long watch or what just needs to be summarized and

play24:24

quickly digest it.

play24:25

And it's so cool because the way he created fabric in a lot of these prompts is

play24:29

he designed these prompts,

play24:30

these patterns in a way that is meant to mimic the way he would approach

play24:34

something,

play24:34

the way he would watch a video and take notes the way he would listen to a

play24:38

podcast and take notes. It's kind of crazy.

play24:40

My very first thing that I made for Fabric is the ability to emulate as if I

play24:45

took slow notes on a piece of content by hand.

play24:49

And that's what this emulates.

play24:50

Now a little story time. The past six months,

play24:52

I've been on a journey of being very particular,

play24:55

very intentional with what I consume, how I spend my time,

play24:59

and writing down as many things as I can, taking good notes, processing things.

play25:03

And that led me to my question I asked Daniel,

play25:05

and that's if we start using things like fabric,

play25:08

AI tools to do the processing and thinking for us,

play25:12

do we lose that value? So the curmudgeon in me, the old man in me,

play25:16

don't do the AI stuff.

play25:17

It's going to keep you from becoming a deep thinker and learning how to really

play25:20

analyze things. But here's what Daniel said about this.

play25:23

Yeah,

play25:23

I think the way to use it is to use the

play25:28

context stuff

play25:31

that we're starting to build now that's already in the project and basically

play25:35

define what you're trying to do. You can define inside of the context,

play25:39

I need to learn this much about these topics,

play25:43

recommend to me the best courses to do that with.

play25:47

And then when you take a piece of content and it's overwhelming,

play25:50

you could put it through fabric and essentially distill it down.

play25:55

And importantly,

play25:56

it could tell you what not to distill down because there's so much advantage to

play26:03

going back to your earlier point,

play26:05

you don't want to take the weights out of the gym.

play26:07

So everything shouldn't be a summary.

play26:10

Sometimes you have to put the hard work in,

play26:12

but you can use it to tell you or advise you or recommend to you

play26:17

which things you should do slow and painful and difficult because that's where

play26:21

you get the most muscle growth.

play26:23

Don't take the weights out of the gym.

play26:25

So he'll use fabric to help him determine what should be slowly watched and

play26:28

processed. We saw that earlier with the label and rate pattern.

play26:32

It tells you like, oh yeah, you got to watch this right now,

play26:33

or you could wait on that. Again,

play26:36

it's not about replacing humans replacing you, it's about making you better,

play26:40

about taking your current capabilities and using AI to increase that at a

play26:45

faster rate than you could before.

play26:47

It's about identifying a problem that you might have and then creating a pattern

play26:52

to help you solve that problem.

play26:54

And all the patterns you're seeing there that are built into fabric are a result

play26:57

of like, I've got this problem. Here's a pattern that can fix it.

play27:00

And you can do the same thing for your life.

play27:02

And we talked a bit about a feedback loop to where I may have fabric,

play27:06

I'll create a pattern for this that I'll look over my journal entries throughout

play27:10

the week and then it'll tell me,

play27:13

maybe you didn't read enough that week and that's why you're feeling sad. Or,

play27:16

Hey, you're feeling fantastic because you ran four times this week.

play27:20

Keep doing that.

play27:21

It's that kind of augmentation that I'm really excited about and that's where I

play27:24

see myself growing the fabric.

play27:26

And I literally use this all the time for so many things.

play27:28

Me and Daniel also talked about how we both started recording conversations.

play27:32

Like any conversation we have with a sibling, a friend, a spouse,

play27:37

record it, then transcribe it with Whisper ai, which is you can use it locally,

play27:42

it's free, and then pipe that into fabric.

play27:45

I actually started doing this recently with, we have a weekly bible study.

play27:49

We have a core group of people where we meet and we talk about our lives and

play27:52

things and tell funny stories and talk about what we were learning and going

play27:55

through.

play27:55

So I recorded that and I created a pattern that would extract the things I might

play27:59

care about from those moments. Check this out. It's so cool.

play28:02

So I have the recording transcribed.

play28:04

I'll cat that and pipe it into fabric using my GC analyzer.

play28:08

That's what we call our communities gospel communities.

play28:11

And I won't show you everything in this because it's very personal,

play28:13

but I want to show you how cool this is. And honestly,

play28:15

this whole fabric project is making me rethink about the role of AI in

play28:20

my life. It's here. Like it or not, what are you going to use it for?

play28:24

How can you use it to help make you better?

play28:26

And that was the first video I made ever about ai. Chad GPT came out,

play28:30

I was terrified, but then after processing it a bit more, I'm like,

play28:33

you know what? This is going to make us better. It's about us.

play28:36

It's about humans flourishing. There was a funny moment about,

play28:41

it was just a funny story about sleepwalking and it found that, that's so cool.

play28:46

I just did this one. Look at the funny moments here. Yeah,

play28:49

we talk about weird stuff, but I want to remember that stuff.

play28:52

I want to be able to go back to that search, have that in my second brain.

play28:56

That's a video coming soon. And again,

play28:58

I talked with Daniel about a lot more stuff including coffee.

play29:00

So if you want to see that entire talk, that entire conversation,

play29:02

you can check the link below to Network Check Academy, which is my new project,

play29:06

my baby, where I'm creating it. Courses to help you become awesome in it.

play29:10

I would love for you to join. We have an amazing community. Go check it out.

play29:13

Link below. Now, the two more things I wanted to show you First,

play29:16

this PB paste thing. Actually, you know what,

play29:18

I'm not going to show you right here. I'm going to make a video about it,

play29:20

and by the time you watch this video, that one should already be up.

play29:23

So go here somewhere, it's going to be awesome. Just go and jump there.

play29:27

But now to the Obsidian Save thing, this is so awesome.

play29:30

So let's take that same discussion here from my GC

play29:35

analyzer. I can save that directly to obsidian.

play29:38

There's a command that is baked into fabric called Save just like this.

play29:42

And what that will do is save the contents of whatever you're doing in fabric to

play29:46

a note in obsidian, creating a new note. Now to make that happen,

play29:49

we first have to tell fabric where our obsidian lives in our operating

play29:54

system. So if you're new to obsidian,

play29:55

obsidian is all about just text-based documents. Again, world of text.

play29:59

All it is just a bunch of markdown files and it's somewhere on my hard drive to

play30:03

tell fabric where that is. I'll just edit an environment file. So I'll go nano,

play30:10

jump it to my config folder, fabric folder,

play30:13

and there should be a file NV for environment variables.

play30:17

You can see that's also where our API keys are stored.

play30:20

And here's my path to the directory.

play30:22

I want to store new mark dime files created by fabric. With that in place,

play30:27

I want to take away the S option. I don't want to stream it.

play30:29

I'm just going to save this to a file.

play30:30

So I'll pipe it out to the save command and then I'll just name it and go.

play30:34

And then if I jump into my obsidian,

play30:36

which we're going to shield most of this from you,

play30:38

if I go to my specific folder, there it is. Auto Magically. That's killer.

play30:43

Again, it's all about removing friction. This is so amazing. I love this stuff.

play30:47

Lemme know if you like this too.

play30:48

Lemme know if you want me to make more videos like this about new AI tools or

play30:52

just exploring how we can improve ourselves and make ourselves better with the

play30:55

help of ai. I don't know.

Rate This

5.0 / 5 (0 votes)

相关标签
AI AugmentationOpen SourceFabric ToolProblem-SolvingAI PatternsPrompt EngineeringContent ConsumptionHuman FlourishingAI PhilosophyNote-TakingTranscription
您是否需要英文摘要?