import{s as Ae,n as Le,o as He}from"../chunks/scheduler.505acc25.js";import{S as ke,i as Me,e as i,s,c as q,h as Pe,a as l,d as n,b as o,f as Te,g as R,j as r,k as le,l as qe,m as a,n as G,t as j,o as E,p as I}from"../chunks/index.fbb49fb4.js";import{C as Re}from"../chunks/CopyLLMTxtMenu.564b44fd.js";import{H as re}from"../chunks/Heading.511e0027.js";import{E as Ge}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8c19e80e.js";function je(ue){let u,S,M,z,m,U,p,O,f,he='<img src="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit3/agentic-rag/thumbnail.jpg" alt="Agentic RAG banner"/>',D,d,me="In this unit, we will help Alfred, our friendly agent who is hosting the gala, by using Agentic RAG to create a tool that can be used to answer questions about the guests at the gala.",N,h,pe="<p>This is a ‘real-world’ use case for Agentic RAG, that you could use in your own projects or workplaces. If you want to get more out of this project, why not try it out on your own use case and share in Discord?</p>",Y,g,fe="You can choose any of the frameworks discussed in the course for this use case. We provide code samples for each in separate tabs.",B,c,F,v,de="Now, it’s time to get our hands dirty with an actual use case. Let’s set the stage!",J,w,ge="<strong>You decided to host the most extravagant and opulent party of the century.</strong> This means lavish feasts, enchanting dancers, renowned DJs, exquisite drinks, a breathtaking fireworks display, and much more.",K,b,ce="Alfred, your friendly neighbourhood agent, is getting ready to watch over all of your needs for this party, and <strong>Alfred is going to manage everything himself</strong>. To do so, he needs to have access to all of the information about the party, including the menu, the guests, the schedule, weather forecasts, and much more!",Q,y,ve="Not only that, but he also needs to make sure that the party is going to be a success, so <strong>he needs to be able to answer any questions about the party during the party</strong>, whilst handling unexpected situations that may arise.",W,x,we="He can’t do this alone, so we need to make sure that Alfred has access to all of the information and tools he needs.",V,$,be="First, let’s give him a list of hard requirements for the gala.",X,C,Z,_,ye=`A properly educated person in the age of the <strong>Renaissance</strong> needs to have three main traits.
He or she needed to be profound in the <strong>knowledge of sports, culture, and science</strong>. So, we need to make sure we can impress our guests with our knowledge and provide them with a truly unforgettable gala.
However, to avoid any conflicts, there are some <strong>topics, like politics and religion, that are to be avoided at a gala.</strong> It needs to be a fun party without conflicts related to beliefs and ideals.`,ee,T,xe="According to etiquette, <strong>a good host should be aware of guests’ backgrounds</strong>, including their interests and endeavours. A good host also gossips and shares stories about the guests with one another.",te,A,$e="Lastly, we need to make sure that we’ve got <strong>some general knowledge about the weather</strong> to ensure we can continuously find a real-time update to ensure perfect timing to launch the fireworks and end the gala with a bang! 🎆",ne,L,Ce=`As you can see, Alfred needs a lot of information to host the gala.
Luckily, we can help and prepare Alfred by giving him some <strong>Retrieval Augmented Generation (RAG) training!</strong>`,ae,H,_e="Let’s start by creating the tools that Alfred needs to be able to host the gala!",se,k,oe,P,ie;return m=new Re({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),p=new re({props:{title:"Introduction to Use Case for Agentic RAG",local:"introduction-to-use-case-for-agentic-rag",headingTag:"h1"}}),c=new re({props:{title:"A Gala to Remember",local:"a-gala-to-remember",headingTag:"h2"}}),C=new re({props:{title:"The Gala Requirements",local:"the-gala-requirements",headingTag:"h2"}}),k=new Ge({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit3/agentic-rag/introduction.mdx"}}),{c(){u=i("meta"),S=s(),M=i("p"),z=s(),q(m.$$.fragment),U=s(),q(p.$$.fragment),O=s(),f=i("p"),f.innerHTML=he,D=s(),d=i("p"),d.textContent=me,N=s(),h=i("blockquote"),h.innerHTML=pe,Y=s(),g=i("p"),g.textContent=fe,B=s(),q(c.$$.fragment),F=s(),v=i("p"),v.textContent=de,J=s(),w=i("p"),w.innerHTML=ge,K=s(),b=i("p"),b.innerHTML=ce,Q=s(),y=i("p"),y.innerHTML=ve,W=s(),x=i("p"),x.textContent=we,V=s(),$=i("p"),$.textContent=be,X=s(),q(C.$$.fragment),Z=s(),_=i("p"),_.innerHTML=ye,ee=s(),T=i("p"),T.innerHTML=xe,te=s(),A=i("p"),A.innerHTML=$e,ne=s(),L=i("p"),L.innerHTML=Ce,ae=s(),H=i("p"),H.textContent=_e,se=s(),q(k.$$.fragment),oe=s(),P=i("p"),this.h()},l(e){const t=Pe("svelte-u9bgzb",document.head);u=l(t,"META",{name:!0,content:!0}),t.forEach(n),S=o(e),M=l(e,"P",{}),Te(M).forEach(n),z=o(e),R(m.$$.fragment,e),U=o(e),R(p.$$.fragment,e),O=o(e),f=l(e,"P",{"data-svelte-h":!0}),r(f)!=="svelte-10xg9bk"&&(f.innerHTML=he),D=o(e),d=l(e,"P",{"data-svelte-h":!0}),r(d)!=="svelte-dln0jb"&&(d.textContent=me),N=o(e),h=l(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r(h)!=="svelte-1smsp4r"&&(h.innerHTML=pe),Y=o(e),g=l(e,"P",{"data-svelte-h":!0}),r(g)!=="svelte-chbkr8"&&(g.textContent=fe),B=o(e),R(c.$$.fragment,e),F=o(e),v=l(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-lwee7a"&&(v.textContent=de),J=o(e),w=l(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-ywrlwx"&&(w.innerHTML=ge),K=o(e),b=l(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-1yu8jhn"&&(b.innerHTML=ce),Q=o(e),y=l(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-1b2ats5"&&(y.innerHTML=ve),W=o(e),x=l(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-8od5zx"&&(x.textContent=we),V=o(e),$=l(e,"P",{"data-svelte-h":!0}),r($)!=="svelte-1qicvrg"&&($.textContent=be),X=o(e),R(C.$$.fragment,e),Z=o(e),_=l(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-90d9lk"&&(_.innerHTML=ye),ee=o(e),T=l(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-md96cy"&&(T.innerHTML=xe),te=o(e),A=l(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-50f9pa"&&(A.innerHTML=$e),ne=o(e),L=l(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-xqu6bj"&&(L.innerHTML=Ce),ae=o(e),H=l(e,"P",{"data-svelte-h":!0}),r(H)!=="svelte-16zvcod"&&(H.textContent=_e),se=o(e),R(k.$$.fragment,e),oe=o(e),P=l(e,"P",{}),Te(P).forEach(n),this.h()},h(){le(u,"name","hf:doc:metadata"),le(u,"content",Ee),le(h,"class","tip")},m(e,t){qe(document.head,u),a(e,S,t),a(e,M,t),a(e,z,t),G(m,e,t),a(e,U,t),G(p,e,t),a(e,O,t),a(e,f,t),a(e,D,t),a(e,d,t),a(e,N,t),a(e,h,t),a(e,Y,t),a(e,g,t),a(e,B,t),G(c,e,t),a(e,F,t),a(e,v,t),a(e,J,t),a(e,w,t),a(e,K,t),a(e,b,t),a(e,Q,t),a(e,y,t),a(e,W,t),a(e,x,t),a(e,V,t),a(e,$,t),a(e,X,t),G(C,e,t),a(e,Z,t),a(e,_,t),a(e,ee,t),a(e,T,t),a(e,te,t),a(e,A,t),a(e,ne,t),a(e,L,t),a(e,ae,t),a(e,H,t),a(e,se,t),G(k,e,t),a(e,oe,t),a(e,P,t),ie=!0},p:Le,i(e){ie||(j(m.$$.fragment,e),j(p.$$.fragment,e),j(c.$$.fragment,e),j(C.$$.fragment,e),j(k.$$.fragment,e),ie=!0)},o(e){E(m.$$.fragment,e),E(p.$$.fragment,e),E(c.$$.fragment,e),E(C.$$.fragment,e),E(k.$$.fragment,e),ie=!1},d(e){e&&(n(S),n(M),n(z),n(U),n(O),n(f),n(D),n(d),n(N),n(h),n(Y),n(g),n(B),n(F),n(v),n(J),n(w),n(K),n(b),n(Q),n(y),n(W),n(x),n(V),n($),n(X),n(Z),n(_),n(ee),n(T),n(te),n(A),n(ne),n(L),n(ae),n(H),n(se),n(oe),n(P)),n(u),I(m,e),I(p,e),I(c,e),I(C,e),I(k,e)}}}const Ee='{"title":"Introduction to Use Case for Agentic RAG","local":"introduction-to-use-case-for-agentic-rag","sections":[{"title":"A Gala to Remember","local":"a-gala-to-remember","sections":[],"depth":2},{"title":"The Gala Requirements","local":"the-gala-requirements","sections":[],"depth":2}],"depth":1}';function Ie(ue){return He(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ne extends ke{constructor(u){super(),Me(this,u,Ie,je,Ae,{})}}export{Ne as component};
