在线观看www成人影院-在线观看www日本免费网站-在线观看www视频-在线观看操-欧美18在线-欧美1级

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

利用知識(shí)圖譜與Llama-Index技術(shù)構(gòu)建大模型驅(qū)動(dòng)的RAG系統(tǒng)(下)

深度學(xué)習(xí)自然語(yǔ)言處理 ? 來(lái)源:愛吃牛油果的璐璐 ? 2024-02-22 14:13 ? 次閱讀

7、構(gòu)建知識(shí)圖譜索引

de52d9a6-cfed-11ee-a297-92fbcf53809c.png

#setuptheservicecontext

service_context=ServiceContext.from_defaults(
chunk_size=256,
llm=llm,
embed_model=embed_model
)

#setupthestoragecontext

graph_store=SimpleGraphStore()
storage_context=StorageContext.from_defaults(graph_store=graph_store)

#ConstructtheKnowlegeGraphUndex
index=KnowledgeGraphIndex.from_documents(documents=documents,
max_triplets_per_chunk=3,
service_context=service_context,
storage_context=storage_context,
include_embeddings=True)

8、從文檔中創(chuàng)建知識(shí)圖譜

Text:page_label:2
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

WhatisanESOP?
Triplets:
(page_label,is,2)
(ESOP,is,WhatisanESOP?)
---------------------
Text:page_label:3
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

WhyOfferanESOP?
Triplets:
(page_label,is,3)
(ESOP,is,WhyOfferanESOP?)
---------------------
Text:page_label:4
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-P
(page_label,is,partof)
(page_label,is,TableofContents)
(file_path,is,pathof)
(file_path,is,/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf)
(ESOP,is,partof)
(ESOP,is,IntrotoOptionsPlans)
(Option,is,partof)
(Option,is,IntrotoOptionsPlans)
(LifecycleofaStartupESOP,is,partof)
(LifecycleofaStartupESOP,is,IntrotoOptionsPlans)
(CommonTermsinanOptionsPackage,is,partof)
(CommonTermsinanOptionsPackage,is,IntrotoOptionsPlans)
(WhyIssueOptionstoEmployees,is,partof)
(WhyIssueOptionstoEmployees,is,IntrotoOptionsPlans)
(ADefiningCharacteristicofStartupCulture,is,partof)
(ADefiningCharacteristicofStartupCulture,is,WhyIssueOptionstoEm
(ESOP,is,equitycompensationplan)
(ESOP,is,employeestockoptionplan)
(ESOP,is,partofstartupculture)
(ESOP,is,necessarypartofcapitalstructure)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)
(ESOP,is,definedcharacteristicofstartupculture)

(page_label,is,3)
(INTROTOOPTIONSPLANS,is,PartI)
---------------------
Text:The2018AnnualReportoftheBoardofTrusteesoftheUniversityofArkansasSystemispresentedhereasaPDFfile.
Triplets:
(The,is,PDFfile)
(The,ispresented,here)
(The,is,The2018AnnualReportoftheBoardofTrusteesoftheUniversityofArkansasSystem)
---------------------
Text:The2018AnnualReportoftheBoardofTrusteesoftheUniversityofArkansasSystemispresentedhereasaPDFfile.
Triplets:
(The,is,PDFfile)
(The,ispresented,here)
(The,is,The2018AnnualReportoftheBoardofTrusteesoftheUniversityofArkansasSystem)
---------------------
Text:The2018AnnualReportoftheBoardofTrusteesoftheUniversityofArkansasSystemispresentedhereasaPDFfile.
Triplets:
(The,is,PDFfile)
(The,ispresented,here)
(The,
(ESOP,is,EmployeeStockOptionsPlan)
(ESOP,is,allocation)
(ESOP,is,plan)
---------------------
Text:page_label:5
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

WhatisanESOP?
?AnEmployeeStockOptionsPlan(ESOP)

?Anallocationofsharesthatwillbegrantedtoemployeesinthefuture
intheformofstockoptions
–Howmuchequityshouldwesetasideforemployees?

?Aplanforhowtheseoptionswillbedistributed:
–Howmanyshareswillindividualemployeesreceive?
–Whattermswillgovernthesegrants?

?Theplanisasimportantastheallocation!
Triplets:
(ESOP,is,allocation)
(ESOP,is,plan)
(ESOP,is,important)
---------------------
Text:page_label:6
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-
(Option,is,effectiveformofequityownership)
(Option,has,intrinsicvalue)
(Option,is,locked-inpriceforshares)
---------------------
Text:page_label:1
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

WhatisanESOP?
?WhatisanESOP?
–Aqualifiedretirementplan
–Atax-qualifieddefinedcontributionplan
–Aplanthatisprimarilydesignedto
provideretirementbenefitstoemployees
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–Aplanthatisprimarilydesignedto
providebenefitsintheformofstock
–
(Option,is,righttopurchase)
(Option,is,setprice)
(Option,is,certainperiodoftime)
---------------------
Text:page_label:1
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

WhatisanESOP?
?WhatisanESOP?
–Aqualifiedretirementplan
–Atax-qualifiedplanthatmeets
ERISArequirements
–Aplanthatisprimarilydesigned
toprovideretirementbenefitsto
employees
–Aplanthatisprimarilydesigned
toprovidebenefitsintheform
ofemployersecurities
–Aplanthatisprimarilydesigned
toprovidebenefitsintheform
ofemployersecuritiesthatare
acquiredthroughpurchase,
receiptfromacorporateparent,
orthroughtheaccumulationof
distributionsonemployersecurities
–Aplanthatisprimarilydesigned
toprovidebenefitsintheform
ofemployersecuritiesthatare
acquiredthroughtheaccumulation
of
(LifecycleofaStartupESOP,involves,foundersandearlyinvestors)
(LifecycleofaStartupESOP,involves,managementandtheBoardofDirectors)
(LifecycleofaStartupESOP,involves,employees)
(Employees,receive,optionspackages)
(Options,are,exercised)
(Options,are,granted)
(Options,are,issued)
(Options,are,marketable)
(Options,are,forfeitable)
(Options,are,vested)
(Shares,are,acquired)
(Shares,are,granted)
(Shares,are,marketable)
(Shares,are,owned)
(Shares,are,vested)
(Strikeprice,is,paid)
(Strikeprice,is,set)
(Strikeprice,is,specified)
---------------------
Text:page_label:11
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

LifecycleofaStartupESOP
?Found
(CommonTermsinanOptionsPackage,is,NumberofShares)
(CommonTermsinanOptionsPackage,is,StrikePrice)
(CommonTermsinanOptionsPackage,is,VestingSchedule)
(CommonTermsinanOptionsPackage,is,CliffPeriod)
(CommonTermsinanOptionsPackage,is,ExpirationDate)
---------------------
Text:page_label:1
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

ExecutiveSummary
Thisdocumentoutlinesthebestpracticesfordesigningandimplementinganemployeestockoptionplan(ESOP)foraprivatecompany.ThedocumentisintendedtoprovideaframeworkfordesigninganESOPthatistailoredtothespecificneedsofthecompanyanditsemployees.ThedocumentisnotintendedtobeacomprehensiveguidetoESOPdesign,butratherahigh-leveloverviewofthekeyconsiderationsthatshouldbetakenintoaccountwhendesigninganESOP.
Triplets:
(ExecutiveSummary,is,High-leveloverview)
(ExecutiveSummary,is,Keyconsiderations)
(ExecutiveSummary
(WhyIssueOptionstoEmployees?,attracts,toprecruits)
(WhyIssueOptionstoEmployees?,retains,employees)
(WhyIssueOptionstoEmployees?,aligns,incentives)
(WhyIssueOptionstoEmployees?,rewards,valuecreation)
(WhyIssueOptionstoEmployees?,encourages,long-termthinking)
---------------------
Text:page_label:10
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

HowShouldOptionsBeGranted?
?AttheRightTime:optionsshouldbegrantedattherighttimeinthe
company’slifecycle,whenthecompanyhasachievedacertainlevel
ofsuccessandthevalueofthecompanyisclear
?AttheRightPrice:optionsshouldbegrantedatafairprice,basedon
thecompany’svaluationatthetimeofgrant
?AttheRightSize:optionsshouldbegrantedintherightsize,based
ontheemployee’sroleandcontributiontothecompany
Triplets:
(
(Startups,are,uniquecase)
(Startups,use,options)
(Startups,seekingtoachieve,bigexit)
---------------------
Text:page_label:10
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

ThedefiningdifferencebetweenSiliconValleycompaniesandalmost
everyotherindustryintheU.S.Isthevirtuallyuniversalpracticeamong
techcompaniesofdistributingmeaningfulequity(usuallyintheformof
stockoptions)toordinaryemployees.ADefiningCharacteristicofStartupCulture
StevenJohnson,TechnologyWriter
?Startupsareauniquecase.Unlikeatlargercorporations,employee
ownershipisanessentialelementofstartupcommunitiesandculture
–Ashigh-risk/high-rewardenterprises,startupsuseoptionstoalign
employeecompensationwiththerisk-pronementalityofthe
business
–Startupsseekingtoachievea“bigexit”useoptionstoalignall
employeestodrivetowardthisdesiredoutcome
Triplets:
(Startups
(ESOP,is,necessarypartof,capitalstructure)
(VCs,require,ESOPs)
(Startups,arecompelled,tooffer,optionspackages)
---------------------
Text:page_label:11
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

TheESOPasaRecruitmentandRetentionTool
?ESOPsareacriticaltoolforrecruitingandretainingemployees
–Inacompetitivejobmarket,ESOPscanbeusedtoattracttoptalent
–Inatightlabormarket,ESOPscanbeusedtoretainkeyemployees
–Inavolatilemarket,ESOPscanbeusedtoretainemployeesduring
adownturn
–Inahigh-growthcompany,ESOPscanbeusedtoretainemployeesduring
aperiodofrapidexpansion
–Inacompanywithahighemployeeturnoverrate,ESOPscanbeusedto
reduceturnoverandassociatedcosts
–Inacompanywithahighexecutiveturnoverrate,ESOPscanbeusedto
(page_label:11,is,stage)
(stage,is,pre-seed)
(stage,is,seed)
(stage,is,early-vc)
---------------------
Text:page_label:11
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

page_label:12
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

page_label:14
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

page_label:15
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices
(ESOP,isnecessaryfor,Pre-seed)
(ESOP,isnotnecessaryfor,Pre-seed)
(ESOP,canbehelpfulfor,Pre-seed)
(ESOP,isnotnecessaryfor,Seed)
(ESOP,isrequiredfor,Early-VC)
(ESOP,mustbecreatedfor,Early-VC)
(ESOP,servesasaguidelinefor,Early-VC)
(ESOP,isimportanttohavestandardizedfor,Late-VC)
(ESOP,isgonefor,Growth)
(ESOP,sharesremainingaremorevaluablefor,Growth)
(ESOP,isusedtoallownewhirestoshareintheupsidefor,Growth)
(ESOP,shouldbesetupbetween,Pre-seedand,Early-VC)
---------------------
Text:page_label:12
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

HowMuchEquityShouldYouGrant?
StageConsiderationsTakeaway
Pre-seedFound
(Communicatingoptionstoemployees,canbecommunicated,%versus$)
(Communicatingoptionstoemployees,canbecommunicated,%)
(Communicatingoptionstoemployees,canbecommunicated,$)
(Communicatingoptionstoemployees,canbecommunicated,0.5%)
(Communicatingoptionstoemployees,canbecommunicated,$200,000)
---------------------
Text:page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

ExercisePrice:MarketPricevs.Discount
Whensettingtheexercisepriceforoptions,therearetwo
approaches:(1)setthepriceequaltothemarketpriceof
thestockatthetimeofgrant,or(2)setthepriceata
discounttothemarketprice.
MarketPrice:
?Fairtoemployeesandthecompany
?Notaxdeductionforcompany
?Employeescansellimmediately
?Employeescanexerciseimmediately
Discount:
(Communicationofoptionspackages,recommended,dollarvalue)
(Communicationofoptionspackages,recommendedagainst,percentofthecompany)
(Communicationofoptionspackages,effectivewhen,dollarvalue)
---------------------
Text:page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

or(2)adollarvaluebasedonthe
currentvaluation;weencouragethelatterwhenpossible
%$
“Wearegrantingyouoptionsequivalentto
0.5%ofthecompany’sequity”
Considerations:
?Atanearlystage,theonlyway
tocommunicateoptionsgrantsgivennotrue
valuationofthecompany
?Hardforemployeestograspwhatthey
arereallygetting(“0.5%seemstoolittle”)
?Invitesanegotiationaboutwhatpercent
ofthecompanyanemployeereally
deserves“Wearegrantingyouoptionsequivalentto
$200,000ofcompanystock”
Considerations
(page_label,is,12)
(file_path,is,/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf)
(5%,is,equivalentto)
(5%,is,$200,000ofcompanystock)
(Considerations,is,highlyeffectivewaytocommunicatethetruevalueofanoptionsgrant)
---------------------
Text:The2018FIFAWorldCupwasthe21stFIFAWorldCup,aninternationalmen'sfootballtournamentcontestedbythenationalteamsofFIFAmemberassociations.IttookplaceinRussiafrom14Juneto15July2018.ItwasthefirstWorldCuptobeheldinEasternEurope,andthe11thtimethatithadbeenheldinEurope.Atanestimatedcostofover$14.2billion,itisthemostexpensiveWorldCup.
Triplets:
(2018FIFAWorldCup,is,21stFIFAWorldCup)
(2018FIFAWorldCup,tookplacein,Russia)
(201
(HOWMUCHTOGRANT,PartII,)
---------------------
Text:page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

HOWMUCHTOGRANTPartII
Triplets:
(HOWMUCHTOGRANT,PartII,)
---------------------
Text:page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

HOWMUCHTOGRANTPartII
Triplets:
(HOWMUCHTOGRANT,PartII,)
---------------------
Text:page_label:13
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

HOWMUCHTOGRANTPartII
Triplets:
(HOWMUCHTOGRANT,PartII,)
----------------
(TwoApproaches,is,reality)
(CreatinganESOP,requires,acombinationoftop-downandbottom-upplanning)
(Decidethetotalamountofequitytobegranted,is,partofcreatinganESOP)
(Allocatethesesharestoemployeesovertime,is,partofcreatinganESOP)
(Decidetheappropriatesizeofindividualequitygrantsbyposition,is,partofcreatinganESOP)
(Issuethesesharesasemployeesarehired,is,partofcreatinganESOP)
---------------------
Text:page_label:15
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

TwoApproaches
Inreality,creatinganESOPwillrequireacombinationof
top-downandbottom-upplanningTopDownBottomUp
Decidethetotalamountof
equitytobegranted;allocate
thesesharestoemployees
overtimeDecidetheappropriatesizeof
individualequitygrantsby
position;issuethesesharesas
employeesare
(Top-DownProcess,consistsof,determining)
(Top-DownProcess,consistsof,creating)
(Top-DownProcess,consistsof,scheduling)

Text:page_label:16
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

TheBottom-UpProcess
1.Determinethenumberofsharestobegrantedtoeachemployee
2.Determinethegrantdate
3.Determinethevestingschedule
Triplets:
(Bottom-UpProcess,consistsof,determining)
(Bottom-UpProcess,consistsof,determining)
(Bottom-UpProcess,consistsof,determining)

Text:page_label:17
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

TheBottom-UpProcess(continued)
1.Determinetheexerciseprice
2.Determinetheexpirationdate
Triplets:
(Bottom-UpProcess,consists
(page_label,is,16)
(page_label,represents,howmuchequitytosetasideintheesop)
(page_label,has,valuesof15-20%forgenerallynon-founderemployees)
---------------------
Text:The2018-19budgetfortheDepartmentofEnergy(DOE)includes$3.7billionfortheOfficeofScience(SC),anincreaseof$645million(21.1%)overthe2018enactedlevel.
Triplets:
(The,2018-19budgetfortheDepartmentofEnergy,includes,$3.7billionfortheOfficeofScience)
(The,2018-19budgetfortheDepartmentofEnergy,is,anincreaseof$645millionoverthe2018enactedlevel)
(The,2018-19budgetfortheDepartmentofEnergy,represents,a21.1%increaseoverthe2018enactedlevelfortheOfficeofScience)
---------------------
Text:The2018
(page_label,is,16)
(file_path,is,/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf)
(no,is,0)
(technologyemphasis,is,0)
(geographicfocus,is,regionthatisnotconsideredastartuphub)
(hiringneeds,areprimarily,administrativeorback-officeteammembers)
(percentageofcompanyissuedtononfounderemployees,isbetween,15%and20%)
(founders,are,topmanagers,buthireotherstofillkeytechnicalorfunctionalroles)
(dnaofthecompany,is,applyingtechnologytoanon-technicalindustry)
(geographicfocus,is,eitherwhollyorpartiallyinastartuphub)
(hiringneeds,areprimarily,salesandmarketingteammembers)
(founders,arenottopmanagersinthebusiness,orplantostepaside)
(dnaofthecompany,is,technology,engineering,ordatascience)
(geographicfocus,is,inaleadingstartuphubsuchassf,
(page_label,is,16)
(file_path,is,/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf)
(companies,issue,upto25%)
(founders,are,topmanagers)
(founders,arenot,topmanagersinthebusiness,or)
(DNA,is,inapplyingtechnologytoanon-technicalindustry)
(DNA,is,intechnology,engineering,ordatascience)
(geographicfocus,is,whollyorpartiallyinastartuphub)
(geographicfocus,is,inaleadingstartuphubsuchasSF,NYCorBoston)
(hiringneeds,are,primarilysalesandmarketingteammembers)
(hiringneeds,are,primarilyengineering,development,ortechnicalteammembers)
---------------------
Text:The2018-19seasonoftheNationalBasketballAssociation(NBA)isthe72ndseasonoftheNationalBasketballAssociation.
Triplets:
(2018-19season,is,the7
(TypicalDistributionSchedule,consistsof,Seniority)
(TypicalDistributionSchedule,consistsof,EquityAllocation)
(First,consistsof,10%)
(Next,consistsof,5%)
(Next,consistsof,5%)
(CTO,consistsof,1-5%)
(KeyDeveloperorEngineer,consistsof,1-2%)
(OtherFunctionalTeamMember,consistsof,0.5-1.5%)
(Nonon-foundingmemberoftheseniorteam,shouldnotexceed,10%)
---------------------
Text:page_label:18
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

3.VestingSchedule
?Fouryearvestingscheduleismostcommon.
?Cliffvestingislesscommon,butcanbeusedtoretainkeyemployees.
?Monthlyvestingislesscommon,butcanbeusedtoalignemployeeinterestswithcompanyperformance.
Triplets:
(VestingSchedule,ismostcommon
(Bottom-UpProcess,consistsof,Segmentyourhumanresources)
(Bottom-UpProcess,consistsof,Createpaymultipliersforeachjobfunction)
(Bottom-UpProcess,consistsof,Determinethedollarvalueofanoptionsgrant)
(Bottom-UpProcess,consistsof,Determinethecurrentshareprice)
(Bottom-UpProcess,consistsof,Calculateoptionsgrants)
---------------------
Text:page_label:19
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

TheTop-DownProcess
1.Determinethetotaldollaramounttobespentonoptions
2.Determinethenumberofsharestobereservedforoptions
3.Determinethenumberofoptionstobegranted
4.Determinetheexerciseprice
5.Determinethevestingschedule
Triplets:
(Top-DownProcess,consistsof,Determinethetotaldollaramounttobespentonoptions)
(Top-DownProcess,consistsof,Determinethenumberofsharestobereservedforoptions)
(Top-
(SegmentYourHumanResources,is,segmentation)
(SegmentYourHumanResources,has,SegmentRoles)
(SegmentYourHumanResources,has,Award)
---------------------
Text:page_label:20
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

2.CommunicateEarlyandOften
?Communicatetheplantoallemployeesassoonaspossible
?Communicatetheplantoallnewhiresaspartoftheirorientation
?Communicatetheplantoallemployeesatleastannually
?Communicatetheplantoallemployeeswhenthereisamaterialchange
Triplets:
(CommunicateEarlyandOften,is,communication)
(CommunicateEarlyandOften,has,Communicatetheplantoallemployeesassoonaspossible)
(CommunicateEarlyandOften,has,Communicatetheplantoallnewhiresaspartoftheirorientation)
(CommunicateEarlyandOften,has,Communicatetheplantoallemployeesatleastannually)
(CommunicateEarlyandOften,
(2,establish,PayMultipliersforEachRole)
(Segment,Roles,2)
(Segment,Award,?)
---------------------
Text:page_label:21
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

3.EstablishVestingSchedules
SegmentVestingSchedule
inYearsor%?
Triplets:
(3,establish,VestingSchedules)
(Segment,VestingSchedule,?)
---------------------
Text:page_label:22
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

4.EstablishPerformanceCriteria
SegmentPerformanceCriteria
in%or$?
Triplets:
(4,establish,PerformanceCriteria)
(Segment,PerformanceCriteria,?)
---------------------
Text:page_label:23
file_path:/content/Documents/Employee-Stock-Option-
(page_label,is,20)
(2,establish,PayMultipliersforEachRole)
(Segment,is,Roles)
(Segment,is,Award)
(Segment,is,OptionsMultiplier)
(Segment,is,Founders)
(Segment,is,Co-Founders)
(Segment,is,%)
(Segment,is,FoundingTeam)
(Segment,is,Technical&Product)
(Segment,is,Early-StageHires)
(Segment,is,SeniorTeam)
(Segment,is,C-Level)
(Segment,is,Directors/VPs)
(Segment,is,Functional/TechnicalTeam)
(Segment,is,SupportTeam)
(Segment,is,$)
(Segment,is,0.5x)
(Segment,is,1.0x)
(Segment,is,0.25x)
(Segment,is,0.5x)
(Segment,is,0.1x)
(Segment,is,0.0x)
(page_label,is,2)

(Employee,BaseSalary,x)
(Employee,Options,x)
(Employee,OptionsMultiplier,basedontheemployee’sroleinHRsegmentationschedule)
---------------------
Text:page_label:21
file_path:/content/Documents/Employee-Stock-Option-Plans-ESOP-Best-Practices-2.pdf

3.DeterminetheDollarValueoftheOptionsGrant
Employee
BaseSalary=xOptions
MultiplierDollarValue
ofOptionsGrantBaseSalaryasnegotiatedwith
theemployeeatthetimeofhire
orpromotion
OptionsMultiplierisdecided
basedontheemployee’srolein
theHRsegmentationschedule
Triplets:
(Employee,BaseSalary,x)
(Employee,Options,x)
(Employee,OptionsMultiplier,basedontheemployee’sroleinHRsegmentationschedule)
---------------------
Text:page_label:21
file_path:/content/Documents/Employ

9、構(gòu)建查詢引擎來(lái)查詢知識(shí)圖譜

query='WhatisESOP?'
query_engine=index.as_query_engine(include_text=True,
response_mode='tree_summarize',
embedding_mode='hybrid',
similarity_top_k=5,)
#
message_template=f'''<|system|>PleasecheckifthefollowingpiecesofcontexthasanymentionofthekeywordsprovidedintheQuestion.Ifnotthendon'tknowtheanswer,justsaythatyoudon'tknow.Stopthere.Pleasedonottrytomakeupananswer.
<|user|>
Question:{query}
HelpfulAnswer:
'''
#
response=query_engine.query(message_template)
#
print(response.response.split('<|assistant|>')[-1].strip())
#####OUTPUT#####################
ESOPstandsforEmployeeStockOwnershipPlan.Itisaretirementplanthatallowsemployeestoreceivecompanystockorstockoptionsaspartoftheircompensation.Insimplerterms,itisaplanthatallowsemployeestoownaportionofthecompanytheyworkfor.Thiscanbeamotivatingfactorforemployeesastheyhaveadirectstakeinthecompany'ssuccess.ESOPscanalsobeatax-efficientwayforcompaniestoprovideretirementbenefitstotheiremployees.


query='WhoisAtul?'
message_template=f'''<|system|>PleasecheckifthefollowingpiecesofcontexthasanymentionofthekeywordsprovidedintheQuestion.Ifnotthendon'tknowtheanswer,justsaythatyoudon'tknow.Stopthere.Pleasedonottrytomakeupananswer.
<|user|>
Question:{query}
HelpfulAnswer:
'''
#
response=query_engine.query(message_template)
#
print(response.response.split('<|assistant|>')[-1].strip())

################OUTPUT#####################
Idonothavepriorknowledgeorcontextaboutwhoatulis.PleaseprovidemoreinformationorcontextsoIcanassistyoubetter.Withoutanyfurthercontext,Idonotknowtheanswertoyourquestion.

10、可視化表示

frompyvis.networkimportNetwork
fromIPython.displayimportdisplay
g=index.get_networkx_graph()
net=Network(notebook=True,cdn_resources='in_line',directed=True)
net.from_nx(g)
net.show('graph.html')
net.save_graph('Knowledge_graph.html')
#
importIPython
IPython.display.HTML(filename='/content/Knowledge_graph.html')

11、持久化保存

storage_context.persist()

總結(jié)

對(duì)于語(yǔ)言模型(LLM)幻覺(jué),知識(shí)圖譜被證明優(yōu)于向量數(shù)據(jù)庫(kù)。知識(shí)圖譜提供更準(zhǔn)確、多樣化、有趣、邏輯和一致的信息,減少了LLM中出現(xiàn)幻覺(jué)的可能性。這種優(yōu)越性源于它們能夠提供關(guān)于實(shí)體之間關(guān)系的精確細(xì)節(jié),而不僅僅是表示相似性,支持更復(fù)雜的查詢和邏輯推理。

向量數(shù)據(jù)庫(kù)以其數(shù)字?jǐn)?shù)組在相似性搜索和最佳匹配場(chǎng)景中表現(xiàn)出色。最終,兩者之間的選擇取決于項(xiàng)目的需求,包括數(shù)據(jù)的性質(zhì)、關(guān)系探索的需要以及預(yù)期的查詢類型。

審核編輯:黃飛

聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場(chǎng)。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問(wèn)題,請(qǐng)聯(lián)系本站處理。 舉報(bào)投訴
  • 數(shù)據(jù)庫(kù)
    +關(guān)注

    關(guān)注

    7

    文章

    3799

    瀏覽量

    64388
  • 語(yǔ)言模型
    +關(guān)注

    關(guān)注

    0

    文章

    524

    瀏覽量

    10277
  • 知識(shí)圖譜
    +關(guān)注

    關(guān)注

    2

    文章

    132

    瀏覽量

    7707
  • 大模型
    +關(guān)注

    關(guān)注

    2

    文章

    2448

    瀏覽量

    2701
  • LLM
    LLM
    +關(guān)注

    關(guān)注

    0

    文章

    288

    瀏覽量

    334

原文標(biāo)題:借助知識(shí)圖譜和Llama-Index實(shí)現(xiàn)基于大模型的RAG-下

文章出處:【微信號(hào):zenRRan,微信公眾號(hào):深度學(xué)習(xí)自然語(yǔ)言處理】歡迎添加關(guān)注!文章轉(zhuǎn)載請(qǐng)注明出處。

收藏 人收藏

    評(píng)論

    相關(guān)推薦

    分享自底向上構(gòu)建知識(shí)圖譜的過(guò)程

    一文揭秘!自底向上構(gòu)建知識(shí)圖譜全過(guò)程
    發(fā)表于 09-29 14:27

    KGB知識(shí)圖譜基于傳統(tǒng)知識(shí)工程的突破分析

    知識(shí)圖譜工程相比,其使用效果主要是受到其數(shù)據(jù)規(guī)模的影響。大數(shù)據(jù)時(shí)代,受益于海量數(shù)據(jù)、強(qiáng)大的計(jì)算能力和群智計(jì)算,知識(shí)圖譜能夠自動(dòng)構(gòu)建大規(guī)模、高質(zhì)量的知識(shí)庫(kù),從
    發(fā)表于 10-22 15:25

    KGB知識(shí)圖譜技術(shù)能夠解決哪些行業(yè)痛點(diǎn)?

    具有有效性。KGB知識(shí)圖譜憑借其在知識(shí)圖譜構(gòu)建,更新方面的技術(shù)優(yōu)勢(shì),現(xiàn)在已經(jīng)在公共安全,企業(yè)文件內(nèi)容核查等得以廣泛應(yīng)用。KGB知識(shí)圖譜現(xiàn)已
    發(fā)表于 10-30 15:34

    知識(shí)圖譜的三種特性評(píng)析

    的三個(gè)重要方面包括目標(biāo)的動(dòng)態(tài)性。比如根據(jù)已有的知識(shí)圖譜模型,能否一個(gè)在人工不干預(yù)的情況,自動(dòng)識(shí)別出同類事物;當(dāng)一名影星再婚之后,是否可以在人工不干預(yù)的情況,自動(dòng)識(shí)別他的新配偶。(2
    發(fā)表于 12-13 13:57

    KGB知識(shí)圖譜通過(guò)智能搜索提升金融行業(yè)分析能力

    的自然語(yǔ)言處理技術(shù),搭建專業(yè)領(lǐng)域深度知識(shí)圖譜,快速學(xué)習(xí)并迭代金融行業(yè)最新知識(shí)構(gòu)建一二級(jí)市場(chǎng)眾多實(shí)體模型,智能化的理解用戶的搜索請(qǐng)求,使得搜
    發(fā)表于 06-22 21:23

    如何使用知識(shí)圖譜對(duì)圖像語(yǔ)義進(jìn)行分析技術(shù)及應(yīng)用研究

    模型對(duì)圖像的機(jī)構(gòu)化語(yǔ)義信息進(jìn)行描述和抽取,在此基礎(chǔ)上研究了基于知識(shí)圖譜的圖像語(yǔ)義知識(shí)融合和加工技術(shù)構(gòu)建后的多層次圖像語(yǔ)義
    發(fā)表于 11-21 17:05 ?17次下載
    如何使用<b class='flag-5'>知識(shí)圖譜</b>對(duì)圖像語(yǔ)義進(jìn)行分析<b class='flag-5'>技術(shù)</b>及應(yīng)用研究

    知識(shí)圖譜在工程應(yīng)用中的關(guān)鍵技術(shù)、應(yīng)用及案例

    近年來(lái),知識(shí)圖譜及其相關(guān)技術(shù)得到快速發(fā)展,并被廣泛應(yīng)用于工業(yè)界各種認(rèn)知智能場(chǎng)景中。在簡(jiǎn)述知識(shí)圖譜相關(guān)研究的基礎(chǔ)上,介紹知識(shí)圖譜在工程應(yīng)用中的關(guān)鍵技術(shù)
    發(fā)表于 03-30 15:12 ?15次下載
    <b class='flag-5'>知識(shí)圖譜</b>在工程應(yīng)用中的關(guān)鍵<b class='flag-5'>技術(shù)</b>、應(yīng)用及案例

    通用知識(shí)圖譜構(gòu)建技術(shù)的應(yīng)用及發(fā)展趨勢(shì)

    構(gòu)建平臺(tái),需要對(duì)知識(shí)圖譜構(gòu)建體系進(jìn)行研究,以滿足不同的行業(yè)應(yīng)用需求。文中以知識(shí)圖譜構(gòu)建為主線,首先介紹目前主流的通用
    發(fā)表于 04-14 11:37 ?27次下載
    通用<b class='flag-5'>知識(shí)圖譜</b><b class='flag-5'>構(gòu)建</b><b class='flag-5'>技術(shù)</b>的應(yīng)用及發(fā)展趨勢(shì)

    知識(shí)圖譜Knowledge Graph構(gòu)建與應(yīng)用

    一、知識(shí)圖譜概論 ? ? ? ? 1.1知識(shí)圖譜的起源和歷史 1.2知識(shí)圖譜的發(fā)展史——從框架、本體論、語(yǔ)義網(wǎng)、鏈接數(shù)據(jù)到知識(shí)圖譜 1.3知識(shí)圖譜
    發(fā)表于 09-17 10:12 ?651次閱讀

    知識(shí)圖譜知識(shí)圖譜的典型應(yīng)用

    作者:?cooldream2009? 我們構(gòu)建知識(shí)圖譜的目的,在于利用知識(shí)圖譜來(lái)做一些事情。有效利用知識(shí)
    的頭像 發(fā)表于 10-18 09:26 ?1978次閱讀
    <b class='flag-5'>知識(shí)圖譜</b>:<b class='flag-5'>知識(shí)圖譜</b>的典型應(yīng)用

    基于本體的金融知識(shí)圖譜自動(dòng)化構(gòu)建技術(shù)

    本評(píng)測(cè)任務(wù)參考 TAC KBP 中的 Cold Start 評(píng)測(cè)任務(wù)的方案,圍繞金融研報(bào)知識(shí)圖譜的自動(dòng)化圖譜構(gòu)建所展開。評(píng)測(cè)從預(yù)定義圖譜模式(Schema)和少量的種子
    的頭像 發(fā)表于 11-24 14:54 ?1143次閱讀

    如何利用模型構(gòu)建知識(shí)圖譜?如何利用模型操作結(jié)構(gòu)化數(shù)據(jù)?

    上圖是之前,我基于大語(yǔ)言模型構(gòu)建知識(shí)圖譜的成品圖,主要是將金融相關(guān)的股票、人物、漲跌幅之類的基金信息抽取出來(lái)。
    的頭像 發(fā)表于 08-24 16:56 ?1.6w次閱讀
    如何<b class='flag-5'>利用</b>大<b class='flag-5'>模型</b><b class='flag-5'>構(gòu)建</b><b class='flag-5'>知識(shí)圖譜</b>?如何<b class='flag-5'>利用</b>大<b class='flag-5'>模型</b>操作結(jié)構(gòu)化數(shù)據(jù)?

    知識(shí)圖譜與大模型結(jié)合方法概述

    本文作者 |? 黃巍 《Unifying Large Language Models and Knowledge Graphs: A Roadmap》總結(jié)了大語(yǔ)言模型知識(shí)圖譜融合的三種路線:1
    的頭像 發(fā)表于 10-29 15:50 ?970次閱讀
    <b class='flag-5'>知識(shí)圖譜</b>與大<b class='flag-5'>模型</b>結(jié)合方法概述

    利用知識(shí)圖譜Llama-Index技術(shù)構(gòu)建模型驅(qū)動(dòng)RAG系統(tǒng)(上)

    向量數(shù)據(jù)庫(kù)是一組高維向量的集合,用于表示實(shí)體或概念,例如單詞、短語(yǔ)或文檔。向量數(shù)據(jù)庫(kù)可以根據(jù)實(shí)體或概念的向量表示來(lái)度量它們之間的相似性或關(guān)聯(lián)性。
    的頭像 發(fā)表于 02-22 14:07 ?1111次閱讀
    <b class='flag-5'>利用</b><b class='flag-5'>知識(shí)圖譜</b>與<b class='flag-5'>Llama-Index</b><b class='flag-5'>技術(shù)</b><b class='flag-5'>構(gòu)建</b>大<b class='flag-5'>模型</b><b class='flag-5'>驅(qū)動(dòng)</b>的<b class='flag-5'>RAG</b><b class='flag-5'>系統(tǒng)</b>(上)

    知識(shí)圖譜與大模型之間的關(guān)系

    在人工智能的廣闊領(lǐng)域中,知識(shí)圖譜與大模型是兩個(gè)至關(guān)重要的概念,它們各自擁有獨(dú)特的優(yōu)勢(shì)和應(yīng)用場(chǎng)景,同時(shí)又相互補(bǔ)充,共同推動(dòng)著人工智能技術(shù)的發(fā)展。本文將從定義、特點(diǎn)、應(yīng)用及相互關(guān)系等方面深入探討
    的頭像 發(fā)表于 07-10 11:39 ?1064次閱讀
    主站蜘蛛池模板: 亚洲卡1卡2卡新区网站| 一色屋成人免费精品网| 亚洲国产激情在线一区| 免费网站成人亚洲| 午夜剧场官网| aaaaaa级特色特黄的毛片| 就去色播| 激情伦成人综合小说| 中文字幕在线观看一区二区三区 | 2018天天干天天操| 淫性视频| 国产3p在线播放| 天天爽夜夜爽一区二区三区| 天堂8在线天堂bt| 免费在线观看污视频| 欧美成人久久| 拍拍拍无档又黄又爽视频| 久久久久久免费播放一级毛片| 欧美ww| 免费 在线播放| 伊人网大| 成年美女| 一区二区三区福利| 免费一级网站| 国产小视频在线免费观看| 午夜片在线| 午夜视频播放| 欧美亚洲专区| 国产一级一片免费播放视频| 国产播放啪视频免费视频| 四虎影视院| 国产一区二区三区乱码| 在线黄网| 日本福利小视频| 久久久久久久久久免观看| 午夜三级在线| 国内露脸夫妇交换精品| 欧美性黄色| 四虎影院在线观看免费| 夜夜澡人人爽人人喊_欧美| 精品国产免费观看一区高清|