构建人工智能管道_第1页
构建人工智能管道_第2页
构建人工智能管道_第3页
构建人工智能管道_第4页
构建人工智能管道_第5页
已阅读5页,还剩13页未读, 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineeringByGilberto

HernandezLeadDeveloper

Advocate,Snowflake

Build

PipelinesforAI:An

EssentialGuidetoSmarter

Data

Engineering

Table

of

Contents

|

2Tableof

ContentsThe

Demand

andthe

Design:

Navigating

Data

Engineering’sTwo

Great

Shifts

by

Chris

Child...

.

.

.

.

.

.

.

3The

ITD

Framework:

A

Primer.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.5The

Continuous

Flow:Architecting

Data

Ingestion

forAIVelocity...

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

7Transforming

Data,

Not

Code:

The

Shift

to

Declarative

Workflows

.....

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

10Beyond

the

Dashboard:

Delivering

Semantic

Layers

to

Human

and

AI

Consumers

......

..

..

.

..

..

..

.

..

..

13Scaling

with

Safety:

Implementing

DataOps

for

High-Stakes

AI

Workloads

..

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

15The

Future

of

the

Data

Engineer:

Operational

Architects

in

the

Age

of

AI

..

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.18

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

TheDemand

and

theDesign:NavigatingDataEngineering's

Two

Great

Shifts|3TheDemandandtheDesign:NavigatingDataEngineering’sTwoGreatShiftsData

engineeringtoday

is

inthe

midst

oftwo

major

shifts

—

one

offunction

andone

ofform.Thefirst

is

obvious:AI

isfundamentally

redefining

the

function

ofdata

engineers

at

almost

every

level.

Its

insatiable

appetitefor

data

has

created

outsized

demands

of

data

engineeringteams

—

demands

neededfor

successandyet

incredibly

difficultto

maintain.The

second

is

a

shift

inform,

in

howdata

engineers

must

meetthese

new

and

growing

demands.We’ve

seen

dataengineers

gofrom

doing

mostly

rote,

manual

laborto

more

strategic

execution,

adopting

best

practicesfromsoftware

developmentto

elevatethe

work

they

do.

They’re

no

longer

mere

data

plumbers

and

pipeline

constructors;they

aretheoperationalarchitects

ofany

data-driven

organization.Andat

this

point,

there

is

no

going

back.Whenwethinkabout

modern

data

engineering,the

focus

is

no

longer

onmanually

connecting

each

and

every

dot.Thatsimply

doesn’tscaleto

meet

theneeds

ofAI.With

exponentially

increasingvolumes

of

data

rapidly

becomingboth

available

and

usable,

engineers

needtowork

more

efficientlyto

keep

pace.That

iswhere

a

more

modern,

declarative

approachto

building

pipelines

changesthewholegamefor

data

engineers.

Byabstracting

away

the

minutia

of

eachstep

and

insteadfocusing

onthe

desired

endstate,

data

engineers

havethepowerto

multiplytheir

productivityand

makegains

that

previously

seemed

out

of

reach.Take

coding

agents

as

an

example.

In

a

matter

of

months,thesetools,

includingCursor,

Claude

CodeandSnowflake’s

Cortex

Code,

have

revolutionized

howwe

think

about

software

development

—

and

by

extension,

data

engineering.

How?

Foryears,

data

engineeringteams

have

been

quietlyadopting

best

practicesfromsoftware-defined

lifecycles.They’retreating

infrastructureas

code

and

creatingstructured,version-controlled

environmentswhere

data

pipelinesclosely

resemblestatelesssoftware

code.Sincethese

AI

coding

agents

are

trained

heavily

on

software

engineering

problems,they

are

readily

ableto

adapttothis

modernform

of

data

engineering

as

well.This

shift

in

approach

—to

a

more

modern,

declarative

mindset

—

createstheright

conditionsto

makeAItoolsfunctional.

But

more

importantly,

it

provides

the

safety

net

neededto

letAI

operate

at

scale.

Inthe

past,fixing

a

pipelinemeant

running

raw

SQL

commands

directly

in

a

production

environment;

but

ifsomething

broke,

itwas

incredibly

complexto

investigatewhat

went

wrong.Today,

a

modern

approach

means

changes

are

checked

intoversion

control,testedand

deployed

onlyasa

knowngood

state.

Having

the

ability

to

easily

test

changes

and

rollthem

back

isastrict

prerequisite

beforetrusting

AI

to

write

or

manage

dataworkflows.Now,trustingAI

doesn’t

mean

having

blindfaith.

Instead,the

key

is

buildingtrust

inthe

underlying

data

engineering

process.Wearealready

seeingorganizations

runthousands

of

data

pipelines

simultaneously,

reaching

a

point

where

human

oversight

of

every

moving

part

isvirtually

impossible.

Soon,we’ll

movetowardagenticAI,wheresoftware

agents

will

take

on

larger

chunks

ofactual

pipeline

construction.The

data

engineer’s

rolewill

elevate

onceagain,movingawayfromwriting

individualscripts

to

advanced

data

modeling

and

system

requirements.They’llfunction

closertothe

business,

ensuring

dataavailabilityand

qualityforAI,analytics

and

applications.Ultimately,thefuture

of

data

engineering

isn’t

aboutwriting

betterscriptsto

move

data.

It’s

about

buildingthe

resilient

systemsthat

connect

itforyou.This

book

is

designedto

helpyou

dojustthat.

In

it,

Lead

DeveloperAdvocateGilberto

Hernandezwalksthroughthe

ITD

(ingestion-transformation-delivery)frameworkfor

data

pipelines.

He’llgo

overthetraditional

approaches

associated

with

each

step

—

boththeirvirtues

and

pitfalls

—

before

highlightingthe

modern

tools

and

methodsthat

can

help

data

engineeringteams

adapttothe

shiftinglandscape

beforethem.—

ChrisChild,VicePresidentofProduct,DataEngineeringatSnowflakeAISkills•ETL/ELT

coding•Infrastructuremanagement•Pipeline

monitoring•DocumentationHumanSkills•Business

requirements•

Stakeholdermanagement•

Systemsthinking

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

TheDemand

and

theDesign:NavigatingDataEngineering's

Two

Great

Shifts|

4Addingtothe

broad

scope

ofthis

discipline

are

two

main

shiftsthat

are

materially

impacting

how

data

engineers

architect

and

deploy

data

pipelines:

(1)AI

requirements

and

use

cases

areputting

pressure

onwhat

data

pipelines

needto

solvefor;

and

(2)well-tested,

successful

software

engineering

best

practices

arefindingtheirway

into

the

field

of

data

engineering.

Thatmeans

data

engineers

must

evolve

not

onlytheirworkflows

but

their

mental

modelsfor

architecting,

deploying

and

maintaining

data

pipelines.

In

short,

a

lot

more

is

being

asked

of

dataengineers,

and

modern

data

pipelines

are

evolvingto

reflect

these

shifts

and

demands.Ingestion,transformation

and

delivery

arethe

corecomponents

ofthe

oft-cited“ITDframework”for

data

pipelines.These

components

coverthe

ingestion

of

raw

data

into

a

dataplatform,

itstransformationfrom

a

raw

stateto

a

usable

statethat

canfacilitate

insight

extraction,

andthe

delivery

of

dataproductsthat

usetransformed

data

—

such

as

dashboards,apps

and,

now,AI-related

artifacts,

like

semanticviews.

Ifyou’re

a

seasoned

data

engineer,

but

newtothe

ITDframework,

you’llfindthat

it’s

comparableto

the

extract,

load,

transform(ELT)workflow.TheITDFramework:APrimerThefield

of

data

engineering

is

diverse,

offering

many

unique

challenges

alongwithtons

of

differentuse

cases

—

all

ofwhich

can

be

addressed

in

avariety

ofways,

using

a

multitude

oftools.

Build

PipelinesforAI:An

EssentialGuidetoSmarter

Data

Engineering

TheITDFramework:

APrimer|5IngestionTransformationDeliveryDatabasesA

/VSaaSUnstructured

FilesStreamingOpenflowSnowpipeSnowpipeStreamingSharing,MarketplaceDynamicTablesTasks

&ServerlessTasks<

>SnowparkConnectforApacheSpark

TMpandas

onSnowflakeMu

lt

i-Eng

ineAccessOpenflowAgenticworkflowSnowflakeIntelligenceSharingReplicationWorksheetsStreamlit dbt

ProjectsSnowpark(Stored

Procedures&

UDFs)

AUTOMATEWorkspace

Notebooks

Cortex

Code

Git

Integration

Database

Change

Management

Snowflake

TrailRegardless

ofwhich

pipelineframeworkyou

might

be

inclinedtofollow,the

components

of

each

are

beingfundamentallyimpacted

bythe

needto

solvefor

and

scale

AI

use

cases,

alongwiththe

shiftto

design

data

pipelines

using

software

development

best

practices.For

example,

ingestion

—the

process

of

loading

raw

datainto

a

data

platform

—

is

being

fundamentally

impacted.AI

is

demandingthat

all

data,

regardless

of

its

source,

be

ingested

into

data

platforms

and

processed

as

quickly

as

possible.Datatransformationstake

datafrom

a

raw

state

into

a

polishedstatetailoredfor

a

use

case.AI

solutions

require

that

datatransformations

are

automatic,

low

maintenance

and,whenpossible,

useAIto

performtransformations.Aftertransforming

data,

data

engineers

deliver

data

productswiththat

data,

such

as

curated

data

sets,

dashboards

anddata

apps.AI

is

adding

a

new

set

ofviable

data

productsthatpipelines

oughtto

deliver,

like

semantic

layersthat

provideAI

agents

context

and

conversational

interfaceswhere

any

business

user

can

extract

insightsfrom

data.It’sthe

data

engineer’sjobto

solvethese

challenges.They

areresponsiblefor

architecting

and

deploying

data

pipelinesthat

can

solve

not

onlythetraditional

challenges

relatedto

dataingestion,transformation

and

data

product

delivery,

but

alsothe

new

challengesAI

is

inserting

into

each

component.Their

role

isfundamentally

being

impacted

byAI.Inthis

ebook,we’re

goingto

walkyou

through

all

the

modern,AI-native

data

engineeringtools

in

Snowflake

that

havebeen

designedto

streamlinethe

entire

data

lifecyclefor

data

engineersworkingwithAI.We’ll

walk

you

through

how

youcan

ingest

(or,

in

some

cases,

connectto

datawithout

needing

to

move

it),transform

and

deliver

data

productswithAI.

Build

PipelinesforAI:An

EssentialGuidetoSmarter

Data

Engineering

TheITDFramework:

APrimer|6

CONNECT DELIVER TRANSFORM&ORCHESTRATECatalog

Federation

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

The

ContinuousFlow:

ArchitectingDataIngestion

for

AI

Velocity|7TheContinuousFlow:ArchitectingDataIngestionfor

AI

Velocity“Data

isfoodforAI.”Thesewisewords,from

world-renowned

data

scientist

and

AI

visionary

Andrew

Ng,are

reflective

of

a

material

shift

significantly

impactingthefield

of

data

engineering

atthe

moment.

Namely,

thatthe

constant

demandforAIsolutions

is

forcing

data

engineers

to

reassess

how

they

manage,

architect

and

implement

accessto

largevolumes

of

largely

unstructured

and

real-time

data.This

often

requires

datamovementfrom

source

systems

into

accessible

and

scalable

lakehouses.A

key

part

ofthis

data

movement

is

thefirst

step

in

many

pipelines:

data

ingestion.In

certain

instances,

data

ingestion

can

be

greatly

simplified.For

example,

many

modern

data

platforms

now

support

zero-

copy

solutionsfor

data

ingestion,

byway

of

connectors.Thisallows

datateamsto

bring

datatransformations

andAI

directly

tothe

source

data.The

same

istrue

for

data

in

open

tableformats,

likeApache

Iceberg™.

Many

modern

data

platformsnow

support

Iceberg

integrations,

meaningthey

can

instantly

connectto

Iceberg

data

in

external

platforms

andwork

directly

withthat

data,without

needingto

copy

or

move

the

data.Data

ingestion

referstothe

process

of

loading

raw,unprocessed

datafrom

a

source

into

a

destination.

Oftentimes,

the

destination

is

a

specifictool,

a

local

storage

solution

ora

central,

cloud-based

data

platform.The

rate

atwhichtheprocess

of

ingestion

occurs

is

known

asthe

ingestion

latency,

and

it

canvary

significantlyfrom

use

caseto

use

case.AI’simpactontraditional

patternsBatch-firstingestionBatch

ingestion

of

data

at

scheduled

intervals

has

beena

common

andwell-accepted

patternfor

decades.

Dataengineerstypically

ingested

data

on

a

daily

or

hourly

basis,

and

for

a

longtime,this

satisfiedthe

vast

majority

of

use

cases.AI

is

materially

changingthat.There

are

competitive

advantagesto

be

gained

byfeedingAI

and

agentic

systemswithfresh

data.

Consider

industries

like

manufacturing

orfinancial

services,where

up-to-date

data

can

helpAI

solutions

improve

efficiency

of

production

or

helpteams

act

quickly

onthe

latest

markettrends.AI

is

loweringthetolerance

for

stale

data,

and

dataengineers

must

now

architect

continuous

ingestionworkflows

into

more

pipelines.Structuredandsemi-structureddataasthenormIngesting

structured

data

(for

example,

rows

and

columns)had

beenthe

norm

in

data

engineeringfor

manyyears.

When

semi-structured

data,

likeJSON,

hitthe

scene

at

scale,

dataengineers

adapted

and

built

reliable

patternsfor

ingesting

it.This

hasn’t

beenthe

casefor

unstructured

data.AI’s

capabilityto

analyze

and

extractvaluefrom

PDFs,

images,

audiofilesand

evenvideos

is

putting

pressure

on

data

engineerstofigure

out

comparable,well-tested

ingestion

solutionsforthesedata

types.CustomscriptsandconnectorsprawlBuilding

custom

scripts

or

integratingthird-partytoolstoconnectto

data

sources

is

inevitable

asthe

scope

of

a

datasolution

grows.

ButAI

has

multipliedthe

number

of

available

data

sources

significantly.

Google

Drive

docs,

Slack

messages,

PDFs,

social

media,

call

recordings

—

all

are

now

extremelyviable

and

potentiallyvaluable

sourcesthat

provideAI

a

richer

layer

of

context.

Building

custom

solutions

or

purchasingout-of-the-box

connectorsfor

each

is

difficultto

manage

and

expensiveto

scale.

Data

engineers

need

more

streamlinedapproachesto

connecttothis

explosion

of

sources.NewdemandsfromAIAI

is

efficient

atworkingwithvector

embeddings,

labeled

datasets

and

otherforms

of

enriched

data

optimizedfor

machinelearning.

But

it

can

be

a

challengeto

quickly

implementthesethingsfrom

scratch.This

demand

has

spawned

a

net-new

data

category:AI-ready

data

setsthat

are

plug-and-play

solutionsfor

data

pipelinesthatfeedAI.

Data

engineers

now

needaccessto

prebuilt,

curated

data

sets

ratherthan

always

building

ingestion

pipelinesfromthe

ground

up.

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

The

ContinuousFlow:

ArchitectingDataIngestion

for

AI

Velocity|8

Apache

Iceberg™TablesApache

IcebergTM

is

an

opentableformat

designed

for

large-scale

analyticsworkloads.Snowflake

provides

native

support

for

Icebergtables,

allowing

data

engineersto

ingest

data

inIcebergformat

and

query

it

directlywithin

Snowflake.This

is

significantforteamsthat

have

existing

Iceberg

data

—

perhaps

written

byApache

Spark™,Trino

or

other

engines

—

andwant

to

bring

it

into

Snowflakewithout

conversion.

Forteamsdemanding

data

interoperability

across

multipletools,

Iceberg

providesthe

opennessthey

need.

Snowflake

Marketplace(AI-readydataproducts)

Snowflake

Marketplace

provides

accesstothousands

of

dataproducts

shared

by

data

providers

—

includingAI-ready

datasets

specifically

curatedfor

machine

learning

andAIworkloads.

From

an

ingestion

perspective,

Marketplace

represents

afundamentally

different

approach:

Instead

of

building

a

pipeline

to

extract

datafrom

a

source,you

access

datathat’s

already

in

Snowflake.Whenyou

subscribeto

a

data

set

on

Marketplace,

the

data

appears

inyour

Snowflake

account

as

a

shareddatabase

—

live,

queryable

and

automatically

updated

bythe

provider.This

directly

addressesthe

new

demandforAI-ready

datawithoutthe

overhead

of

building

pipelinesfrom

scratch.Collectingand

possessingdata

is,ofcourse,

a

crucial

firststep,

butthenwhat?

Data

becomes

usefulwhen

it)scleaned,shapedandenrichedforthe

peopleand

systems

that

depend

on

it.That

brings

ustothe

nextstage:transformation.SolutionsSnowflake

provides

several

capabilities

designedto

handlethevolume,variety

andvelocitythat

AI

workloads

demand.

SnowpipeSnowpipe

enables

continuous,

serverless

data

ingestionfromcloud

storage

into

Snowflake.

Ratherthan

scheduling

batchloads,

Snowpipe

automatically

detects

and

loads

newfiles

as

they

arrive

inAmazon

S3,

Google

Cloud

Storage

or

Microsoft

Azure

Blob

Storage.The

data

is

loadedwithin

minutes

ofarrival,without

requiringyouto

provision

or

manage

compute

resources

—

directly

addressingthe

shiftfrom

batch-firsttocontinuous

ingestion.

SnowpipeStreamingSnowpipe

Streaming

enables

low-latency

data

ingestiondirectly

intoSnowflaketablesviaAPI,

achieving

sub-second

latencywithout

intermediate

staging

in

cloud

storage.

Unlike

traditional

Snowpipe,

Snowpipe

Streaming

accepts

rows

ofdata

directlyfromyour

applications,

IoT

devices

or

streaming

platformsthrough

a

simple

software

development

kit

(SDK).The

key

advantage

isthat

it

eliminatesthe

needfor

dedicated

streaming

infrastructure

like

Kafka

clusters,

providing

real-time

ingestion

as

a

serverless,

pay-per-use

service.

SnowflakeOpenflowSnowflake

Openflow

helps

data

engineers

simultaneouslysolvethe

challenges

of

ingestingfrom

myriad

data

sources,

in

different

dataformats,

at

desired

ingestion

speeds.

It

provides

avisual,flow-based

UIto

connect

sourceswith

destinationsand

quickly

set

an

ingestion

latency.

It

supports

over

20prebuilt

connectorsfor

common

data

sources

—

populardatabases

like

PostgreSQL,

SaaS

applications

like

Google

Drive

and

more

—

aswell

as

custom

flowsfor

specialized

use

cases.

Openflow

supports

ingestion

of

structured,

semi-structuredand

unstructured

data,

directly

addressingthe

pressureto

ingest

datatypes

beyondtraditional

rows

and

columns.

Connectors(Zero-ETL)Snowflake’s

native

connectors

—

often

called“zero-ETL”connectors

—

provide

direct

integrations

between

Snowflakeand

popular

data

sources

like

Salesforce,

ServiceNow,

Google

Analytics

and

Microsoft

Dynamics.These

connectorsare

built

and

maintained

by

Snowflake,

eliminatingthe

needforthird-

party

ingestiontools

or

custom

pipeline

code.

Dataflowsdirectlyfromthe

source

into

Snowflakewithout

intermediate

staging

or

separate

infrastructureto

manage,which

directly

addresses

connector

sprawl.

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

The

ContinuousFlow:

ArchitectingDataIngestion

for

AI

Velocity|9

BuildPipelinesforAI:AnEssentialGuidetoSmarterDataEngineering

TransformingData,Not

Code:

The

Shift

toDeclarative

Workflows|10TransformingData,NotCode:TheShifttoDeclarativeWorkflowsAsAI

impacts

batch-first

ingestion

approaches

and

shiftsthemto

continuousworkflows,

data

engineers

must

now

implement

datatransformationsthat

can

also

execute

quickly.

In

addition,

thevast

amounts

of

unstructured

datathatAI

can

processmeansthat

data

engineers

need

newtoolsto

process

thistype

of

data

at

scale.

In

many

cases,this

means

usingAI

itself

totransform

data.Andfinally,

SQL-first

data

engineers

arefindingthemselves

delving

intotheworld

of

Python

(and

other

programming

languages)

more

often.

BecauseAI

spans

myriad

workloads,

use

cases

and

industries,this

meansthatthe

data

thatfeeds

it

can

be

processed

in

avariety

of

developmentenvironments,

includingthosethat

aren’t

SQL-first.Raw

data,

on

its

own,

is

of

littlevalue.

Data

engineers

must

integrate

and

create

high-quality,

curated

data

using

code,logic

and

carefully

sequenced

steps.

Datatransformation

—the

process

of

reshaping,

enriching

and

preparing

ingested

datafor

downstream

consumption

—

iswhere

data

engineers

spendthe

majority

oftheir

time.The

resulting

artifacts

of

datatransformations

cantake

manyforms:

curated

data

setswith

aggregations

and

calculations,enriched

records

readyfor

downstream

consumption,training

datafor

machine

learning

and

more.A

data

engineer’sapproachtotransforming

a

set

of

data

can

depend

heavily

on

the

nature

ofthe

data

and,

in

certain

cases,

also

depend

onthe

environment

inwhich

it

is

beingtransformed.AI’simpactontraditional

patternsImperativeorchestrationfortransformationsTraditionally,

data

engineers

have

relied

on

imperativeapproachesto

managetheirtransformations.They

explicitlydefine

how

ajob

should

run,

downtothe

order

andtiming.

It’snot

uncommonfor

engineersto

implementtools

likeAirflow,

cronjobs

andtask

schedulesto

helpthem

sequence

andorchestratetheirtransformations.This

is

a

common,

battle-tested

approach,

but

it

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论