import{s as _e,n as Te,o as Ae}from"../chunks/scheduler.37c15a92.js";import{S as Le,i as He,g as i,s,r as Z,A as ke,h as l,f as n,c as o,j as Ce,u as ee,x as r,k as oe,y as Me,a,v as te,d as ne,t as ae,w as se}from"../chunks/index.2bf4358c.js";import{H as ie}from"../chunks/Heading.8ada512a.js";import{E as Pe}from"../chunks/getInferenceSnippets.0aa3753f.js";function qe(le){let u,P,k,q,m,R,d,re='<img src="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit3/agentic-rag/thumbnail.jpg" alt="Agentic RAG banner"/>',G,p,ue="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.",j,h,he="<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>",E,f,me="You can choose any of the frameworks discussed in the course for this use case. We provide code samples for each in separate tabs.",I,g,S,c,de="Now, it’s time to get our hands dirty with an actual use case. Let’s set the stage!",U,v,pe="<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.",z,w,fe="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!",O,b,ge="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.",D,y,ce="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.",N,x,ve="First, let’s give him a list of hard requirements for the gala.",Y,$,B,C,we=`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.`,F,_,be="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.",J,T,ye="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! 🎆",K,A,xe=`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>`,Q,L,$e="Let’s start by creating the tools that Alfred needs to be able to host the gala!",W,H,V,M,X;return m=new ie({props:{title:"Introduction to Use Case for Agentic RAG",local:"introduction-to-use-case-for-agentic-rag",headingTag:"h1"}}),g=new ie({props:{title:"A Gala to Remember",local:"a-gala-to-remember",headingTag:"h2"}}),$=new ie({props:{title:"The Gala Requirements",local:"the-gala-requirements",headingTag:"h2"}}),H=new Pe({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit3/agentic-rag/introduction.mdx"}}),{c(){u=i("meta"),P=s(),k=i("p"),q=s(),Z(m.$$.fragment),R=s(),d=i("p"),d.innerHTML=re,G=s(),p=i("p"),p.textContent=ue,j=s(),h=i("blockquote"),h.innerHTML=he,E=s(),f=i("p"),f.textContent=me,I=s(),Z(g.$$.fragment),S=s(),c=i("p"),c.textContent=de,U=s(),v=i("p"),v.innerHTML=pe,z=s(),w=i("p"),w.innerHTML=fe,O=s(),b=i("p"),b.innerHTML=ge,D=s(),y=i("p"),y.textContent=ce,N=s(),x=i("p"),x.textContent=ve,Y=s(),Z($.$$.fragment),B=s(),C=i("p"),C.innerHTML=we,F=s(),_=i("p"),_.innerHTML=be,J=s(),T=i("p"),T.innerHTML=ye,K=s(),A=i("p"),A.innerHTML=xe,Q=s(),L=i("p"),L.textContent=$e,W=s(),Z(H.$$.fragment),V=s(),M=i("p"),this.h()},l(e){const t=ke("svelte-u9bgzb",document.head);u=l(t,"META",{name:!0,content:!0}),t.forEach(n),P=o(e),k=l(e,"P",{}),Ce(k).forEach(n),q=o(e),ee(m.$$.fragment,e),R=o(e),d=l(e,"P",{"data-svelte-h":!0}),r(d)!=="svelte-10xg9bk"&&(d.innerHTML=re),G=o(e),p=l(e,"P",{"data-svelte-h":!0}),r(p)!=="svelte-dln0jb"&&(p.textContent=ue),j=o(e),h=l(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r(h)!=="svelte-1smsp4r"&&(h.innerHTML=he),E=o(e),f=l(e,"P",{"data-svelte-h":!0}),r(f)!=="svelte-chbkr8"&&(f.textContent=me),I=o(e),ee(g.$$.fragment,e),S=o(e),c=l(e,"P",{"data-svelte-h":!0}),r(c)!=="svelte-lwee7a"&&(c.textContent=de),U=o(e),v=l(e,"P",{"data-svelte-h":!0}),r(v)!=="svelte-ywrlwx"&&(v.innerHTML=pe),z=o(e),w=l(e,"P",{"data-svelte-h":!0}),r(w)!=="svelte-1yu8jhn"&&(w.innerHTML=fe),O=o(e),b=l(e,"P",{"data-svelte-h":!0}),r(b)!=="svelte-1b2ats5"&&(b.innerHTML=ge),D=o(e),y=l(e,"P",{"data-svelte-h":!0}),r(y)!=="svelte-8od5zx"&&(y.textContent=ce),N=o(e),x=l(e,"P",{"data-svelte-h":!0}),r(x)!=="svelte-1qicvrg"&&(x.textContent=ve),Y=o(e),ee($.$$.fragment,e),B=o(e),C=l(e,"P",{"data-svelte-h":!0}),r(C)!=="svelte-90d9lk"&&(C.innerHTML=we),F=o(e),_=l(e,"P",{"data-svelte-h":!0}),r(_)!=="svelte-md96cy"&&(_.innerHTML=be),J=o(e),T=l(e,"P",{"data-svelte-h":!0}),r(T)!=="svelte-50f9pa"&&(T.innerHTML=ye),K=o(e),A=l(e,"P",{"data-svelte-h":!0}),r(A)!=="svelte-xqu6bj"&&(A.innerHTML=xe),Q=o(e),L=l(e,"P",{"data-svelte-h":!0}),r(L)!=="svelte-16zvcod"&&(L.textContent=$e),W=o(e),ee(H.$$.fragment,e),V=o(e),M=l(e,"P",{}),Ce(M).forEach(n),this.h()},h(){oe(u,"name","hf:doc:metadata"),oe(u,"content",Re),oe(h,"class","tip")},m(e,t){Me(document.head,u),a(e,P,t),a(e,k,t),a(e,q,t),te(m,e,t),a(e,R,t),a(e,d,t),a(e,G,t),a(e,p,t),a(e,j,t),a(e,h,t),a(e,E,t),a(e,f,t),a(e,I,t),te(g,e,t),a(e,S,t),a(e,c,t),a(e,U,t),a(e,v,t),a(e,z,t),a(e,w,t),a(e,O,t),a(e,b,t),a(e,D,t),a(e,y,t),a(e,N,t),a(e,x,t),a(e,Y,t),te($,e,t),a(e,B,t),a(e,C,t),a(e,F,t),a(e,_,t),a(e,J,t),a(e,T,t),a(e,K,t),a(e,A,t),a(e,Q,t),a(e,L,t),a(e,W,t),te(H,e,t),a(e,V,t),a(e,M,t),X=!0},p:Te,i(e){X||(ne(m.$$.fragment,e),ne(g.$$.fragment,e),ne($.$$.fragment,e),ne(H.$$.fragment,e),X=!0)},o(e){ae(m.$$.fragment,e),ae(g.$$.fragment,e),ae($.$$.fragment,e),ae(H.$$.fragment,e),X=!1},d(e){e&&(n(P),n(k),n(q),n(R),n(d),n(G),n(p),n(j),n(h),n(E),n(f),n(I),n(S),n(c),n(U),n(v),n(z),n(w),n(O),n(b),n(D),n(y),n(N),n(x),n(Y),n(B),n(C),n(F),n(_),n(J),n(T),n(K),n(A),n(Q),n(L),n(W),n(V),n(M)),n(u),se(m,e),se(g,e),se($,e),se(H,e)}}}const Re='{"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 Ge(le){return Ae(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Ue extends Le{constructor(u){super(),He(this,u,Ge,qe,_e,{})}}export{Ue as component};
