HomeVideos

Cerebras Just Killed Second Brains

Now Playing

Cerebras Just Killed Second Brains

Transcript

773 segments

0:00

So this is really interesting. This

0:01

company Sarah just built a knowledge

0:03

base that I think is not total

0:06

And that's hard for me to say because up

0:09

until now, virtually every instance of

0:12

knowledge bases or second brains or

0:14

whatever have just been total hot air.

0:17

This is a massive AI hardware company

0:19

that essentially creates super quick

0:21

inference chips and they're used by a

0:24

variety of major billion dollar

0:25

companies that you guys probably have

0:26

heard of. And at no point in this big

0:28

tutorial which they just wrote a big

0:30

blog post on did they show an obsidian

0:32

graph. At no point did they show a

0:35

floating 3D brain in a tube. Uh you know

0:38

instead what they showed is they showed

0:39

a very reliable and robust data

0:42

ingestion pipeline that allows virtually

0:44

anybody in their company to answer any

0:46

question that they have about the

0:48

business and about things that other

0:50

people have done in the business. What

0:51

they've done is they've fed in like

0:53

gigabytes of text and image data from

0:56

platforms like Slack. Every Slack

0:58

conversation that's ever occurred in the

1:00

organization. Um their wiki and

1:01

Confluence, all of their code repos and

1:04

GitHub, you know, their net list PRM

1:06

docs as well as custom databases.

1:08

They've just slashed or rather I should

1:10

say squashed all of this data into

1:12

embedding space which you can just think

1:14

of as concepts that an AI could query

1:17

over. So that if somebody said, "Hey,

1:18

what was that thing Paul was talking

1:20

about 3 days ago?" ago, it had something

1:21

to do with, you know, embeddings. It can

1:23

actually go in to the Slack without

1:25

having to, you know, query the API or

1:27

whatever and just always know what's

1:29

going on in the business. So, what I

1:31

want to do in this video that isn't

1:32

clear is I want to show you what this is

1:33

and then I actually want to build one

1:35

alongside you. I've already built one of

1:36

these for my own business and it's quite

1:38

useful already and that's just as a

1:40

small team. I can imagine how if you

1:42

have thousands of people in your

1:44

organization, stuff like this starts to

1:46

scale and get really, really good. Um,

1:48

and this is also just as mentioned like

1:50

one of the ones that's not

1:51

There's a lot of noise on YouTube

1:53

obviously because everybody's trying to

1:54

push their own particular way of doing

1:55

things. This is not my way of doing

1:57

things. This is this major company's way

1:59

of doing things um that I happen to

2:01

think is actually quite practical and it

2:02

it is not all about visualizing

2:04

something goofy for people that are non

2:06

super technical. Now to really

2:07

understand this system you first need to

2:09

understand what retrieval augmented

2:11

generation is. Also commonly referred to

2:13

as rag. Rag is the cornerstone behind

2:15

more or less all of this stuff. So, it's

2:17

worth at least a brief refresh if this

2:19

is the first time that you're

2:20

encountering this or not. What rag

2:21

basically does is it allows models to

2:23

answer questions specifically about a

2:26

set of data as opposed to just in the

2:29

general sense over all data. Like for

2:31

instance, if I were to type how tall is

2:33

Nick into my AI model chat box right

2:35

now, it would probably ask me who are

2:38

you talking about? Who is Nick? Well,

2:41

that depends broadly on which Nick

2:42

you're talking about. if you meant, you

2:44

know, Nick Jonas, Nick Jonas is XYZ

2:46

tall, right? That's a very general

2:48

question. So, it's likely that you're

2:50

going to have a general answer. And the

2:51

reason why is because it's enumerating

2:52

over all of its data. So, just to

2:54

visualize this and because I thought

2:55

it'd be kind of funny to make the whole

2:56

world know I'm taller than Nick Jonas.

2:57

Um, you know, here's a quick

2:59

visualization of maybe all the possible

3:00

answers you could get. You know, how

3:02

tall is Nick? Which Nick? Nick Jonas is

3:04

5' 10. That depends, right? Um, now the

3:07

question is, imagine hypothetically if I

3:09

didn't just say, "How tall is Nick?"

3:11

Imagine if the prompt that I fed into

3:13

this model was Nick is 6'2

3:18

and then I added some lines over here

3:20

and then I said how tall is Nick. What

3:22

do you think the model would say? Well,

3:24

it's pretty obvious how tall Nick is,

3:25

right? We just fed in a piece of

3:27

information immediately before the rest

3:28

of the prompt that just says how tall is

3:30

Nick? So, what do you think the model's

3:32

going to say? Well, the model's probably

3:33

just going to say, well, Nick is 6'2. It

3:36

doesn't even know really which Nick I'm

3:38

referring to or anything like that

3:40

because it just has the information

3:41

directly in its prompt, right? And so

3:43

what we've done is we basically

3:45

collapsed all of the possible responses,

3:47

all the variability of the model and

3:48

made it hyperspecific. We basically made

3:50

it like exactly what we want every time.

3:53

Okay? So all rag really is retrieval

3:55

augmented generation is it is augmenting

3:58

the AI generation of a piece of text by

4:01

retrieving information like Nick is 6'2

4:04

from some database. Okay. Now the key is

4:07

it's not just a database. It's not like

4:09

we just hypothetically have height of

4:11

every man on planet earth and then

4:13

somehow we store the right entry in.

4:15

What it usually is is it it sort of

4:17

exists in a language that LLM and large

4:20

language models can intuitively

4:22

understand called the embedding space.

4:24

You should know that all retrieval

4:25

augmented generation really is is just a

4:27

system that allows us to store

4:28

information before the question. Now,

4:30

hypothetically, let's say you were

4:32

trying to build a really cool knowledge

4:33

base that just answered all the

4:34

questions inherent in your business,

4:36

everything that's gone on in the last 24

4:37

hours. Um, well, you can apply that same

4:39

approach. Like if I just asked my little

4:42

knowledge base, hey, what did Peter say

4:44

at that talk last week? It's probably

4:46

going to go and collapse into or rather

4:48

spread a variety of different answers

4:49

and be like, who the hell's Peter? What

4:50

talk are you talking about? I don't even

4:52

know what year it is, man. I'm just a a

4:54

text corpus. So, what we need to do is

4:55

we need to find a way to insert

4:57

information. So, you know,

4:58

realistically, what we want is like uh

5:00

Peter Jackson delivered a talk last week

5:04

at 6:52 p.m. on Thursday. in the talk he

5:09

discussed X Y and Z. What we want is we

5:11

basically just want a way to prepen that

5:13

uh before the prompts, right? So all

5:16

this knowledgebased system from Sarah

5:18

does is it just allows you to basically

5:21

retrieve a relevant piece of information

5:23

from your company and then inject it

5:25

above your prompt such that if this is

5:28

your main prompt over here, this is just

5:30

like your sort of injected and I don't

5:32

know, I'm just going to call it like

5:33

help. I mean, the model doesn't know the

5:35

difference, right? the model just sees

5:37

the text whether it saw this or whether

5:39

it saw all of this combined. You know,

5:41

it's going to heavily change what the

5:42

model says, but it doesn't know that

5:44

like, you know, we've helped it out by

5:45

providing the information. It just

5:46

thinks like this is part of its training

5:48

data essentially. Um, and so that's

5:49

that's more or less what the system

5:51

does, and that's why it's so powerful.

5:52

It allows anybody in the whole company

5:54

to answer any question about anything

5:55

that's gone on. It also allows you to

5:57

store things like, hey, you know, here's

5:59

a set of problems and then here's a set

6:00

of solutions that we use to solve those

6:02

problems. So that if a newbie comes on

6:03

board, they're I don't know trying to

6:05

make some code fix or something and it's

6:06

not entirely working, they can just go

6:07

to the knowledge base and say, "Hey,

6:09

like why isn't this thing working?" And

6:10

they would say, "Ah, you're probably not

6:11

pushing to prod as we do in this

6:13

business. It's a little bit different

6:14

than most other businesses. Let me show

6:15

you guys how it works." All right, so

6:16

the first thing to know is this is made

6:18

by three handsome gentlemen, Isaac,

6:20

Daniel, and Mike. At least they're the

6:22

ones that wrote the the blog post. Uh

6:24

and currently they're being asked

6:25

something like 15,000 questions every

6:27

day. Now, this is obviously a pretty

6:28

long blog post. There a bunch of really

6:29

cool visualizations and stuff, but for

6:31

the sake of your time, um, let me find

6:33

the most important sections of this so

6:35

that you have everything you need. Okay,

6:37

the first is the anatomy of the

6:39

knowledge base. And so this knowledge

6:40

base is composed of three major

6:42

sections. The first is it's a platform

6:43

for collecting and storing internal

6:46

data. And so that makes sense, right? We

6:48

need to find a way to basically get

6:50

knowledge from outside of, you know, the

6:52

system into the system. So the knowledge

6:55

inherent in conversations let's say of

6:57

people in the Slack the knowledge

6:59

inherent in the SOPs of the company the

7:01

the checklists the processes all of the

7:04

emails all of that stuff we basically

7:05

need a way to take all of this in the

7:07

ether and then stick it into this

7:08

knowledge base in an appropriate manner

7:10

so that it doesn't get super crappy. The

7:12

second thing we need is we need a

7:13

platform for querying that data. And so

7:15

now that we have the data in the the

7:17

brain so to speak the knowledge base we

7:19

need a way to extract it and kind of

7:21

pull it out. And so this for instance

7:23

would be if I asked my knowledge base a

7:25

question about hey grab stats on the

7:28

last week of performance for XYZ

7:30

software platform and then apply that

7:32

cool lens that Nick talked about in his

7:35

most recent uh company seminar to it.

7:37

That would be an example of you know

7:39

using this platform which we've

7:41

collected and stored internal data into

7:43

uh to query it and then pull something

7:44

out. And then finally, because Cabris

7:46

is, you know, a big company and they're

7:48

dealing in hardware, they also need a

7:49

layer that enforces authentication and

7:51

authorization with auditing, analytics,

7:53

see who's like accessing the data, why,

7:55

and so on and so forth. Now, I'm pretty

7:57

small relative to this massive hardware

7:59

company that works with billion-dollar

8:00

businesses all over the world. So, I'm

8:01

not going to do that. And really, the

8:03

thing that's most important for us is

8:05

just going to be one and two. And I'm

8:06

going to assume anybody in my business

8:07

is probably okay. So, let's actually

8:09

visualize what this looks like.

8:11

Basically, at the very top end, we have

8:13

a bunch of different data sources that

8:14

they're constantly ingesting, right, for

8:17

that first section to to to store a

8:19

bunch of data in their platform. And the

8:21

first is Slack. So, as I'm sure you can

8:24

imagine, any major business will have

8:25

some sort of messaging platform these

8:26

days. And basically what this does is it

8:29

scans through all of the messages that

8:30

are sent in all of the accessible

8:32

workspaces and then converts them into

8:34

what are called embeddings. And

8:36

embeddings are just another way of

8:37

referencing or referring to that data.

8:39

It's just uh it's a little easier for

8:41

models and LLMs to understand. And so

8:43

you can imagine, you know, if you guys

8:45

use Discord, you do this on Discord. If

8:47

you guys use email, then you wouldn't do

8:48

Slack. You just do it over email. But

8:50

the idea is you just need a place where

8:51

people are talking. The second is, you

8:54

know, most companies at least sizable

8:56

businesses will have some form of wiki.

8:58

So whether it's wiki, whether it's

8:59

Confluence, whatever it is, there's some

9:01

place that you guys have already tried

9:02

to sort of store all of your

9:03

information. And typically that's done

9:05

naively through like checklists and SOPs

9:08

and onboarding pages and welcome to

9:10

Clairvo. You know this company is going

9:11

to walk you through blah blah blah blah.

9:13

And so just like Slack, you sort of

9:14

stick that into this embedding space.

9:17

Next up are code repos. This is

9:18

particularly important if you're a

9:19

software business or software adjacent.

9:21

Now in my case I consider my business

9:22

software or software adjacent. So you

9:24

know scanning through all the code repos

9:26

is going to be important. Net lists, PRM

9:28

docs, you know this stuff is going to be

9:29

more uh relevant again to software

9:31

businesses. And then also any sort of

9:33

custom databases you have that store

9:34

information. And so maybe you are doing

9:37

some sort of sales or rather

9:38

spearheading a sales department I should

9:40

say and you guys have databases that

9:42

have info on all of your KPIs. So you

9:44

know uh how many sales are being made,

9:46

how often you know what we can do is we

9:48

can actually take all of that data that

9:49

formatted database information and then

9:51

just store it as these embeddings. Okay.

9:53

And that sort of takes me to that idea

9:55

of like what is an embedding? Well an

9:57

embedding basically just takes the raw

9:59

data itself. So let's say hypothetically

10:02

um the data that we want to stick in

10:04

this pipeline is just a I don't know

10:06

it's it's Nick thinks

10:09

I don't know penguins are cool. So what

10:11

we have is we have this naive sort of

10:12

text data here and then what we'll do is

10:14

we'll actually pass that through a large

10:16

language model. So this might be I don't

10:18

know man like chat GPT claude it could

10:20

be an open source model it could be

10:21

anything. And then we just ask it

10:22

questions about this and we actually say

10:25

hey who's Nick? Why did Nick say that?

10:27

What time did Nick say that? Where did

10:29

Nick say that? when did Nick say that?

10:31

And so on and so forth. And so at the

10:33

end of it, we don't just have this naive

10:34

piece of text that says Nick thinks

10:36

penguins are cool. We have Nick thinks

10:38

penguins are cool, you know, time 5:32

10:42

p.m. We have, I don't know, subject Nick

10:44

Sarafh. We have description, you know,

10:47

and then here maybe it would say

10:48

something like, you know, oh, Nick is

10:50

the founder of XYZ organization. Nick

10:53

does blah blah blah and blah blah blah.

10:55

So what we're doing is we're basically

10:56

taking a core piece of data which you

10:57

can visualize sort of like I don't know

10:59

just this cube over here and then we're

11:01

adding metadata to it. We're adding a

11:02

bunch of additional kind of outcrop

11:04

pieces of information. So it's no longer

11:06

just that tiny little nugget in the

11:08

middle. Now it's like okay now we know

11:09

the time of date it was sent. We know

11:11

who it was sent to, where it was sent

11:12

from, who the person is, why any of this

11:14

is relevant, what the point is that Nick

11:16

was trying to make, and so on and so

11:17

forth. And I mean it's pretty similar to

11:19

I don't know like the way that a camera

11:20

works if you think about it. When you

11:22

take a photo with a digital camera,

11:23

right? You have the photo which is the

11:25

core data, but then you also have a

11:26

bunch of metadata around that. You have

11:28

stuff like, you know, what time it was

11:29

taken, what the color scheme of the

11:31

photo was, where, you know, a lot of

11:32

these cameras are now storing GPS info,

11:34

which is kind of terrifying. But anyway,

11:36

what I'm trying to say is we're not just

11:38

storing the data itself, okay? What

11:40

we're doing is we're adding a bunch of

11:41

stuff to that data and then storing it

11:42

in a way that the machine understands.

11:44

And the reason why that's important is

11:45

because much like your brain remembers

11:49

new things more better and stronger,

11:52

this system remembers new additions to

11:55

the knowledge base more, better, and

11:57

stronger. And so we have the source, we

11:58

have the time stamps, we actually know

12:00

how to weight the data. If the data

12:02

comes from some super low-level employee

12:03

3 years ago, we're going to weight it a

12:05

lot less strongly than if the data comes

12:07

from Nick, the founder of the business,

12:08

and it happened 30 seconds ago. You

12:10

know, if somebody asks for information

12:12

related to some recent seminar or

12:14

something like that, it will go through

12:15

not just all seminars equally like most

12:17

naive language models would do. It'll go

12:19

through the most recent seminar uh sort

12:21

of preferentially. It'll be like, okay,

12:22

recency. What does that mean? Okay,

12:24

what's the date? Okay, cool. And then in

12:25

this way, you're going to have a bunch

12:26

of these like quote unquote memories of

12:29

this brain um that are sort of uh uh

12:31

ranked based off the date, based off the

12:33

time, and based off the relevance. Okay,

12:35

so that's that. And then the third step

12:37

is obviously actually quering that data.

12:39

And so that data is queried you know via

12:41

MCP you know web UI AI agents uh people

12:44

are sending messages into a chat box

12:46

whatever it is you know what what occurs

12:48

really is it goes in reverse the query

12:51

goes through the embeddings the

12:52

embeddings represent a particular form

12:54

of information say a slack message okay

12:56

and then you know we what we do is we

12:58

pull the embedding version of that uh in

13:00

order to get the answer key practical

13:02

example of this with a slack message and

13:05

you know I think the examples I provided

13:06

here do kind of suck so bear with me But

13:09

there'll be a message maybe sent in the

13:10

CKPT- support thread. Okay. And at 9:14,

13:14

Amaya will say, "Hey, the restore stalls

13:16

after manifest load on the larger

13:18

cluster, but small runs are fine." Maybe

13:20

Owen then says, "Yeah, I can reproduce

13:22

this with 128 hours." The log stop

13:24

before the cache warm-up, though.

13:26

Basically, what happens is question

13:27

summary, right? Maybe here's a

13:28

resolution a few minutes later. We take

13:30

all of the information in a chat thread

13:33

sort of divided into these windows and

13:35

it'll all be done for you automatically.

13:37

And then it'll be essentially created as

13:39

a structured artifact which you guys

13:41

can't really see here. Let me zoom in.

13:43

And so this is the metadata that I was

13:44

talking about because we'll have a large

13:46

language model um take this information

13:48

and ask questions about it. You have

13:49

things like question, hey, why does the

13:51

restore stall after the manifest load?

13:53

Well, guess what? The summary of the

13:55

sort of this conversation is well large

13:57

restores stop before the cache warm-up.

13:59

you know, if I knew what the hell this

14:00

meant, it might be a little bit easier.

14:01

But maybe it's like, hey, uh, who was

14:03

that guy that came in to do that talk on

14:05

Thursday? And maybe the summary is now,

14:08

um, you know, the guy that came in to do

14:10

the talk on Thursday was Nick. You maybe

14:12

there's a resolution step if it's

14:13

something that needed to be resolved.

14:14

And so in this case, you can imagine how

14:16

now we have the ability to actually, um,

14:18

I don't know, like literally store the

14:19

answer to this question permanently

14:21

inside of the company, meaning the

14:22

company grows more efficient and more

14:23

effective over time. You then store a

14:25

bunch of things like maybe code rest

14:26

maybe that just means I don't know like

14:28

what is the slack thread where all that

14:30

information is stored and maybe systems

14:32

that includes a bunch of systems that

14:34

these people are working on. It'll

14:35

actually store a list of them. Obviously

14:36

it includes other information as well.

14:38

It includes like the source ID. It'll

14:39

include um I don't know the time and and

14:41

and date and so on and so forth. But

14:43

yeah, I mean like that is that's about

14:44

how detailed we're getting under the

14:46

hood. Uh but we again don't need to

14:47

store any of that stuff. Just wanted to

14:49

make sure you guys all understood what

14:50

was really going on under the hood. So

14:51

you don't need to know everything that I

14:53

just said. That's okay. I'm going to

14:54

walk you guys through the actual build

14:56

process. And the good news is I don't

14:57

even know, you know, what 90% of this

14:59

stuff really is. I just understand it at

15:00

a high level, which is sufficient. Um,

15:02

as long as you understand the way that

15:03

the data flows, we can actually take

15:04

that and use that to build our knowledge

15:05

base. You don't need a crazy dev to do

15:07

this. Um, you know, we can 100% do this

15:09

ourselves. Okay. So, how do you actually

15:10

build something like this in practice?

15:12

Well, the very first thing you need to

15:13

do, so you need to whip up a coding

15:15

agent of some kind. And so, in my case,

15:17

I'm using Claude Code V2.1.211.

15:21

I'm not saying you have to use Claude

15:22

Code. You can use one of many available

15:24

open models, but this Fable 5

15:26

intelligence right now just happens to

15:27

be the best, aka the most performant,

15:29

and um I have the money to to pay for

15:31

it, so might as well. Okay, so you can

15:33

get whatever model you want, Claude

15:35

Code, you know, Chat GPT, Codeex,

15:37

whatnot. As long as it's like a coding

15:39

model, it can actually make changes on

15:40

your computer, you're good. And if you

15:41

want more information on that, then just

15:43

um you know, check out my my 4-hour

15:44

Cloud Code course. So, all we really

15:46

need to do to make this work is I'm just

15:48

going to copy this whole blog post in.

15:50

Okay? Okay. And then I'm going to go all

15:51

the way back to my Ghost TTY terminal.

15:54

That's just what I happen to be using

15:55

for this. Then I'm going to paste this

15:57

in. Then I'll say, I'd like you to build

15:59

something like this for, and in my case,

16:02

I'll say Nick Sarif Media LLC. I have a

16:06

Slack, a set of emails, an email

16:08

address, a GitHub, and a YouTube

16:11

channel. I want us to build ingestion

16:14

pipelines, which is just how we get data

16:16

into the system for all of them. I'll

16:18

also say PS this is a demo. I've already

16:21

done this. Given that it's a demo in

16:23

front of the audience, I want you to

16:24

build it totally fresh. The reason for

16:26

that is because I've just already done

16:27

this several times. And what I wanted to

16:29

do is just pretend that it's totally

16:31

new. Now, the cool thing is, as

16:33

mentioned, you do not need to know how

16:34

this works. You can just go through

16:36

this, okay, entirely autonomously. Uh

16:38

the model can sort of figure it out. Um,

16:40

if for whatever reason Cabris has, I

16:43

don't know, put a block on their page,

16:44

then rather than feeding the URL, you

16:46

can also just go back to Google Chrome,

16:48

copy the whole thing manually, and

16:49

literally just paste it in. Um, the

16:51

important thing is you just need to get

16:52

it in to like this intelligent model.

16:54

Now, what it'll do next is it's going to

16:55

attempt to log in to all of the various

16:57

accounts of reference. So, in my case, I

16:59

actually have accounts that are already

17:01

logged in. For instance, I have GitHub

17:03

logged in. I have my YouTube channel

17:06

logged in. I have my email addresses

17:08

logged in. And so it'll do so almost

17:10

entirely automatically basically at

17:12

once. But I want you guys to know that

17:13

that might not necessarily be the case

17:15

for you. And so if you guys wanted for

17:17

instance an email to be set up, all you

17:20

have to do is just open up a new

17:22

instance of this. And I'm just going to

17:23

go claw-bose. I'm just going to zoom in

17:26

a little bit so you guys could see both

17:27

of these. And then I'll say something

17:28

like, "Hey, I want you to get access to

17:32

my email." Then I'm just going to give

17:34

it one of my emails, nickleclick.ai.

17:37

You should be able to query each email,

17:40

read all of my emails, send emails,

17:43

basically have full admin access. How

17:45

would you do this hypothetically if you

17:48

didn't already have access to it? Now,

17:51

I'm asking that question because it

17:52

already has access to my emails and I

17:54

don't want to sit here for 4 hours

17:55

showing you guys it say I already have

17:58

access to your email. And as you can

17:59

see, it eventually will tell you here's

18:01

how you'd set it up from scratch. You

18:03

would have to open up a Google Cloud

18:04

project, enable the Gmail API, do an

18:07

OOTH consent screen to create an OOTH

18:09

client, some sort of desktop app. Uh you

18:12

would have to do a one-time consent

18:14

form. You'd also need some sort of

18:16

refresh token. I guess what I'm trying

18:17

to say is it's not it's not very

18:19

difficult. This would realistically take

18:20

you about 5 to 10 minutes for every

18:22

pipeline of information that you want to

18:24

set up. And so that's the cool thing

18:25

about agents. I mean, you can just ask

18:26

them, hey, how do you do this? And if

18:28

the model is smart enough, in our case,

18:29

Opus 4.8 8 in this instance, but you

18:31

know, you could use Fable 5, you could

18:33

use GPT 5.6, so you can use whatever you

18:35

want. Um, you'll get the credentials

18:37

that you need in order to build set

18:38

injection pipeline. And on the left hand

18:40

side, speaking of it is currently doing

18:42

the building. Now, because I kind of

18:44

want to see what's going on, I'm

18:46

actually just going to go /btw. That's a

18:48

cloud code specific feature. And I can

18:50

say, visualize the system you're

18:52

building for me in ASI. In case you guys

18:55

didn't know, ASKI is just a text way to

18:58

demonstrate sort of visually like what a

19:00

di like a diagram or something like

19:01

that. And so what this is now doing is

19:03

while the main thread is running, I have

19:05

another thread that's going on on top of

19:07

that just asking it various questions.

19:09

And so I'm saying visualize the systems

19:10

you're building and asking. And here's

19:11

what it's doing. It's actually showing

19:12

me it so we could see. I'm just going to

19:13

zoom out. And so what we're doing is

19:15

we're basically building that exact

19:16

thing. We have a Slack over here. We

19:18

have three accounts over Gmail. We have

19:20

my GitHub. Then we also have my YouTube

19:22

channel. And so these are the

19:23

connectors. So this is sort of like the

19:25

APIs and uh MCPs and whatever it is that

19:28

allows us to pump stuff in there. We

19:29

have the distillation step like I talked

19:31

about earlier where we're basically

19:32

taking each thread passing it through a

19:34

ha coup in this case feeding in a

19:36

question a summary resolution systems

19:38

and then we're ingesting this into our

19:40

actual pipeline or database if we're

19:42

giving it just one table in what looks

19:44

like postgrql. And then down at the very

19:46

bottom here we have retrieval setup with

19:48

full text where we look for exact

19:50

matching tokens and stuff like that and

19:52

then embedding. Okay. And right after

19:54

this is all done, I'm just going to jump

19:56

to it and then I'll show you guys how it

19:57

actually works when you query it. And

19:58

now you can see sort of a artifact that

20:01

shows the same model asked the same 20

20:03

questions, one with the knowledge base

20:05

and one without. You can see that the

20:07

one that had the knowledge base answered

20:08

17 out of 20 questions correctly. Um the

20:11

other three were just honest partials or

20:13

declines. It just said, "Hey, I don't

20:14

really know what's going on cuz I don't

20:15

have the evidence to to back it up."

20:17

Whereas without the knowledge base, I

20:19

answered zero. So I mean, these are

20:21

really high quality. Um, comparatively,

20:22

you can imagine how rolling this out

20:24

inside of any companies would

20:25

significantly improve both the quality

20:27

and then the speed with which you get

20:28

things answered. So, for instance, which

20:30

AI company recently pitched a paid

20:32

sponsorship for the Stacked podcast? In

20:35

case you guys didn't know, I run a

20:36

podcast with Jack Roberts called

20:38

Stacked. And, you know, we're we've

20:40

recently grown a little bit. Um, I think

20:42

we're up to 5,600 subscribers now. So,

20:44

Jack and I kind of screwing around,

20:46

having a fun time. We're almost at 6K.

20:48

Well, uh, you know, if you just asked

20:49

that question natively, obviously you

20:51

wouldn't get the answer. But in our

20:52

case, we know it's abacus.ai. They

20:54

pitched a paid sponsorship for the

20:55

stacked podcast promoting as chat LLM

20:58

all-in-one AI super assistant. The

21:00

outreach came from insert person here.

21:02

Did we take it? Absolutely not. Or how

21:04

about this one? Which GitHub repos did

21:06

NSM push to most recently? We actually

21:08

have the exact GitHub activity right

21:11

over here. And it was just me replacing

21:13

sort of a defunct company name with a

21:14

new company name. Now, this isn't super

21:16

impressive. any sort of rag could do

21:18

this. What is impressive is the fact

21:19

that this data is now being ingested

21:20

completely automatically and I have

21:22

nothing that I need to do with it. It

21:24

occurs entirely without my control not

21:26

without my control but not requiring my

21:28

management. Um this will occur in the

21:30

background and so I can ask this any

21:32

sort of question that I want at any

21:34

point in time. Unfortunately, the thing

21:35

you can't really visualize is just how

21:37

much better this is than naive rag,

21:39

which most other people are doing

21:41

because we have information like the

21:43

date and time, aka how long it's been

21:46

since the thing was created. We also

21:48

have significantly higher quality rag.

21:50

You know, I only had 640ish documents

21:53

inside of my system. A company like

21:54

Cerebrus probably has, you know,

21:56

hundreds of thousands. Uh the thing that

21:58

differentiates like a crappy

22:00

knowledgebased uh system that you ask

22:01

questions to and have woven into your

22:03

business with the ones that are good

22:05

isn't necessarily how many documents you

22:06

have, but it's how effectively can you

22:07

retrieve the highest quality ones, the

22:09

most relevant ones. And uh that's the

22:11

question that this sort of rag system

22:12

answers. So I'm not going to tell you

22:14

have to use this one. There are

22:15

obviously a bunch of different rags that

22:16

you can use and there also a bunch of

22:18

different approaches to knowledge bases,

22:19

but this is done by a major business.

22:21

These guys aren't screwing around.

22:23

They're not going to do something like

22:24

this if it doesn't actually generate a

22:26

return on their time and energy. And as

22:28

it stands right now, this is definitely

22:29

generating a return on time and energy.

22:31

It's generating a return on time and

22:32

energy for me because I have this

22:34

syndicating and then embedding and then

22:36

pulling and and enriching all content

22:38

that I'm currently creating and that is

22:40

going into my business. It's it's a it's

22:41

an abundant training resource that

22:43

immediately gets everybody up to speed

22:45

in my team. uh you know, it's something

22:46

that I can just dole out literally with

22:48

the snap of a finger and I can give them

22:51

the same brain that I personally have

22:52

spent a long time creating. And the

22:54

unfortunate thing is doesn't look super

22:56

sexy. I don't have a big floating brain

22:57

in the middle of my screen, but you

22:58

know, it's the same resource that's

23:00

accessible via Obsidian or via, you

23:02

know, Graphify or whatever the heck. Um,

23:04

this is just probably the higher ROI way

23:07

of doing it because of the frequency

23:08

waiting, the time waiting, and stuff

23:10

like that. Anyway, as you guys could

23:11

tell, I'm uh singing hard for Cerus. a

23:14

dope company and this is not a sponsored

23:16

post in any way, shape or form. I was

23:18

not paid any money to do this. I just

23:20

think it's probably the coolest

23:21

knowledgebased implementation that I've

23:22

ever seen. So yeah, that's that. If you

23:23

guys like this sort of thing, definitely

23:24

check out Maker School. It's my

23:26

day-by-day accountability roadmap where

23:27

I show you guys how to acquire your very

23:29

first customer for an AI or automation

23:31

service, which could be building rag or

23:33

knowledgebased systems like this um for

23:35

money within 90 days, or you get all of

23:37

your money back. So I have a refund

23:40

guarantee because it works really well

23:41

and obviously I would love to see you

23:42

there. Have a lovely rest of the day.

23:44

Subscribe to the channel if you haven't

23:45

already.

Interactive Summary

This video explores a highly practical and effective approach to building a company knowledge base using Retrieval Augmented Generation (RAG). Unlike visual-centric tools often seen in 'second brain' content, the speaker emphasizes a robust data ingestion pipeline that ingests information from sources like Slack, emails, GitHub, and custom databases. By converting this data into an embedding space with rich metadata (such as timestamps and source attribution), the system allows for context-aware, highly relevant responses. The speaker demonstrates how to build such a system using coding agents and highlights the significant ROI this approach provides for internal team alignment and information accessibility.

Suggested questions

4 ready-made prompts