import{s as le,n as oe,o as re}from"../chunks/scheduler.505acc25.js";import{S as me,i as pe,e as l,s as a,c as R,h as ue,a as o,d as n,b as i,f as se,g as D,j as m,k as ae,l as he,m as s,n as F,t as O,o as B,p as J}from"../chunks/index.fbb49fb4.js";import{C as de}from"../chunks/CopyLLMTxtMenu.564b44fd.js";import{H as ie}from"../chunks/Heading.511e0027.js";import{E as ge}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8c19e80e.js";function ce(K){let r,T,y,_,p,M,u,C,h,N='Welcome to this module, where you’ll learn how to build LLM-powered agents using the <a href="https://www.llamaindex.ai/" rel="nofollow">LlamaIndex</a> toolkit.',I,d,Q="LlamaIndex is <strong>a complete toolkit for creating LLM-powered agents over your data using indexes and workflows</strong>. For this course we’ll focus on three main parts that help build agents in LlamaIndex: <strong>Components</strong>, <strong>Agents and Tools</strong> and <strong>Workflows</strong>.",H,g,V='<img src="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit2/llama-index/thumbnail.png" alt="LlamaIndex"/>',P,c,X="Let’s look at these key parts of LlamaIndex and how they help with agents:",A,f,Y="<li><strong>Components</strong>: Are the basic building blocks you use in LlamaIndex. These include things like prompts, models, and databases. Components often help connect LlamaIndex with other tools and libraries.</li> <li><strong>Tools</strong>: Tools are components that provide specific capabilities like searching, calculating, or accessing external services. They are the building blocks that enable agents to perform tasks.</li> <li><strong>Agents</strong>: Agents are autonomous components that can use tools and make decisions. They coordinate tool usage to accomplish complex goals.</li> <li><strong>Workflows</strong>: Are step-by-step processes that process logic together. Workflows or agentic workflows are a way to structure agentic behaviour without the explicit use of agents.</li>",W,w,S,x,Z="While LlamaIndex does some things similar to other frameworks like smolagents, it has some key benefits:",E,L,ee="<li><strong>Clear Workflow System</strong>: Workflows help break down how agents should make decisions step by step using an event-driven and async-first syntax. This helps you clearly compose and organize your logic.</li> <li><strong>Advanced Document Parsing with LlamaParse</strong>: LlamaParse was made specifically for LlamaIndex, so the integration is seamless, although it is a paid feature.</li> <li><strong>Many Ready-to-Use Components</strong>: LlamaIndex has been around for a while, so it works with lots of other frameworks. This means it has many tested and reliable components, like LLMs, retrievers, indexes, and more.</li> <li><strong>LlamaHub</strong>: is a registry of hundreds of these components, agents, and tools that you can use within LlamaIndex.</li>",z,b,te=`All of these concepts are required in different scenarios to create useful agents.
In the following sections, we will go over each of these concepts in detail.
After mastering the concepts, we will use our learnings to <strong>create applied use cases with Alfred the agent</strong>!`,U,$,ne="Getting our hands on LlamaIndex is exciting, right? So, what are we waiting for? Let’s get started with <strong>finding and installing the integrations we need using LlamaHub! 🚀</strong>",j,v,q,k,G;return p=new de({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),u=new ie({props:{title:"Introduction to LlamaIndex",local:"introduction-to-llamaindex",headingTag:"h1"}}),w=new ie({props:{title:"What Makes LlamaIndex Special?",local:"what-makes-llamaindex-special",headingTag:"h2"}}),v=new ge({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit2/llama-index/introduction.mdx"}}),{c(){r=l("meta"),T=a(),y=l("p"),_=a(),R(p.$$.fragment),M=a(),R(u.$$.fragment),C=a(),h=l("p"),h.innerHTML=N,I=a(),d=l("p"),d.innerHTML=Q,H=a(),g=l("p"),g.innerHTML=V,P=a(),c=l("p"),c.textContent=X,A=a(),f=l("ul"),f.innerHTML=Y,W=a(),R(w.$$.fragment),S=a(),x=l("p"),x.textContent=Z,E=a(),L=l("ul"),L.innerHTML=ee,z=a(),b=l("p"),b.innerHTML=te,U=a(),$=l("p"),$.innerHTML=ne,j=a(),R(v.$$.fragment),q=a(),k=l("p"),this.h()},l(e){const t=ue("svelte-u9bgzb",document.head);r=o(t,"META",{name:!0,content:!0}),t.forEach(n),T=i(e),y=o(e,"P",{}),se(y).forEach(n),_=i(e),D(p.$$.fragment,e),M=i(e),D(u.$$.fragment,e),C=i(e),h=o(e,"P",{"data-svelte-h":!0}),m(h)!=="svelte-pzusro"&&(h.innerHTML=N),I=i(e),d=o(e,"P",{"data-svelte-h":!0}),m(d)!=="svelte-7ys5t1"&&(d.innerHTML=Q),H=i(e),g=o(e,"P",{"data-svelte-h":!0}),m(g)!=="svelte-xchtbh"&&(g.innerHTML=V),P=i(e),c=o(e,"P",{"data-svelte-h":!0}),m(c)!=="svelte-1bsxja5"&&(c.textContent=X),A=i(e),f=o(e,"UL",{"data-svelte-h":!0}),m(f)!=="svelte-1ugthst"&&(f.innerHTML=Y),W=i(e),D(w.$$.fragment,e),S=i(e),x=o(e,"P",{"data-svelte-h":!0}),m(x)!=="svelte-huvrrb"&&(x.textContent=Z),E=i(e),L=o(e,"UL",{"data-svelte-h":!0}),m(L)!=="svelte-1272b3z"&&(L.innerHTML=ee),z=i(e),b=o(e,"P",{"data-svelte-h":!0}),m(b)!=="svelte-1eji5hu"&&(b.innerHTML=te),U=i(e),$=o(e,"P",{"data-svelte-h":!0}),m($)!=="svelte-hdbrd3"&&($.innerHTML=ne),j=i(e),D(v.$$.fragment,e),q=i(e),k=o(e,"P",{}),se(k).forEach(n),this.h()},h(){ae(r,"name","hf:doc:metadata"),ae(r,"content",fe)},m(e,t){he(document.head,r),s(e,T,t),s(e,y,t),s(e,_,t),F(p,e,t),s(e,M,t),F(u,e,t),s(e,C,t),s(e,h,t),s(e,I,t),s(e,d,t),s(e,H,t),s(e,g,t),s(e,P,t),s(e,c,t),s(e,A,t),s(e,f,t),s(e,W,t),F(w,e,t),s(e,S,t),s(e,x,t),s(e,E,t),s(e,L,t),s(e,z,t),s(e,b,t),s(e,U,t),s(e,$,t),s(e,j,t),F(v,e,t),s(e,q,t),s(e,k,t),G=!0},p:oe,i(e){G||(O(p.$$.fragment,e),O(u.$$.fragment,e),O(w.$$.fragment,e),O(v.$$.fragment,e),G=!0)},o(e){B(p.$$.fragment,e),B(u.$$.fragment,e),B(w.$$.fragment,e),B(v.$$.fragment,e),G=!1},d(e){e&&(n(T),n(y),n(_),n(M),n(C),n(h),n(I),n(d),n(H),n(g),n(P),n(c),n(A),n(f),n(W),n(S),n(x),n(E),n(L),n(z),n(b),n(U),n($),n(j),n(q),n(k)),n(r),J(p,e),J(u,e),J(w,e),J(v,e)}}}const fe='{"title":"Introduction to LlamaIndex","local":"introduction-to-llamaindex","sections":[{"title":"What Makes LlamaIndex Special?","local":"what-makes-llamaindex-special","sections":[],"depth":2}],"depth":1}';function we(K){return re(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ye extends me{constructor(r){super(),pe(this,r,we,ce,le,{})}}export{ye as component};
