import{s as Pt,n as Dt,o as Kt}from"../chunks/scheduler.1f027d5a.js";import{S as Ot,i as te,e as M,s as n,c as y,h as ee,a as i,d as l,b as a,f as At,g as p,j as o,k as Lt,l as le,m as s,n as r,t as m,o as U,p as u}from"../chunks/index.6117a65d.js";import{C as se}from"../chunks/CopyLLMTxtMenu.0ff8411a.js";import{D as ne,C as N}from"../chunks/DocNotebookDropdown.316c3715.js";import{H as gt,E as ae}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.0eecd2bb.js";function Me(Zt){let b,L,S,P,J,D,c,K,d,O,h,vt='<em>作者：<a href="https://huggingface.co/m-ric" rel="nofollow">Aymeric Roucher</a></em>',tt,T,Wt='<p>本教程为高级教程。建议先了解<a href="agents">另一本手册</a>的内容！</p>',et,w,$t="在本 Notebook 中，我们将创建一个<strong>数据分析智能体：一个配备数据分析库的代码智能体，能够加载和转换数据框，从中提取洞察，甚至绘制结果图表！</strong>",lt,j,Rt='假设我想分析 <a href="https://www.kaggle.com/competitions/titanic" rel="nofollow">Kaggle Titanic 挑战</a>的数据，以预测每个乘客的生还情况。但在我深入挖掘之前，我希望一个自动化智能体为我准备分析，提取趋势并绘制一些图形来寻找洞察。',st,f,Yt="让我们开始设置这个系统。",nt,G,Vt="运行下面的代码以安装所需的依赖：",at,B,Mt,I,xt='我们首先创建智能体。我们使用了 <code>ReactCodeAgent</code>（请阅读<a href="https://huggingface.co/docs/transformers/en/agents" rel="nofollow">文档</a>了解更多关于智能体类型的信息），因此我们甚至不需要为其提供任何工具：它可以直接运行代码。',it,C,Ht="我们只需要确保它能够使用与数据科学相关的库，方法是将这些库传递给 <code>additional_authorized_imports</code> 参数：<code>[&quot;numpy&quot;, &quot;pandas&quot;, &quot;matplotlib.pyplot&quot;, &quot;seaborn&quot;]</code>。",ot,g,Xt="一般来说，当在 <code>additional_authorized_imports</code> 中传递库时，确保这些库已在本地环境中安装，因为 Python 解释器只能使用已安装的库。",yt,Z,kt='⚙ 我们的智能体将由 <a href="https://huggingface.co/meta-llama/Meta-Llama-3.1-70B-Instruct" rel="nofollow">meta-llama/Meta-Llama-3.1-70B-Instruct</a> 提供支持，使用 <code>HfEngine</code> 类，这个类通过 HF 的推理 API 实现：推理 API 使得运行任何操作系统模型变得快速而简单。',pt,v,rt,W,mt,$,Et="在运行智能体时，我们提供了来自竞赛的额外说明，并将其作为关键字参数（kwarg）传递给 <code>run</code> 方法：",Ut,R,ut,Y,bt,V,Jt,x,Qt=`Here are the correlations and trends found in the data:

1. **Correlation between age and survival rate**: The correlation is -0.0772, which suggests that as age increases, the survival rate decreases. This implies that older passengers were less likely to survive the Titanic disaster.

2. **Relationship between Pclass and survival rate**: The survival rates for each Pclass are:
   - Pclass 1: 62.96%
   - Pclass 2: 47.28%
   - Pclass 3: 24.24%
   This shows that passengers in higher socio-economic classes (Pclass 1 and 2) had a significantly higher survival rate compared to those in the lower class (Pclass 3).

3. **Relationship between fare and survival rate**: The correlation is 0.2573, which suggests a moderate positive relationship between fare and survival rate. This implies that passengers who paid higher fares were more likely to survive the disaster.
`,ct,H,qt="令人印象深刻，不是吗？你还可以为你的智能体提供一个可视化工具，让它能够反思自己绘制的图表！",dt,X,ht,k,Ft="👉 现在让我们深入一步：<strong>我们将让我们的模型在数据上执行预测。</strong>",Tt,E,_t="为此，我们还需要让它使用 <code>sklearn</code>，并将其添加到 <code>additional_authorized_imports</code> 中。",wt,Q,jt,q,zt="智能体输出的测试预测，一旦提交到 Kaggle，得分为 <strong>0.78229</strong>，在 17,360 名参赛者中排名 <strong>#2824</strong>，而且比我几年前第一次尝试这个挑战时艰难取得的成绩还要好。",ft,F,Nt="你的结果可能会有所不同，但无论如何，我认为能够在几秒钟内通过智能体实现这一点，实在是非常令人印象深刻。",Gt,_,St="🚀 以上只是一个数据分析智能体的简单尝试：它肯定可以在很多方面进行改进，以更好地适应你的具体使用场景！",Bt,z,It,A,Ct;return J=new ne({props:{classNames:"absolute z-10 right-0 top-0",options:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/cookbook/blob/main/notebooks/zh-CN/agent_data_analyst.ipynb"}]}}),c=new se({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),d=new gt({props:{title:"数据分析智能体：瞬间获取数据洞察 ✨",local:"数据分析智能体瞬间获取数据洞察-",headingTag:"h1"}}),B=new N({props:{code:"IXBpcCUyMGluc3RhbGwlMjBzZWFib3JuJTIwJTIydHJhbnNmb3JtZXJzJTVCYWdlbnRzJTVEJTIy",highlighted:'!pip install seaborn <span class="hljs-string">&quot;transformers[agents]&quot;</span>',wrap:!1}}),v=new N({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBIZkVuZ2luZSUyQyUyMFJlYWN0Q29kZUFnZW50JTBBZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2luJTBBaW1wb3J0JTIwb3MlMEElMEFsb2dpbihvcy5nZXRlbnYoJTIySFVHR0lOR0ZBQ0VIVUJfQVBJX1RPS0VOJTIyKSklMEElMEFsbG1fZW5naW5lJTIwJTNEJTIwSGZFbmdpbmUoJTIybWV0YS1sbGFtYSUyRk1ldGEtTGxhbWEtMy4xLTcwQi1JbnN0cnVjdCUyMiklMEElMEFhZ2VudCUyMCUzRCUyMFJlYWN0Q29kZUFnZW50KCUwQSUyMCUyMCUyMCUyMHRvb2xzJTNEJTVCJTVEJTJDJTBBJTIwJTIwJTIwJTIwbGxtX2VuZ2luZSUzRGxsbV9lbmdpbmUlMkMlMEElMjAlMjAlMjAlMjBhZGRpdGlvbmFsX2F1dGhvcml6ZWRfaW1wb3J0cyUzRCU1QiUyMm51bXB5JTIyJTJDJTIwJTIycGFuZGFzJTIyJTJDJTIwJTIybWF0cGxvdGxpYi5weXBsb3QlMjIlMkMlMjAlMjJzZWFib3JuJTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwbWF4X2l0ZXJhdGlvbnMlM0QxMCUyQyUwQSk=",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> HfEngine, ReactCodeAgent
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login
<span class="hljs-keyword">import</span> os

login(os.getenv(<span class="hljs-string">&quot;HUGGINGFACEHUB_API_TOKEN&quot;</span>))

llm_engine = HfEngine(<span class="hljs-string">&quot;meta-llama/Meta-Llama-3.1-70B-Instruct&quot;</span>)

agent = ReactCodeAgent(
    tools=[],
    llm_engine=llm_engine,
    additional_authorized_imports=[<span class="hljs-string">&quot;numpy&quot;</span>, <span class="hljs-string">&quot;pandas&quot;</span>, <span class="hljs-string">&quot;matplotlib.pyplot&quot;</span>, <span class="hljs-string">&quot;seaborn&quot;</span>],
    max_iterations=<span class="hljs-number">10</span>,
)`,wrap:!1}}),W=new gt({props:{title:"数据分析 📊🤔",local:"数据分析-",headingTag:"h2"}}),R=new N({props:{code:"aW1wb3J0JTIwb3MlMEElMEFvcy5ta2RpciglMjIuJTJGZmlndXJlcyUyMik=",highlighted:`<span class="hljs-keyword">import</span> os

os.mkdir(<span class="hljs-string">&quot;./figures&quot;</span>)`,wrap:!1}}),Y=new N({props:{code:"YWRkaXRpb25hbF9ub3RlcyUyMCUzRCUyMCUyMiUyMiUyMiUwQSUyMyUyMyUyMyUyMFZhcmlhYmxlJTIwTm90ZXMlMEFwY2xhc3MlM0ElMjBBJTIwcHJveHklMjBmb3IlMjBzb2Npby1lY29ub21pYyUyMHN0YXR1cyUyMChTRVMpJTBBMXN0JTIwJTNEJTIwVXBwZXIlMEEybmQlMjAlM0QlMjBNaWRkbGUlMEEzcmQlMjAlM0QlMjBMb3dlciUwQWFnZSUzQSUyMEFnZSUyMGlzJTIwZnJhY3Rpb25hbCUyMGlmJTIwbGVzcyUyMHRoYW4lMjAxLiUyMElmJTIwdGhlJTIwYWdlJTIwaXMlMjBlc3RpbWF0ZWQlMkMlMjBpcyUyMGl0JTIwaW4lMjB0aGUlMjBmb3JtJTIwb2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MGluJTIwd2ludGVyJTIyLiUwQVlvdXIlMjBmaW5hbCUyMGFuc3dlciUyMHNob3VsZCUyMGhhdmUlMjBhdCUyMGxlYXN0JTIwMyUyMG51bWJlcmVkJTIwYW5kJTIwZGV0YWlsZWQlMjBwYXJ0cy4lMEElMjIlMjIlMjIlMkMlMEElMjAlMjAlMjAlMjBhZGRpdGlvbmFsX25vdGVzJTNEYWRkaXRpb25hbF9ub3RlcyUyQyUwQSUyMCUyMCUyMCUyMHNvdXJjZV9maWxlJTNEJTIydGl0YW5pYyUyRnRyYWluLmNzdiUyMiUyQyUwQSk=",highlighted:`additional_notes = <span class="hljs-string">&quot;&quot;&quot;
### Variable Notes
pclass: A proxy for socio-economic status (SES)
1st = Upper
2nd = Middle
3rd = Lower
age: Age is fractional if less than 1. If the age is estimated, is it in the form of xx.5
sibsp: The dataset defines family relations in this way...
Sibling = brother, sister, stepbrother, stepsister
Spouse = husband, wife (mistresses and fiancés were ignored)
parch: The dataset defines family relations in this way...
Parent = mother, father
Child = daughter, son, stepdaughter, stepson
Some children travelled only with a nanny, therefore parch=0 for them.
&quot;&quot;&quot;</span>

analysis = agent.run(
    <span class="hljs-string">&quot;&quot;&quot;You are an expert data analyst.
Please load the source file and analyze its content.
According to the variables you have, begin by listing 3 interesting questions that could be asked on this data, for instance about specific correlations with survival rate.
Then answer these questions one by one, by finding the relevant numbers.
Meanwhile, plot some figures using matplotlib/seaborn and save them to the (already existing) folder &#x27;./figures/&#x27;: take care to clear each figure with plt.clf() before doing another plot.

In your final answer: summarize these correlations and trends
After each number derive real worlds insights, for instance: &quot;Correlation between is_december and boredness is 1.3453, which suggest people are more bored in winter&quot;.
Your final answer should have at least 3 numbered and detailed parts.
&quot;&quot;&quot;</span>,
    additional_notes=additional_notes,
    source_file=<span class="hljs-string">&quot;titanic/train.csv&quot;</span>,
)`,wrap:!1}}),V=new N({props:{code:"cHJpbnQoYW5hbHlzaXMp",highlighted:'<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(analysis)',wrap:!1}}),X=new gt({props:{title:"数据科学智能体：进行预测 🛠️",local:"数据科学智能体进行预测-",headingTag:"h2"}}),Q=new N({props:{code:"YWdlbnQlMjAlM0QlMjBSZWFjdENvZGVBZ2VudCglMEElMjAlMjAlMjAlMjB0b29scyUzRCU1QiU1RCUyQyUwQSUyMCUyMCUyMCUyMGxsbV9lbmdpbmUlM0RsbG1fZW5naW5lJTJDJTBBJTIwJTIwJTIwJTIwYWRkaXRpb25hbF9hdXRob3JpemVkX2ltcG9ydHMlM0QlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjJudW1weSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnBhbmRhcyUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMm1hdHBsb3RsaWIucHlwbG90JTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIyc2VhYm9ybiUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMnNrbGVhcm4lMjIlMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEElMjAlMjAlMjAlMjBtYXhfaXRlcmF0aW9ucyUzRDEyJTJDJTBBKSUwQSUwQW91dHB1dCUyMCUzRCUyMGFnZW50LnJ1biglMEElMjAlMjAlMjAlMjAlMjIlMjIlMjJZb3UlMjBhcmUlMjBhbiUyMGV4cGVydCUyMG1hY2hpbmUlMjBsZWFybmluZyUyMGVuZ2luZWVyLiUwQVBsZWFzZSUyMHRyYWluJTIwYSUyME1MJTIwbW9kZWwlMjBvbiUyMCUyMnRpdGFuaWMlMkZ0cmFpbi5jc3YlMjIlMjB0byUyMHByZWRpY3QlMjB0aGUlMjBzdXJ2aXZhbCUyMGZvciUyMHJvd3MlMjBvZiUyMCUyMnRpdGFuaWMlMkZ0ZXN0LmNzdiUyMi4lMEFPdXRwdXQlMjB0aGUlMjByZXN1bHRzJTIwdW5kZXIlMjAnLiUyRm91dHB1dC5jc3YnLiUwQVRha2UlMjBjYXJlJTIwdG8lMjBpbXBvcnQlMjBmdW5jdGlvbnMlMjBhbmQlMjBtb2R1bGVzJTIwYmVmb3JlJTIwdXNpbmclMjB0aGVtISUwQSUyMiUyMiUyMiUyQyUwQSUyMCUyMCUyMCUyMGFkZGl0aW9uYWxfbm90ZXMlM0RhZGRpdGlvbmFsX25vdGVzJTIwJTJCJTIwJTIyJTVDbiUyMiUyMCUyQiUyMGFuYWx5c2lzJTJDJTBBKQ==",highlighted:`agent = ReactCodeAgent(
    tools=[],
    llm_engine=llm_engine,
    additional_authorized_imports=[
        <span class="hljs-string">&quot;numpy&quot;</span>,
        <span class="hljs-string">&quot;pandas&quot;</span>,
        <span class="hljs-string">&quot;matplotlib.pyplot&quot;</span>,
        <span class="hljs-string">&quot;seaborn&quot;</span>,
        <span class="hljs-string">&quot;sklearn&quot;</span>,
    ],
    max_iterations=<span class="hljs-number">12</span>,
)

output = agent.run(
    <span class="hljs-string">&quot;&quot;&quot;You are an expert machine learning engineer.
Please train a ML model on &quot;titanic/train.csv&quot; to predict the survival for rows of &quot;titanic/test.csv&quot;.
Output the results under &#x27;./output.csv&#x27;.
Take care to import functions and modules before using them!
&quot;&quot;&quot;</span>,
    additional_notes=additional_notes + <span class="hljs-string">&quot;\\n&quot;</span> + analysis,
)`,wrap:!1}}),z=new ae({props:{source:"https://github.com/huggingface/cookbook/blob/main/notebooks/zh-CN/agent_data_analyst.md"}}),{c(){b=M("meta"),L=n(),S=M("p"),P=n(),y(J.$$.fragment),D=n(),y(c.$$.fragment),K=n(),y(d.$$.fragment),O=n(),h=M("p"),h.innerHTML=vt,tt=n(),T=M("blockquote"),T.innerHTML=Wt,et=n(),w=M("p"),w.innerHTML=$t,lt=n(),j=M("p"),j.innerHTML=Rt,st=n(),f=M("p"),f.textContent=Yt,nt=n(),G=M("p"),G.textContent=Vt,at=n(),y(B.$$.fragment),Mt=n(),I=M("p"),I.innerHTML=xt,it=n(),C=M("p"),C.innerHTML=Ht,ot=n(),g=M("p"),g.innerHTML=Xt,yt=n(),Z=M("p"),Z.innerHTML=kt,pt=n(),y(v.$$.fragment),rt=n(),y(W.$$.fragment),mt=n(),$=M("p"),$.innerHTML=Et,Ut=n(),y(R.$$.fragment),ut=n(),y(Y.$$.fragment),bt=n(),y(V.$$.fragment),Jt=n(),x=M("pre"),x.textContent=Qt,ct=n(),H=M("p"),H.textContent=qt,dt=n(),y(X.$$.fragment),ht=n(),k=M("p"),k.innerHTML=Ft,Tt=n(),E=M("p"),E.innerHTML=_t,wt=n(),y(Q.$$.fragment),jt=n(),q=M("p"),q.innerHTML=zt,ft=n(),F=M("p"),F.textContent=Nt,Gt=n(),_=M("p"),_.textContent=St,Bt=n(),y(z.$$.fragment),It=n(),A=M("p"),this.h()},l(t){const e=ee("svelte-u9bgzb",document.head);b=i(e,"META",{name:!0,content:!0}),e.forEach(l),L=a(t),S=i(t,"P",{}),At(S).forEach(l),P=a(t),p(J.$$.fragment,t),D=a(t),p(c.$$.fragment,t),K=a(t),p(d.$$.fragment,t),O=a(t),h=i(t,"P",{"data-svelte-h":!0}),o(h)!=="svelte-162vedp"&&(h.innerHTML=vt),tt=a(t),T=i(t,"BLOCKQUOTE",{"data-svelte-h":!0}),o(T)!=="svelte-15o9ix0"&&(T.innerHTML=Wt),et=a(t),w=i(t,"P",{"data-svelte-h":!0}),o(w)!=="svelte-p9m0bc"&&(w.innerHTML=$t),lt=a(t),j=i(t,"P",{"data-svelte-h":!0}),o(j)!=="svelte-17uibhp"&&(j.innerHTML=Rt),st=a(t),f=i(t,"P",{"data-svelte-h":!0}),o(f)!=="svelte-bnqqw8"&&(f.textContent=Yt),nt=a(t),G=i(t,"P",{"data-svelte-h":!0}),o(G)!=="svelte-1w43ne9"&&(G.textContent=Vt),at=a(t),p(B.$$.fragment,t),Mt=a(t),I=i(t,"P",{"data-svelte-h":!0}),o(I)!=="svelte-19dkbw3"&&(I.innerHTML=xt),it=a(t),C=i(t,"P",{"data-svelte-h":!0}),o(C)!=="svelte-110k1or"&&(C.innerHTML=Ht),ot=a(t),g=i(t,"P",{"data-svelte-h":!0}),o(g)!=="svelte-grd1eg"&&(g.innerHTML=Xt),yt=a(t),Z=i(t,"P",{"data-svelte-h":!0}),o(Z)!=="svelte-1x8quzi"&&(Z.innerHTML=kt),pt=a(t),p(v.$$.fragment,t),rt=a(t),p(W.$$.fragment,t),mt=a(t),$=i(t,"P",{"data-svelte-h":!0}),o($)!=="svelte-7h8uhj"&&($.innerHTML=Et),Ut=a(t),p(R.$$.fragment,t),ut=a(t),p(Y.$$.fragment,t),bt=a(t),p(V.$$.fragment,t),Jt=a(t),x=i(t,"PRE",{"data-svelte-h":!0}),o(x)!=="svelte-i4e8sv"&&(x.textContent=Qt),ct=a(t),H=i(t,"P",{"data-svelte-h":!0}),o(H)!=="svelte-1vlc15d"&&(H.textContent=qt),dt=a(t),p(X.$$.fragment,t),ht=a(t),k=i(t,"P",{"data-svelte-h":!0}),o(k)!=="svelte-1fwn593"&&(k.innerHTML=Ft),Tt=a(t),E=i(t,"P",{"data-svelte-h":!0}),o(E)!=="svelte-coz7bh"&&(E.innerHTML=_t),wt=a(t),p(Q.$$.fragment,t),jt=a(t),q=i(t,"P",{"data-svelte-h":!0}),o(q)!=="svelte-1cw7kqc"&&(q.innerHTML=zt),ft=a(t),F=i(t,"P",{"data-svelte-h":!0}),o(F)!=="svelte-f0ubie"&&(F.textContent=Nt),Gt=a(t),_=i(t,"P",{"data-svelte-h":!0}),o(_)!=="svelte-b62qr"&&(_.textContent=St),Bt=a(t),p(z.$$.fragment,t),It=a(t),A=i(t,"P",{}),At(A).forEach(l),this.h()},h(){Lt(b,"name","hf:doc:metadata"),Lt(b,"content",ie)},m(t,e){le(document.head,b),s(t,L,e),s(t,S,e),s(t,P,e),r(J,t,e),s(t,D,e),r(c,t,e),s(t,K,e),r(d,t,e),s(t,O,e),s(t,h,e),s(t,tt,e),s(t,T,e),s(t,et,e),s(t,w,e),s(t,lt,e),s(t,j,e),s(t,st,e),s(t,f,e),s(t,nt,e),s(t,G,e),s(t,at,e),r(B,t,e),s(t,Mt,e),s(t,I,e),s(t,it,e),s(t,C,e),s(t,ot,e),s(t,g,e),s(t,yt,e),s(t,Z,e),s(t,pt,e),r(v,t,e),s(t,rt,e),r(W,t,e),s(t,mt,e),s(t,$,e),s(t,Ut,e),r(R,t,e),s(t,ut,e),r(Y,t,e),s(t,bt,e),r(V,t,e),s(t,Jt,e),s(t,x,e),s(t,ct,e),s(t,H,e),s(t,dt,e),r(X,t,e),s(t,ht,e),s(t,k,e),s(t,Tt,e),s(t,E,e),s(t,wt,e),r(Q,t,e),s(t,jt,e),s(t,q,e),s(t,ft,e),s(t,F,e),s(t,Gt,e),s(t,_,e),s(t,Bt,e),r(z,t,e),s(t,It,e),s(t,A,e),Ct=!0},p:Dt,i(t){Ct||(m(J.$$.fragment,t),m(c.$$.fragment,t),m(d.$$.fragment,t),m(B.$$.fragment,t),m(v.$$.fragment,t),m(W.$$.fragment,t),m(R.$$.fragment,t),m(Y.$$.fragment,t),m(V.$$.fragment,t),m(X.$$.fragment,t),m(Q.$$.fragment,t),m(z.$$.fragment,t),Ct=!0)},o(t){U(J.$$.fragment,t),U(c.$$.fragment,t),U(d.$$.fragment,t),U(B.$$.fragment,t),U(v.$$.fragment,t),U(W.$$.fragment,t),U(R.$$.fragment,t),U(Y.$$.fragment,t),U(V.$$.fragment,t),U(X.$$.fragment,t),U(Q.$$.fragment,t),U(z.$$.fragment,t),Ct=!1},d(t){t&&(l(L),l(S),l(P),l(D),l(K),l(O),l(h),l(tt),l(T),l(et),l(w),l(lt),l(j),l(st),l(f),l(nt),l(G),l(at),l(Mt),l(I),l(it),l(C),l(ot),l(g),l(yt),l(Z),l(pt),l(rt),l(mt),l($),l(Ut),l(ut),l(bt),l(Jt),l(x),l(ct),l(H),l(dt),l(ht),l(k),l(Tt),l(E),l(wt),l(jt),l(q),l(ft),l(F),l(Gt),l(_),l(Bt),l(It),l(A)),l(b),u(J,t),u(c,t),u(d,t),u(B,t),u(v,t),u(W,t),u(R,t),u(Y,t),u(V,t),u(X,t),u(Q,t),u(z,t)}}}const ie='{"title":"数据分析智能体：瞬间获取数据洞察 ✨","local":"数据分析智能体瞬间获取数据洞察-","sections":[{"title":"数据分析 📊🤔","local":"数据分析-","sections":[],"depth":2},{"title":"数据科学智能体：进行预测 🛠️","local":"数据科学智能体进行预测-","sections":[],"depth":2}],"depth":1}';function oe(Zt){return Kt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ue extends Ot{constructor(b){super(),te(this,b,oe,Me,Pt,{})}}export{ue as component};
