(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[495],{73044:function(e,t,o){(window.__NEXT_P=window.__NEXT_P||[]).push(["/models",function(){return o(26202)}])},24155:function(e,t,o){"use strict";o.d(t,{R:function(){return x},q:function(){return b}});var n,r=o(50489),a=o(55916),i=o(61128),l=o(52983),s=o(1250),c=o(36948),u=o(86785),d=o(38190),p=o(78045),g=["animate","hideOverlay"],m=["animate","hideOverlay"],h=l.createElement,f=(0,s.F4)(n||(n=(0,i.Z)(["\n0% {\n    opacity: 0;\n    transform: scale(0.2);\n    animation-timing-function: cubic-bezier(.74,.25,.76,1);\n}\n10% {\n    opacity: 1;\n    transform: scale(1);\n    animation-timing-function: cubic-bezier(.12,.01,.08,.99);\n}\n100% {\n    transform: scale(1);\n    opacity: 0.8;\n}"]))),b=function(e){var t=e.animate,o=(e.hideOverlay,(0,a.Z)(e,g)),n=(0,c.F)(),i=[n.colors.primary["400"],n.colors.secondary["700"],n.colors.cyan["700"],n.colors.teal["700"]],l="radial-gradient(at top left, ".concat(i[0]," 40%, transparent 80%), radial-gradient(at bottom, ").concat(i[1]," 0%, transparent 60%), radial-gradient(at bottom left, var(--chakra-colors-cyan-700) 0%, transparent 50%),\n        radial-gradient(at top right, ").concat(i[3]," 40%, transparent 80%), radial-gradient(at bottom right, ").concat(i[0]," 0%, transparent 50%);");return h(u.xu,(0,r.Z)({position:"absolute",left:"0",width:"100%",zIndex:"1",opacity:"0",animation:t&&"".concat(f," 4s ease-out"),sx:{animationFillMode:"forwards"}},o),h(d.o,{ratio:1,width:"100%",margin:"0 auto",maxW:"container.2xl",left:"0"},h(u.xu,{backgroundImage:l,backgroundBlendMode:"multiply",opacity:(0,p.ff)("0.8","0.6"),overflow:"hidden",pointerEvents:"none",objectFit:"cover",filter:"blur(100px)",transform:"translate3d(0, 0, 0)"})))},x=function(e){var t=e.animate,o=(e.hideOverlay,(0,a.Z)(e,m)),n=(0,c.F)(),i=[n.colors.primary["600"],n.colors.secondary["700"],n.colors.cyan["400"],n.colors.teal["400"]],l="radial-gradient(at top left, ".concat(i[0]," 40%, transparent 80%), radial-gradient(at bottom, ").concat(i[1]," 0%, transparent 60%), radial-gradient(at bottom left, var(--chakra-colors-cyan-700) 0%, transparent 50%),\n        radial-gradient(at top right, ").concat(i[3]," 40%, transparent 80%), radial-gradient(at bottom right, ").concat(i[0]," 0%, transparent 50%);");return h(u.xu,(0,r.Z)({position:"absolute",left:"0",width:"100%",zIndex:"1",opacity:"0",animation:t&&"".concat(f," 4s ease-out"),sx:{animationFillMode:"forwards"}},o),h(d.o,{ratio:1,width:"100%",margin:"0 auto",maxW:"container.2xl",left:"0"},h(u.xu,{backgroundImage:l,backgroundBlendMode:"multiply",opacity:(0,p.ff)("0.8","0.6"),overflow:"hidden",pointerEvents:"none",objectFit:"cover",filter:"blur(100px)",transform:"translate3d(0, 0, 0)"})))}},26202:function(e,t,o){"use strict";o.r(t),o.d(t,{default:function(){return R}});var n=o(50489),r=o(55916),a=o(52983),i=o(6158),l=o.n(i),s=o(86785),c=o(75625),u=o(70406),d=o(95308),p=o(41014),g=o(79979),m=o(54929),h=o(79946),f=o(616),b=o(21382),x=o(92785),y=o(882),w=o(71344),v=o(13788),k=o(97666),z=o(24155),T=o(17441),E=o(75266),_=a.createElement;T.kL.register(T.uw,T.f$,T.ZL,T.Dx,T.u,T.De);var C={responsive:!0,scales:{y:{beginAtZero:!0,max:1}},plugins:{legend:{position:"top"},title:{display:!0,text:"Accuracy Comparison"}}},A={labels:["gpt-3.5 (few-shot)","gpt-4o (zero-shot)","Triplex-tiny (zero-shot)","gpt-4o (few-shot)","Triplex (zero-shot)"],datasets:[{label:"Exact Match F1 Score",data:[.385,.431,.555,.571,.593],backgroundColor:["rgba(255, 206, 86, 0.8)","rgba(54, 162, 235, 0.8)","rgba(255, 99, 132, 0.8)","rgba(54, 162, 235, 0.8)","rgba(75, 192, 192, 0.8)"]}]},S=function(){return _(E.$Q,{options:C,data:A})},O=a.createElement;T.kL.register(T.uw,T.f$,T.ZL,T.Dx,T.u,T.De);var P={responsive:!0,scales:{y:{beginAtZero:!0}},plugins:{legend:{position:"top"},title:{display:!0,text:"Price Comparison (expected $ per million output tokens)"}}},F={labels:["Triplex-tiny","Triplex","gpt-4o"],datasets:[{label:"Price ($ per million output tokens)",data:[.25,.5,30],backgroundColor:["rgba(255, 99, 132, 0.8)","rgba(75, 192, 192, 0.8)","rgba(54, 162, 235, 0.8)"]}]},Z=function(){return O(E.$Q,{options:P,data:F})},I=["children"],M=a.createElement,X=function(e){var t=e.children,o=(0,r.Z)(e,I);return M(s.xu,(0,n.Z)({position:"relative",borderRadius:"lg",overflow:"hidden",transition:"all 0.3s",bg:"gray.800",_hover:{transform:"scale(1.05)",bgGradient:"linear(to-r, gray.800, indigo.800)"}},o),M(c.k,{direction:"column",alignItems:"flex-start",height:"100%",position:"relative",zIndex:"1",p:8},t))},R=function(){var e=l()(function(){return Promise.all([o.e(156),o.e(98)]).then(o.bind(o,97098))},{loadableGenerated:{webpack:()=>[97098]},loadableGenerated:{webpack:()=>[97098]},loadableGenerated:{webpack:function(){return[97098]}}});return M(s.xu,null,M(v.Z,{title:"Triplex Model | SciPhi",description:"Triplex: State-of-the-art model for knowledge graph construction"}),M(s.xu,{w:"full",position:"relative",overflow:"hidden"},M(z.q,{top:"-1000px",opacity:"0.3",_dark:{opacity:.4},height:"500px"}),M(u.W,{maxW:"container.xl",py:{base:20,lg:32}},M(w.F,null,M(d.X,{as:"h1",size:"3xl",fontWeight:"bold",textAlign:"center",mb:6},"Introducing Triplex"),M(p.x,{fontSize:"xl",textAlign:"center",mb:12},"State-of-the-art model for knowledge graph construction")),M(g.M,{columns:{base:1,md:2},spacing:10},M(s.xu,null,M(d.X,{as:"h2",size:"lg",mb:4},"Overview"),M(p.x,{mb:4},"Triplex is a finetuned version of Phi3-3.8B designed for creating knowledge graphs from unstructured data. It excels at extracting triplets - simple statements consisting of a subject, predicate, and object - from text or other data sources."),M(m.aV,{spacing:3},M(m.HC,null,M(m.DE,{as:y.ZSR,color:"green.500"}),"98% cost reduction for knowledge graph creation"),M(m.HC,null,M(m.DE,{as:y.ZSR,color:"green.500"}),"Outperforms GPT-4 at 1/60th the cost"),M(m.HC,null,M(m.DE,{as:y.ZSR,color:"green.500"}),"Enables local graph building with SciPhi's R2R"),M(m.HC,null,M(m.DE,{as:y.ZSR,color:"green.500"}),"Open-source and available on HuggingFace"))),M(s.xu,null,M(d.X,{as:"h2",size:"lg",mb:4},"Performance"),M(S,null),M(p.x,{mt:4},"Triplex significantly outperforms GPT-4 in accuracy for knowledge graph construction tasks while being much more cost-effective."))),M(s.xu,{my:16},M(d.X,{as:"h2",size:"lg",mb:6,textAlign:"center"},"Resources"),M(g.M,{columns:{base:1,md:3},spacing:10},M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Blog Post"),M(p.x,{color:"gray.200",mb:4},"Learn more about Triplex and its capabilities."),M(h.r,{href:"https://www.sciphi.ai/blog/triplex",isExternal:!0,color:"blue.300",_hover:{color:"blue.200"}},"Read the Blog ",M(f.J,{as:x.AlO,mx:"2px"}))),M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Demo"),M(p.x,{color:"gray.200",mb:4},"Try out Triplex with our interactive demo."),M(h.r,{href:"https://kg.sciphi.ai",isExternal:!0,color:"blue.300",_hover:{color:"blue.200"}},"Try the Demo ",M(f.J,{as:x.AlO,mx:"2px"}))),M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Cookbook"),M(p.x,{color:"gray.200",mb:4},"Get started with our comprehensive guide."),M(h.r,{href:"https://r2r-docs.sciphi.ai/cookbooks/knowledge-graph",isExternal:!0,color:"blue.300",_hover:{color:"blue.200"}},"Explore the Cookbook ",M(f.J,{as:x.AlO,mx:"2px"}))))),M(g.M,{columns:{base:1,md:2},spacing:10,my:16},M(s.xu,null,M(d.X,{as:"h2",size:"lg",mb:6},"Usage"),M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Python Example"),M(s.xu,{bg:"gray.700",p:4,borderRadius:"md",fontSize:"sm"},M(e,{language:"python"},'import json\nfrom transformers import AutoModelForCausalLM, AutoTokenizer\n\ndef triplextract(model, tokenizer, text, entity_types, predicates):\n    # ... (function implementation)\n\nmodel = AutoModelForCausalLM.from_pretrained(\n  "sciphi/triplex",\n  trust_remote_code=True).to(\'cuda\').eval()\ntokenizer = AutoTokenizer.from_pretrained(\n  "sciphi/triplex",\n  trust_remote_code=True)\n\nentity_types = [\n  "LOCATION",\n  "POSITION",\n  "DATE",\n  "CITY",\n  "COUNTRY",\n  "NUMBER"\n]\npredicates = [ "POPULATION", "AREA" ]\ntext = """\nSan Francisco, officially the City and County of San Francisco, is a commercial, financial, and cultural center in Northern California. \n\nWith a population of 808,437 residents as of 2022, San Francisco is the fourth most populous city in the U.S. state of California behind Los Angeles, San Diego, and San Jose.\n"""\n\nprediction = triplextract(model, tokenizer, text, entity_types, predicates)\nprint(prediction)'))),M(s.xu,null,M(d.X,{as:"h2",size:"lg",mb:6},"Cost-Effective Solution"),M(Z,null),M(p.x,{mt:4,color:"gray.200"},"Triplex offers comparable results to GPT-4 at a fraction of the cost, making it an economical choice for knowledge graph construction."))),M(g.M,{columns:{base:1,md:3},spacing:10,mt:16},M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Versatile Applications"),M(p.x,{color:"gray.200"},"Ideal for a wide range of tasks including text understanding, transformation, and knowledge graph construction.")),M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Cost-Effective"),M(p.x,{color:"gray.200"},"Offers a 98% cost reduction for knowledge graph creation compared to traditional methods.")),M(X,null,M(d.X,{as:"h3",size:"md",mb:4,color:"white"},"Advanced Features"),M(p.x,{color:"gray.200"},"Supports named entity recognition and relationship extraction for comprehensive knowledge graph construction."))),M(c.k,{justifyContent:"center",mt:16},M(k.Z,{href:"https://huggingface.co/SciPhi/Triplex",size:"lg",rightIcon:M(f.J,{as:x.Rgz})},"Try Triplex on HuggingFace"),M(b.z,{as:"a",href:"https://kg.sciphi.ai",size:"lg",ml:4,rightIcon:M(f.J,{as:x.AlO}),variant:"outline"},"Try Demo")),M(s.xu,{my:16},M(d.X,{as:"h2",size:"lg",mb:6},"Commercial Usage"),M(p.x,{mb:4},"The weights for the models are licensed under cc-by-nc-sa-4.0. However, we waive these restrictions for organizations with under $5M USD in gross revenue in the most recent 12-month period."),M(p.x,{mb:4},"For organizations over this revenue limit or those wanting to remove GPL license requirements (dual-license), please contact our team for commercial licensing options.")))))}}},function(e){e.O(0,[44,329,888,774,179],function(){return e(e.s=73044)}),_N_E=e.O()}]);