import{s as At,n as dt,o as bt}from"../chunks/scheduler.505acc25.js";import{S as wt,i as yt,e as p,s as i,c as G,h as Et,a,d as n,b as s,f as ht,g as R,j as f,k as at,l as Gt,m as l,n as j,t as z,o as k,p as q}from"../chunks/index.b1175496.js";import{C as Rt,H as ft}from"../chunks/Heading.eda51538.js";import{E as jt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ea377ea6.js";function zt(mt){let m,S,y,O,u,D,o,U,x,rt='<img src="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit3/agentic-rag/thumbnail.jpg" alt="代理增强 RAG 横幅图"/>',B,$,ut="在本单元中，我们将通过代理增强检索生成（Agentic RAG）技术，帮助负责主持晚会的友好智能体 Alfred 创建用于解答宾客问题的工具。",J,r,ot="<p>这是代理增强 RAG 的「真实世界」应用案例，您可直接应用于个人项目或工作场景。若想获得更多实践收获，何不尝试将其应用于您的实际场景并在 Discord 社区分享？</p>",K,v,xt="您可以选择课程中讨论的任何框架来实现本用例。我们已在独立标签页中为每个框架提供代码示例。",N,g,Q,C,$t="现在让我们进入实战环节，为这场盛会搭建舞台！",F,_,vt="<strong>您决定举办本世纪最奢华、最盛大的派对</strong>——这意味着将包含：豪华宴席、魅惑舞者、知名 DJ、精致饮品、震撼烟花表演等极致元素。",I,T,gt="您的好邻居智能体 Alfred 正着手统筹派对的各项需求，<strong>Alfred 将全权管理所有事务</strong>。为此，他需要掌握包括菜单、宾客名单、日程安排、天气预报等在内的完整派对信息！",V,L,Ct="除此之外，他还需确保派对圆满成功，因此<strong>必须具备在派对期间实时解答各类问题的能力</strong>，同时处理可能出现的突发状况。",W,M,_t="Alfred 无法孤军奋战，我们需要确保他能够获取所需的所有信息和工具。",X,H,Tt="首先，让我们为晚会制定核心需求清单。",Y,P,Z,c,Lt=`在<strong>文艺复兴时期</strong>，真正受过良好教育的人需具备三大核心素养：
需精通<strong>体育、文化与科学知识</strong>。因此，我们必须通过知识储备给宾客留下深刻印象，呈现真正难忘的盛会。
但为避免冲突，<strong>政治与宗教等敏感话题应在晚会中回避</strong>，确保派对氛围轻松愉快，不涉及信仰与理念分歧。`,tt,h,Mt="根据礼仪规范，<strong>优秀的主办方应充分了解宾客背景</strong>，包括其兴趣爱好与事业成就。同时应善于通过宾客间的故事分享促进交流。",et,A,Ht="最后，我们还需掌握<strong>基础天气知识</strong>，以便实时获取更新信息，精准把握烟花表演时机，为晚会画上完美句号！🎆",nt,d,Pt=`由此可见，Alfred 需要大量信息支持才能办好晚会。
幸运的是，我们可以通过<strong>检索增强生成（RAG）训练</strong>为 Alfred 做好准备！`,lt,b,ct="现在让我们开始创建 Alfred 主持晚会所需的工具集！",it,w,st,E,pt;return u=new Rt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),o=new ft({props:{title:"代理增强检索生成（Agentic RAG）用例介绍",local:"代理增强检索生成agentic-rag用例介绍",headingTag:"h1"}}),g=new ft({props:{title:"值得铭记的盛会",local:"值得铭记的盛会",headingTag:"h2"}}),P=new ft({props:{title:"晚会核心需求",local:"晚会核心需求",headingTag:"h2"}}),w=new jt({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/zh-CN/unit3/agentic-rag/introduction.mdx"}}),{c(){m=p("meta"),S=i(),y=p("p"),O=i(),G(u.$$.fragment),D=i(),G(o.$$.fragment),U=i(),x=p("p"),x.innerHTML=rt,B=i(),$=p("p"),$.textContent=ut,J=i(),r=p("blockquote"),r.innerHTML=ot,K=i(),v=p("p"),v.textContent=xt,N=i(),G(g.$$.fragment),Q=i(),C=p("p"),C.textContent=$t,F=i(),_=p("p"),_.innerHTML=vt,I=i(),T=p("p"),T.innerHTML=gt,V=i(),L=p("p"),L.innerHTML=Ct,W=i(),M=p("p"),M.textContent=_t,X=i(),H=p("p"),H.textContent=Tt,Y=i(),G(P.$$.fragment),Z=i(),c=p("p"),c.innerHTML=Lt,tt=i(),h=p("p"),h.innerHTML=Mt,et=i(),A=p("p"),A.innerHTML=Ht,nt=i(),d=p("p"),d.innerHTML=Pt,lt=i(),b=p("p"),b.textContent=ct,it=i(),G(w.$$.fragment),st=i(),E=p("p"),this.h()},l(t){const e=Et("svelte-u9bgzb",document.head);m=a(e,"META",{name:!0,content:!0}),e.forEach(n),S=s(t),y=a(t,"P",{}),ht(y).forEach(n),O=s(t),R(u.$$.fragment,t),D=s(t),R(o.$$.fragment,t),U=s(t),x=a(t,"P",{"data-svelte-h":!0}),f(x)!=="svelte-pxhyh7"&&(x.innerHTML=rt),B=s(t),$=a(t,"P",{"data-svelte-h":!0}),f($)!=="svelte-xj6p7h"&&($.textContent=ut),J=s(t),r=a(t,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),f(r)!=="svelte-m0vces"&&(r.innerHTML=ot),K=s(t),v=a(t,"P",{"data-svelte-h":!0}),f(v)!=="svelte-12hv252"&&(v.textContent=xt),N=s(t),R(g.$$.fragment,t),Q=s(t),C=a(t,"P",{"data-svelte-h":!0}),f(C)!=="svelte-mhfjgx"&&(C.textContent=$t),F=s(t),_=a(t,"P",{"data-svelte-h":!0}),f(_)!=="svelte-104pvwo"&&(_.innerHTML=vt),I=s(t),T=a(t,"P",{"data-svelte-h":!0}),f(T)!=="svelte-1p3kfyf"&&(T.innerHTML=gt),V=s(t),L=a(t,"P",{"data-svelte-h":!0}),f(L)!=="svelte-1u7z4b3"&&(L.innerHTML=Ct),W=s(t),M=a(t,"P",{"data-svelte-h":!0}),f(M)!=="svelte-1gzseqk"&&(M.textContent=_t),X=s(t),H=a(t,"P",{"data-svelte-h":!0}),f(H)!=="svelte-1d9twtp"&&(H.textContent=Tt),Y=s(t),R(P.$$.fragment,t),Z=s(t),c=a(t,"P",{"data-svelte-h":!0}),f(c)!=="svelte-1j3ej1r"&&(c.innerHTML=Lt),tt=s(t),h=a(t,"P",{"data-svelte-h":!0}),f(h)!=="svelte-1xxsrzh"&&(h.innerHTML=Mt),et=s(t),A=a(t,"P",{"data-svelte-h":!0}),f(A)!=="svelte-16b6d7n"&&(A.innerHTML=Ht),nt=s(t),d=a(t,"P",{"data-svelte-h":!0}),f(d)!=="svelte-106osa6"&&(d.innerHTML=Pt),lt=s(t),b=a(t,"P",{"data-svelte-h":!0}),f(b)!=="svelte-6xanh1"&&(b.textContent=ct),it=s(t),R(w.$$.fragment,t),st=s(t),E=a(t,"P",{}),ht(E).forEach(n),this.h()},h(){at(m,"name","hf:doc:metadata"),at(m,"content",kt),at(r,"class","tip")},m(t,e){Gt(document.head,m),l(t,S,e),l(t,y,e),l(t,O,e),j(u,t,e),l(t,D,e),j(o,t,e),l(t,U,e),l(t,x,e),l(t,B,e),l(t,$,e),l(t,J,e),l(t,r,e),l(t,K,e),l(t,v,e),l(t,N,e),j(g,t,e),l(t,Q,e),l(t,C,e),l(t,F,e),l(t,_,e),l(t,I,e),l(t,T,e),l(t,V,e),l(t,L,e),l(t,W,e),l(t,M,e),l(t,X,e),l(t,H,e),l(t,Y,e),j(P,t,e),l(t,Z,e),l(t,c,e),l(t,tt,e),l(t,h,e),l(t,et,e),l(t,A,e),l(t,nt,e),l(t,d,e),l(t,lt,e),l(t,b,e),l(t,it,e),j(w,t,e),l(t,st,e),l(t,E,e),pt=!0},p:dt,i(t){pt||(z(u.$$.fragment,t),z(o.$$.fragment,t),z(g.$$.fragment,t),z(P.$$.fragment,t),z(w.$$.fragment,t),pt=!0)},o(t){k(u.$$.fragment,t),k(o.$$.fragment,t),k(g.$$.fragment,t),k(P.$$.fragment,t),k(w.$$.fragment,t),pt=!1},d(t){t&&(n(S),n(y),n(O),n(D),n(U),n(x),n(B),n($),n(J),n(r),n(K),n(v),n(N),n(Q),n(C),n(F),n(_),n(I),n(T),n(V),n(L),n(W),n(M),n(X),n(H),n(Y),n(Z),n(c),n(tt),n(h),n(et),n(A),n(nt),n(d),n(lt),n(b),n(it),n(st),n(E)),n(m),q(u,t),q(o,t),q(g,t),q(P,t),q(w,t)}}}const kt='{"title":"代理增强检索生成（Agentic RAG）用例介绍","local":"代理增强检索生成agentic-rag用例介绍","sections":[{"title":"值得铭记的盛会","local":"值得铭记的盛会","sections":[],"depth":2},{"title":"晚会核心需求","local":"晚会核心需求","sections":[],"depth":2}],"depth":1}';function qt(mt){return bt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Bt extends wt{constructor(m){super(),yt(this,m,qt,zt,At,{})}}export{Bt as component};
