import{s as Yn,o as Fn,n as Se}from"../chunks/scheduler.37c15a92.js";import{S as Nn,i as qn,g as r,s as a,r as w,A as Pn,h as m,f as n,c as s,j as qt,u as b,x as u,k as Z,y as j,a as l,v as g,d as M,t as v,w as T,m as C,n as U}from"../chunks/index.2bf4358c.js";import{T as Ae}from"../chunks/Tip.363c041f.js";import{C as L}from"../chunks/CodeBlock.4e987730.js";import{H as Ge}from"../chunks/Heading.8ada512a.js";import{E as Qn}from"../chunks/getInferenceSnippets.54ddb825.js";function zn(x){let p,o,y="this notebook",c;return{c(){p=C("You can follow the code in "),o=r("a"),o.textContent=y,c=C(" that you can run using Google Colab."),this.h()},l(i){p=U(i,"You can follow the code in "),o=m(i,"A",{href:!0,target:!0,"data-svelte-h":!0}),u(o)!=="svelte-8yz016"&&(o.textContent=y),c=U(i," that you can run using Google Colab."),this.h()},h(){Z(o,"href","https://huggingface.co/agents-course/notebooks/blob/main/unit2/llama-index/components.ipynb"),Z(o,"target","_blank")},m(i,f){l(i,p,f),l(i,o,f),l(i,c,f)},p:Se,d(i){i&&(n(p),n(o),n(c))}}}function Dn(x){let p,o,y="LlamaHub",c,i,f="LlamaParse",h;return{c(){p=C("Get familiar with "),o=r("a"),o.textContent=y,c=C(" loaders and "),i=r("a"),i.textContent=f,h=C(" parser for more complex data sources."),this.h()},l(d){p=U(d,"Get familiar with "),o=m(d,"A",{href:!0,"data-svelte-h":!0}),u(o)!=="svelte-533qfu"&&(o.textContent=y),c=U(d," loaders and "),i=m(d,"A",{href:!0,"data-svelte-h":!0}),u(i)!=="svelte-a3asoh"&&(i.textContent=f),h=U(d," parser for more complex data sources."),this.h()},h(){Z(o,"href","https://docs.llamaindex.ai/en/stable/module_guides/loading/connector/"),Z(i,"href","https://github.com/run-llama/llama_cloud_services/blob/main/parse.md")},m(d,$){l(d,p,$),l(d,o,$),l(d,c,$),l(d,i,$),l(d,h,$)},p:Se,d(d){d&&(n(p),n(o),n(c),n(i),n(h))}}}function Kn(x){let p,o,y="LlamaIndex documentation",c;return{c(){p=C("An overview of the different vector stores can be found in the "),o=r("a"),o.textContent=y,c=C("."),this.h()},l(i){p=U(i,"An overview of the different vector stores can be found in the "),o=m(i,"A",{href:!0,"data-svelte-h":!0}),u(o)!=="svelte-1e65i8i"&&(o.textContent=y),c=U(i,"."),this.h()},h(){Z(o,"href","https://docs.llamaindex.ai/en/stable/module_guides/storing/vector_stores/")},m(i,f){l(i,p,f),l(i,o,f),l(i,c,f)},p:Se,d(i){i&&(n(p),n(o),n(c))}}}function On(x){let p,o,y="low-level composition API",c,i,f="Workflows";return{c(){p=C("Take fine-grained control of your query workflows with the "),o=r("a"),o.textContent=y,c=C(". This API lets you customize and fine-tune every step of the query process to match your exact needs, which also pairs great with "),i=r("a"),i.textContent=f,this.h()},l(h){p=U(h,"Take fine-grained control of your query workflows with the "),o=m(h,"A",{href:!0,"data-svelte-h":!0}),u(o)!=="svelte-arbcj7"&&(o.textContent=y),c=U(h,". This API lets you customize and fine-tune every step of the query process to match your exact needs, which also pairs great with "),i=m(h,"A",{href:!0,"data-svelte-h":!0}),u(i)!=="svelte-h6xwqz"&&(i.textContent=f),this.h()},h(){Z(o,"href","https://docs.llamaindex.ai/en/stable/module_guides/deploying/query_engine/usage_pattern/#low-level-composition-api"),Z(i,"href","https://docs.llamaindex.ai/en/stable/module_guides/workflow/")},m(h,d){l(h,p,d),l(h,o,d),l(h,c,d),l(h,i,d)},p:Se,d(h){h&&(n(p),n(o),n(c),n(i))}}}function el(x){let p,o,y="Bonus Unit 2",c;return{c(){p=C("Want to learn more about agent observability and evaluation? Continue your journey with the "),o=r("a"),o.textContent=y,c=C("."),this.h()},l(i){p=U(i,"Want to learn more about agent observability and evaluation? Continue your journey with the "),o=m(i,"A",{href:!0,"data-svelte-h":!0}),u(o)!=="svelte-vn4f44"&&(o.textContent=y),c=U(i,"."),this.h()},h(){Z(o,"href","https://huggingface.co/learn/agents-course/bonus-unit2/introduction")},m(i,f){l(i,p,f),l(i,o,f),l(i,c,f)},p:Se,d(i){i&&(n(p),n(o),n(c))}}}function tl(x){let p,o,y="Components Guides",c,i,f="Guide on RAG",h;return{c(){p=C("Want to learn more about components and how to use them? Continue your journey with the "),o=r("a"),o.textContent=y,c=C(" or the "),i=r("a"),i.textContent=f,h=C("."),this.h()},l(d){p=U(d,"Want to learn more about components and how to use them? Continue your journey with the "),o=m(d,"A",{href:!0,"data-svelte-h":!0}),u(o)!=="svelte-1br2a7q"&&(o.textContent=y),c=U(d," or the "),i=m(d,"A",{href:!0,"data-svelte-h":!0}),u(i)!=="svelte-jojkhh"&&(i.textContent=f),h=U(d,"."),this.h()},h(){Z(o,"href","https://docs.llamaindex.ai/en/stable/module_guides/"),Z(i,"href","https://docs.llamaindex.ai/en/stable/understanding/rag/")},m(d,$){l(d,p,$),l(d,o,$),l(d,c,$),l(d,i,$),l(d,h,$)},p:Se,d(d){d&&(n(p),n(o),n(c),n(i),n(h))}}}function nl(x){let p,o,y,c,i,f,h,d=`Remember Alfred, our helpful butler agent from Unit 1?
To assist us effectively, Alfred needs to understand our requests and <strong>prepare, find and use relevant information to help complete tasks.</strong>
This is where LlamaIndex’s components come in.`,$,X,en=`While LlamaIndex has many components, <strong>we’ll focus specifically on the <code>QueryEngine</code> component.</strong>
Why? Because it can be used as a Retrieval-Augmented Generation (RAG) tool for an agent.`,Fe,H,tn=`So, what is RAG? LLMs are trained on enormous bodies of data to learn general knowledge.
However, they may not be trained on relevant and up-to-date data.
RAG solves this problem by finding and retrieving relevant information from your data and giving that to the LLM.`,Ne,A,nn='<img src="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit2/llama-index/rag.png" alt="RAG"/>',qe,S,ln="Now, think about how Alfred works:",Pe,Y,an="<li>You ask Alfred to help plan a dinner party</li> <li>Alfred needs to check your calendar, dietary preferences, and past successful menus</li> <li>The <code>QueryEngine</code> helps Alfred find this information and use it to plan the dinner party</li>",Qe,F,sn=`This makes the <code>QueryEngine</code> <strong>a key component for building agentic RAG workflows</strong> in LlamaIndex.
Just as Alfred needs to search through your household information to be helpful, any agent needs a way to find and understand relevant data.
The <code>QueryEngine</code> provides exactly this capability.`,ze,N,on="Now, let’s dive a bit deeper into the components and see how you can <strong>combine components to create a RAG pipeline.</strong>",De,q,Ke,k,Oe,P,rn="There are five key stages within RAG, which in turn will be a part of most larger applications you build. These are:",et,Q,mn="<li><strong>Loading</strong>: this refers to getting your data from where it lives — whether it’s text files, PDFs, another website, a database, or an API — into your workflow. LlamaHub provides hundreds of integrations to choose from.</li> <li><strong>Indexing</strong>: this means creating a data structure that allows for querying the data. For LLMs, this nearly always means creating vector embeddings. Which are numerical representations of the meaning of the data. Indexing can also refer to numerous other metadata strategies to make it easy to accurately find contextually relevant data based on properties.</li> <li><strong>Storing</strong>: once your data is indexed you will want to store your index, as well as other metadata, to avoid having to re-index it.</li> <li><strong>Querying</strong>: for any given indexing strategy there are many ways you can utilize LLMs and LlamaIndex data structures to query, including sub-queries, multi-step queries and hybrid strategies.</li> <li><strong>Evaluation</strong>: a critical step in any flow is checking how effective it is relative to other strategies, or when you make changes. Evaluation provides objective measures of how accurate, faithful and fast your responses to queries are.</li>",tt,z,un="Next, let’s see how we can reproduce these stages using components.",nt,D,lt,K,pn=`As mentioned before, LlamaIndex can work on top of your own data, however, <strong>before accessing data, we need to load it.</strong>
There are three main ways to load data into LlamaIndex:`,at,O,dn="<li><code>SimpleDirectoryReader</code>: A built-in loader for various file types from a local directory.</li> <li><code>LlamaParse</code>: LlamaParse, LlamaIndex’s official tool for PDF parsing, available as a managed API.</li> <li><code>LlamaHub</code>: A registry of hundreds of data-loading libraries to ingest data from any source.</li>",st,G,it,ee,cn=`<strong>The simplest way to load data is with <code>SimpleDirectoryReader</code>.</strong>
This versatile component can load various file types from a folder and convert them into <code>Document</code> objects that LlamaIndex can work with.
Let’s see how we can use <code>SimpleDirectoryReader</code> to load data from a folder.`,ot,te,rt,ne,hn=`After loading our documents, we need to break them into smaller pieces called <code>Node</code> objects.
A <code>Node</code> is just a chunk of text from the original document that’s easier for the AI to work with, while it still has references to the original <code>Document</code> object.`,mt,le,fn="The <code>IngestionPipeline</code> helps us create these nodes through two key transformations.",ut,ae,yn="<li><code>SentenceSplitter</code> breaks down documents into manageable chunks by splitting them at natural sentence boundaries.</li> <li><code>HuggingFaceEmbedding</code> converts each chunk into numerical embeddings - vector representations that capture the semantic meaning in a way AI can process efficiently.</li>",pt,se,wn="This process helps us organise our documents in a way that’s more useful for searching and analysis.",dt,ie,ct,oe,ht,re,bn="After creating our <code>Node</code> objects we need to index them to make them searchable, but before we can do that, we need a place to store our data.",ft,me,gn=`Since we are using an ingestion pipeline, we can directly attach a vector store to the pipeline to populate it.
In this case, we will use <code>Chroma</code> to store our documents.`,yt,I,Ve,Mn="Install ChromaDB",Pt,Ee,vn='As introduced in the <a href="./llama-hub">section on the LlamaHub</a>, we can install the ChromaDB vector store with the following command:',Qt,ue,wt,pe,bt,V,gt,de,Tn=`This is where vector embeddings come in - by embedding both the query and nodes in the same vector space, we can find relevant matches.
The <code>VectorStoreIndex</code> handles this for us, using the same embedding model we used during ingestion to ensure consistency.`,Mt,ce,$n="Let’s see how to create this index from our vector store and embeddings:",vt,he,Tt,fe,xn="All information is automatically persisted within the <code>ChromaVectorStore</code> object and the passed directory path.",$t,ye,Jn="Great! Now that we can save and load our index easily, let’s explore how to query it in different ways.",xt,we,Jt,be,Cn="Before we can query our index, we need to convert it to a query interface. The most common conversion options are:",Ct,ge,Un="<li><code>as_retriever</code>: For basic document retrieval, returning a list of <code>NodeWithScore</code> objects with similarity scores</li> <li><code>as_query_engine</code>: For single question-answer interactions, returning a written response</li> <li><code>as_chat_engine</code>: For conversational interactions that maintain memory across multiple messages, returning a written response using chat history and indexed context</li>",Ut,Me,_n=`We’ll focus on the query engine since it is more common for agent-like interactions.
We also pass in an LLM to the query engine to use for the response.`,_t,ve,jt,Te,Zt,$e,jn=`Under the hood, the query engine doesn’t only use the LLM to answer the question but also uses a <code>ResponseSynthesizer</code> as a strategy to process the response.
Once again, this is fully customisable but there are three main strategies that work well out of the box:`,It,xe,Zn="<li><code>refine</code>: create and refine an answer by sequentially going through each retrieved text chunk. This makes a separate LLM call per Node/retrieved chunk.</li> <li><code>compact</code> (default): similar to refining but concatenating the chunks beforehand, resulting in fewer LLM calls.</li> <li><code>tree_summarize</code>: create a detailed answer by going through each retrieved text chunk and creating a tree structure of the answer.</li>",Wt,E,Lt,Je,In="The language model won’t always perform in predictable ways, so we can’t be sure that the answer we get is always correct. We can deal with this by <strong>evaluating the quality of the answer</strong>.",kt,Ce,Gt,Ue,Wn=`LlamaIndex provides <strong>built-in evaluation tools to assess response quality.</strong>
These evaluators leverage LLMs to analyze responses across different dimensions.
Let’s look at the three main evaluators available:`,Vt,_e,Ln="<li><code>FaithfulnessEvaluator</code>: Evaluates the faithfulness of the answer by checking if the answer is supported by the context.</li> <li><code>AnswerRelevancyEvaluator</code>: Evaluate the relevance of the answer by checking if the answer is relevant to the question.</li> <li><code>CorrectnessEvaluator</code>: Evaluate the correctness of the answer by checking if the answer is correct.</li>",Et,R,Rt,je,Bt,Ze,kn=`Even without direct evaluation, we can <strong>gain insights into how our system is performing through observability.</strong>
This is especially useful when we are building more complex workflows and want to understand how each component is performing.`,Xt,J,Re,Gn="Install LlamaTrace",zt,Be,Vn='As introduced in the <a href="./llama-hub">section on the LlamaHub</a>, we can install the LlamaTrace callback from Arize Phoenix with the following command:',Dt,Ie,Kt,Xe,En="Additionally, we need to set the <code>PHOENIX_API_KEY</code> environment variable to our LlamaTrace API key. We can get this by:",Ot,He,Rn='<li>Creating an account at <a href="https://llamatrace.com/login" rel="nofollow">LlamaTrace</a></li> <li>Generating an API key in your account settings</li> <li>Using the API key in the code below to enable tracing</li>',Ht,We,At,B,St,Le,Bn="We have seen how to use components to create a <code>QueryEngine</code>. Now, let’s see how we can <strong>use the <code>QueryEngine</code> as a tool for an agent!</strong>",Yt,ke,Ft,Ye,Nt;return i=new Ge({props:{title:"What are components in LlamaIndex?",local:"what-are-components-in-llamaindex",headingTag:"h1"}}),q=new Ge({props:{title:"Creating a RAG pipeline using components",local:"creating-a-rag-pipeline-using-components",headingTag:"h2"}}),k=new Ae({props:{$$slots:{default:[zn]},$$scope:{ctx:x}}}),D=new Ge({props:{title:"Loading and embedding documents",local:"loading-and-embedding-documents",headingTag:"h3"}}),G=new Ae({props:{$$slots:{default:[Dn]},$$scope:{ctx:x}}}),te=new L({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUlMjBpbXBvcnQlMjBTaW1wbGVEaXJlY3RvcnlSZWFkZXIlMEElMEFyZWFkZXIlMjAlM0QlMjBTaW1wbGVEaXJlY3RvcnlSZWFkZXIoaW5wdXRfZGlyJTNEJTIycGF0aCUyRnRvJTJGZGlyZWN0b3J5JTIyKSUwQWRvY3VtZW50cyUyMCUzRCUyMHJlYWRlci5sb2FkX2RhdGEoKQ==",highlighted:`<span class="hljs-keyword">from</span> llama_index.core <span class="hljs-keyword">import</span> SimpleDirectoryReader

reader = SimpleDirectoryReader(input_dir=<span class="hljs-string">&quot;path/to/directory&quot;</span>)
documents = reader.load_data()`,wrap:!1}}),ie=new L({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUlMjBpbXBvcnQlMjBEb2N1bWVudCUwQWZyb20lMjBsbGFtYV9pbmRleC5lbWJlZGRpbmdzLmh1Z2dpbmdmYWNlJTIwaW1wb3J0JTIwSHVnZ2luZ0ZhY2VFbWJlZGRpbmclMEFmcm9tJTIwbGxhbWFfaW5kZXguY29yZS5ub2RlX3BhcnNlciUyMGltcG9ydCUyMFNlbnRlbmNlU3BsaXR0ZXIlMEFmcm9tJTIwbGxhbWFfaW5kZXguY29yZS5pbmdlc3Rpb24lMjBpbXBvcnQlMjBJbmdlc3Rpb25QaXBlbGluZSUwQSUwQSUyMyUyMGNyZWF0ZSUyMHRoZSUyMHBpcGVsaW5lJTIwd2l0aCUyMHRyYW5zZm9ybWF0aW9ucyUwQXBpcGVsaW5lJTIwJTNEJTIwSW5nZXN0aW9uUGlwZWxpbmUoJTBBJTIwJTIwJTIwJTIwdHJhbnNmb3JtYXRpb25zJTNEJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwU2VudGVuY2VTcGxpdHRlcihjaHVua19vdmVybGFwJTNEMCklMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBIdWdnaW5nRmFjZUVtYmVkZGluZyhtb2RlbF9uYW1lJTNEJTIyQkFBSSUyRmJnZS1zbWFsbC1lbi12MS41JTIyKSUyQyUwQSUyMCUyMCUyMCUyMCU1RCUwQSklMEElMEFub2RlcyUyMCUzRCUyMGF3YWl0JTIwcGlwZWxpbmUuYXJ1bihkb2N1bWVudHMlM0QlNUJEb2N1bWVudC5leGFtcGxlKCklNUQp",highlighted:`<span class="hljs-keyword">from</span> llama_index.core <span class="hljs-keyword">import</span> Document
<span class="hljs-keyword">from</span> llama_index.embeddings.huggingface <span class="hljs-keyword">import</span> HuggingFaceEmbedding
<span class="hljs-keyword">from</span> llama_index.core.node_parser <span class="hljs-keyword">import</span> SentenceSplitter
<span class="hljs-keyword">from</span> llama_index.core.ingestion <span class="hljs-keyword">import</span> IngestionPipeline

<span class="hljs-comment"># create the pipeline with transformations</span>
pipeline = IngestionPipeline(
    transformations=[
        SentenceSplitter(chunk_overlap=<span class="hljs-number">0</span>),
        HuggingFaceEmbedding(model_name=<span class="hljs-string">&quot;BAAI/bge-small-en-v1.5&quot;</span>),
    ]
)

nodes = <span class="hljs-keyword">await</span> pipeline.arun(documents=[Document.example()])`,wrap:!1}}),oe=new Ge({props:{title:"Storing and indexing documents",local:"storing-and-indexing-documents",headingTag:"h3"}}),ue=new L({props:{code:"cGlwJTIwaW5zdGFsbCUyMGxsYW1hLWluZGV4LXZlY3Rvci1zdG9yZXMtY2hyb21h",highlighted:"pip install llama-index-vector-stores-chroma",wrap:!1}}),pe=new L({props:{code:"aW1wb3J0JTIwY2hyb21hZGIlMEFmcm9tJTIwbGxhbWFfaW5kZXgudmVjdG9yX3N0b3Jlcy5jaHJvbWElMjBpbXBvcnQlMjBDaHJvbWFWZWN0b3JTdG9yZSUwQSUwQWRiJTIwJTNEJTIwY2hyb21hZGIuUGVyc2lzdGVudENsaWVudChwYXRoJTNEJTIyLiUyRmFsZnJlZF9jaHJvbWFfZGIlMjIpJTBBY2hyb21hX2NvbGxlY3Rpb24lMjAlM0QlMjBkYi5nZXRfb3JfY3JlYXRlX2NvbGxlY3Rpb24oJTIyYWxmcmVkJTIyKSUwQXZlY3Rvcl9zdG9yZSUyMCUzRCUyMENocm9tYVZlY3RvclN0b3JlKGNocm9tYV9jb2xsZWN0aW9uJTNEY2hyb21hX2NvbGxlY3Rpb24pJTBBJTBBcGlwZWxpbmUlMjAlM0QlMjBJbmdlc3Rpb25QaXBlbGluZSglMEElMjAlMjAlMjAlMjB0cmFuc2Zvcm1hdGlvbnMlM0QlNUIlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBTZW50ZW5jZVNwbGl0dGVyKGNodW5rX3NpemUlM0QyNSUyQyUyMGNodW5rX292ZXJsYXAlM0QwKSUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMEh1Z2dpbmdGYWNlRW1iZWRkaW5nKG1vZGVsX25hbWUlM0QlMjJCQUFJJTJGYmdlLXNtYWxsLWVuLXYxLjUlMjIpJTJDJTBBJTIwJTIwJTIwJTIwJTVEJTJDJTBBJTIwJTIwJTIwJTIwdmVjdG9yX3N0b3JlJTNEdmVjdG9yX3N0b3JlJTJDJTBBKQ==",highlighted:`<span class="hljs-keyword">import</span> chromadb
<span class="hljs-keyword">from</span> llama_index.vector_stores.chroma <span class="hljs-keyword">import</span> ChromaVectorStore

db = chromadb.PersistentClient(path=<span class="hljs-string">&quot;./alfred_chroma_db&quot;</span>)
chroma_collection = db.get_or_create_collection(<span class="hljs-string">&quot;alfred&quot;</span>)
vector_store = ChromaVectorStore(chroma_collection=chroma_collection)

pipeline = IngestionPipeline(
    transformations=[
        SentenceSplitter(chunk_size=<span class="hljs-number">25</span>, chunk_overlap=<span class="hljs-number">0</span>),
        HuggingFaceEmbedding(model_name=<span class="hljs-string">&quot;BAAI/bge-small-en-v1.5&quot;</span>),
    ],
    vector_store=vector_store,
)`,wrap:!1}}),V=new Ae({props:{$$slots:{default:[Kn]},$$scope:{ctx:x}}}),he=new L({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUlMjBpbXBvcnQlMjBWZWN0b3JTdG9yZUluZGV4JTBBZnJvbSUyMGxsYW1hX2luZGV4LmVtYmVkZGluZ3MuaHVnZ2luZ2ZhY2UlMjBpbXBvcnQlMjBIdWdnaW5nRmFjZUVtYmVkZGluZyUwQSUwQWVtYmVkX21vZGVsJTIwJTNEJTIwSHVnZ2luZ0ZhY2VFbWJlZGRpbmcobW9kZWxfbmFtZSUzRCUyMkJBQUklMkZiZ2Utc21hbGwtZW4tdjEuNSUyMiklMEFpbmRleCUyMCUzRCUyMFZlY3RvclN0b3JlSW5kZXguZnJvbV92ZWN0b3Jfc3RvcmUodmVjdG9yX3N0b3JlJTJDJTIwZW1iZWRfbW9kZWwlM0RlbWJlZF9tb2RlbCk=",highlighted:`<span class="hljs-keyword">from</span> llama_index.core <span class="hljs-keyword">import</span> VectorStoreIndex
<span class="hljs-keyword">from</span> llama_index.embeddings.huggingface <span class="hljs-keyword">import</span> HuggingFaceEmbedding

embed_model = HuggingFaceEmbedding(model_name=<span class="hljs-string">&quot;BAAI/bge-small-en-v1.5&quot;</span>)
index = VectorStoreIndex.from_vector_store(vector_store, embed_model=embed_model)`,wrap:!1}}),we=new Ge({props:{title:"Querying a VectorStoreIndex with prompts and LLMs",local:"querying-a-vectorstoreindex-with-prompts-and-llms",headingTag:"h3"}}),ve=new L({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmxsbXMuaHVnZ2luZ2ZhY2VfYXBpJTIwaW1wb3J0JTIwSHVnZ2luZ0ZhY2VJbmZlcmVuY2VBUEklMEElMEFsbG0lMjAlM0QlMjBIdWdnaW5nRmFjZUluZmVyZW5jZUFQSShtb2RlbF9uYW1lJTNEJTIyUXdlbiUyRlF3ZW4yLjUtQ29kZXItMzJCLUluc3RydWN0JTIyKSUwQXF1ZXJ5X2VuZ2luZSUyMCUzRCUyMGluZGV4LmFzX3F1ZXJ5X2VuZ2luZSglMEElMjAlMjAlMjAlMjBsbG0lM0RsbG0lMkMlMEElMjAlMjAlMjAlMjByZXNwb25zZV9tb2RlJTNEJTIydHJlZV9zdW1tYXJpemUlMjIlMkMlMEEpJTBBcXVlcnlfZW5naW5lLnF1ZXJ5KCUyMldoYXQlMjBpcyUyMHRoZSUyMG1lYW5pbmclMjBvZiUyMGxpZmUlM0YlMjIpJTBBJTIzJTIwVGhlJTIwbWVhbmluZyUyMG9mJTIwbGlmZSUyMGlzJTIwNDI=",highlighted:`<span class="hljs-keyword">from</span> llama_index.llms.huggingface_api <span class="hljs-keyword">import</span> HuggingFaceInferenceAPI

llm = HuggingFaceInferenceAPI(model_name=<span class="hljs-string">&quot;Qwen/Qwen2.5-Coder-32B-Instruct&quot;</span>)
query_engine = index.as_query_engine(
    llm=llm,
    response_mode=<span class="hljs-string">&quot;tree_summarize&quot;</span>,
)
query_engine.query(<span class="hljs-string">&quot;What is the meaning of life?&quot;</span>)
<span class="hljs-comment"># The meaning of life is 42</span>`,wrap:!1}}),Te=new Ge({props:{title:"Response Processing",local:"response-processing",headingTag:"h3"}}),E=new Ae({props:{$$slots:{default:[On]},$$scope:{ctx:x}}}),Ce=new Ge({props:{title:"Evaluation and observability",local:"evaluation-and-observability",headingTag:"h3"}}),R=new Ae({props:{$$slots:{default:[el]},$$scope:{ctx:x}}}),je=new L({props:{code:"ZnJvbSUyMGxsYW1hX2luZGV4LmNvcmUuZXZhbHVhdGlvbiUyMGltcG9ydCUyMEZhaXRoZnVsbmVzc0V2YWx1YXRvciUwQSUwQXF1ZXJ5X2VuZ2luZSUyMCUzRCUyMCUyMyUyMGZyb20lMjB0aGUlMjBwcmV2aW91cyUyMHNlY3Rpb24lMEFsbG0lMjAlM0QlMjAlMjMlMjBmcm9tJTIwdGhlJTIwcHJldmlvdXMlMjBzZWN0aW9uJTBBJTBBJTIzJTIwcXVlcnklMjBpbmRleCUwQWV2YWx1YXRvciUyMCUzRCUyMEZhaXRoZnVsbmVzc0V2YWx1YXRvcihsbG0lM0RsbG0pJTBBcmVzcG9uc2UlMjAlM0QlMjBxdWVyeV9lbmdpbmUucXVlcnkoJTBBJTIwJTIwJTIwJTIwJTIyV2hhdCUyMGJhdHRsZXMlMjB0b29rJTIwcGxhY2UlMjBpbiUyME5ldyUyMFlvcmslMjBDaXR5JTIwaW4lMjB0aGUlMjBBbWVyaWNhbiUyMFJldm9sdXRpb24lM0YlMjIlMEEpJTBBZXZhbF9yZXN1bHQlMjAlM0QlMjBldmFsdWF0b3IuZXZhbHVhdGVfcmVzcG9uc2UocmVzcG9uc2UlM0RyZXNwb25zZSklMEFldmFsX3Jlc3VsdC5wYXNzaW5n",highlighted:`<span class="hljs-keyword">from</span> llama_index.core.evaluation <span class="hljs-keyword">import</span> FaithfulnessEvaluator

query_engine = <span class="hljs-comment"># from the previous section</span>
llm = <span class="hljs-comment"># from the previous section</span>

<span class="hljs-comment"># query index</span>
evaluator = FaithfulnessEvaluator(llm=llm)
response = query_engine.query(
    <span class="hljs-string">&quot;What battles took place in New York City in the American Revolution?&quot;</span>
)
eval_result = evaluator.evaluate_response(response=response)
eval_result.passing`,wrap:!1}}),Ie=new L({props:{code:"cGlwJTIwaW5zdGFsbCUyMC1VJTIwbGxhbWEtaW5kZXgtY2FsbGJhY2tzLWFyaXplLXBob2VuaXg=",highlighted:"pip install -U llama-index-callbacks-arize-phoenix",wrap:!1}}),We=new L({props:{code:"aW1wb3J0JTIwbGxhbWFfaW5kZXglMEFpbXBvcnQlMjBvcyUwQSUwQVBIT0VOSVhfQVBJX0tFWSUyMCUzRCUyMCUyMiUzQ1BIT0VOSVhfQVBJX0tFWSUzRSUyMiUwQW9zLmVudmlyb24lNUIlMjJPVEVMX0VYUE9SVEVSX09UTFBfSEVBREVSUyUyMiU1RCUyMCUzRCUyMGYlMjJhcGlfa2V5JTNEJTdCUEhPRU5JWF9BUElfS0VZJTdEJTIyJTBBbGxhbWFfaW5kZXguY29yZS5zZXRfZ2xvYmFsX2hhbmRsZXIoJTBBJTIwJTIwJTIwJTIwJTIyYXJpemVfcGhvZW5peCUyMiUyQyUwQSUyMCUyMCUyMCUyMGVuZHBvaW50JTNEJTIyaHR0cHMlM0ElMkYlMkZsbGFtYXRyYWNlLmNvbSUyRnYxJTJGdHJhY2VzJTIyJTBBKQ==",highlighted:`<span class="hljs-keyword">import</span> llama_index
<span class="hljs-keyword">import</span> os

PHOENIX_API_KEY = <span class="hljs-string">&quot;&lt;PHOENIX_API_KEY&gt;&quot;</span>
os.environ[<span class="hljs-string">&quot;OTEL_EXPORTER_OTLP_HEADERS&quot;</span>] = <span class="hljs-string">f&quot;api_key=<span class="hljs-subst">{PHOENIX_API_KEY}</span>&quot;</span>
llama_index.core.set_global_handler(
    <span class="hljs-string">&quot;arize_phoenix&quot;</span>,
    endpoint=<span class="hljs-string">&quot;https://llamatrace.com/v1/traces&quot;</span>
)`,wrap:!1}}),B=new Ae({props:{$$slots:{default:[tl]},$$scope:{ctx:x}}}),ke=new Qn({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit2/llama-index/components.mdx"}}),{c(){p=r("meta"),o=a(),y=r("p"),c=a(),w(i.$$.fragment),f=a(),h=r("p"),h.innerHTML=d,$=a(),X=r("p"),X.innerHTML=en,Fe=a(),H=r("p"),H.textContent=tn,Ne=a(),A=r("p"),A.innerHTML=nn,qe=a(),S=r("p"),S.textContent=ln,Pe=a(),Y=r("ol"),Y.innerHTML=an,Qe=a(),F=r("p"),F.innerHTML=sn,ze=a(),N=r("p"),N.innerHTML=on,De=a(),w(q.$$.fragment),Ke=a(),w(k.$$.fragment),Oe=a(),P=r("p"),P.textContent=rn,et=a(),Q=r("ol"),Q.innerHTML=mn,tt=a(),z=r("p"),z.textContent=un,nt=a(),w(D.$$.fragment),lt=a(),K=r("p"),K.innerHTML=pn,at=a(),O=r("ol"),O.innerHTML=dn,st=a(),w(G.$$.fragment),it=a(),ee=r("p"),ee.innerHTML=cn,ot=a(),w(te.$$.fragment),rt=a(),ne=r("p"),ne.innerHTML=hn,mt=a(),le=r("p"),le.innerHTML=fn,ut=a(),ae=r("ol"),ae.innerHTML=yn,pt=a(),se=r("p"),se.textContent=wn,dt=a(),w(ie.$$.fragment),ct=a(),w(oe.$$.fragment),ht=a(),re=r("p"),re.innerHTML=bn,ft=a(),me=r("p"),me.innerHTML=gn,yt=a(),I=r("details"),Ve=r("summary"),Ve.textContent=Mn,Pt=a(),Ee=r("p"),Ee.innerHTML=vn,Qt=a(),w(ue.$$.fragment),wt=a(),w(pe.$$.fragment),bt=a(),w(V.$$.fragment),gt=a(),de=r("p"),de.innerHTML=Tn,Mt=a(),ce=r("p"),ce.textContent=$n,vt=a(),w(he.$$.fragment),Tt=a(),fe=r("p"),fe.innerHTML=xn,$t=a(),ye=r("p"),ye.textContent=Jn,xt=a(),w(we.$$.fragment),Jt=a(),be=r("p"),be.textContent=Cn,Ct=a(),ge=r("ul"),ge.innerHTML=Un,Ut=a(),Me=r("p"),Me.textContent=_n,_t=a(),w(ve.$$.fragment),jt=a(),w(Te.$$.fragment),Zt=a(),$e=r("p"),$e.innerHTML=jn,It=a(),xe=r("ul"),xe.innerHTML=Zn,Wt=a(),w(E.$$.fragment),Lt=a(),Je=r("p"),Je.innerHTML=In,kt=a(),w(Ce.$$.fragment),Gt=a(),Ue=r("p"),Ue.innerHTML=Wn,Vt=a(),_e=r("ul"),_e.innerHTML=Ln,Et=a(),w(R.$$.fragment),Rt=a(),w(je.$$.fragment),Bt=a(),Ze=r("p"),Ze.innerHTML=kn,Xt=a(),J=r("details"),Re=r("summary"),Re.textContent=Gn,zt=a(),Be=r("p"),Be.innerHTML=Vn,Dt=a(),w(Ie.$$.fragment),Kt=a(),Xe=r("p"),Xe.innerHTML=En,Ot=a(),He=r("ul"),He.innerHTML=Rn,Ht=a(),w(We.$$.fragment),At=a(),w(B.$$.fragment),St=a(),Le=r("p"),Le.innerHTML=Bn,Yt=a(),w(ke.$$.fragment),Ft=a(),Ye=r("p"),this.h()},l(e){const t=Pn("svelte-u9bgzb",document.head);p=m(t,"META",{name:!0,content:!0}),t.forEach(n),o=s(e),y=m(e,"P",{}),qt(y).forEach(n),c=s(e),b(i.$$.fragment,e),f=s(e),h=m(e,"P",{"data-svelte-h":!0}),u(h)!=="svelte-1vh4okn"&&(h.innerHTML=d),$=s(e),X=m(e,"P",{"data-svelte-h":!0}),u(X)!=="svelte-35rbyv"&&(X.innerHTML=en),Fe=s(e),H=m(e,"P",{"data-svelte-h":!0}),u(H)!=="svelte-1dt1sd0"&&(H.textContent=tn),Ne=s(e),A=m(e,"P",{"data-svelte-h":!0}),u(A)!=="svelte-kysd50"&&(A.innerHTML=nn),qe=s(e),S=m(e,"P",{"data-svelte-h":!0}),u(S)!=="svelte-aqkixd"&&(S.textContent=ln),Pe=s(e),Y=m(e,"OL",{"data-svelte-h":!0}),u(Y)!=="svelte-135qvuu"&&(Y.innerHTML=an),Qe=s(e),F=m(e,"P",{"data-svelte-h":!0}),u(F)!=="svelte-mnkj36"&&(F.innerHTML=sn),ze=s(e),N=m(e,"P",{"data-svelte-h":!0}),u(N)!=="svelte-ga98sq"&&(N.innerHTML=on),De=s(e),b(q.$$.fragment,e),Ke=s(e),b(k.$$.fragment,e),Oe=s(e),P=m(e,"P",{"data-svelte-h":!0}),u(P)!=="svelte-bhgae9"&&(P.textContent=rn),et=s(e),Q=m(e,"OL",{"data-svelte-h":!0}),u(Q)!=="svelte-1y6wwuy"&&(Q.innerHTML=mn),tt=s(e),z=m(e,"P",{"data-svelte-h":!0}),u(z)!=="svelte-12zc4us"&&(z.textContent=un),nt=s(e),b(D.$$.fragment,e),lt=s(e),K=m(e,"P",{"data-svelte-h":!0}),u(K)!=="svelte-1246hsd"&&(K.innerHTML=pn),at=s(e),O=m(e,"OL",{"data-svelte-h":!0}),u(O)!=="svelte-iz7p8h"&&(O.innerHTML=dn),st=s(e),b(G.$$.fragment,e),it=s(e),ee=m(e,"P",{"data-svelte-h":!0}),u(ee)!=="svelte-1c6elju"&&(ee.innerHTML=cn),ot=s(e),b(te.$$.fragment,e),rt=s(e),ne=m(e,"P",{"data-svelte-h":!0}),u(ne)!=="svelte-4bo0to"&&(ne.innerHTML=hn),mt=s(e),le=m(e,"P",{"data-svelte-h":!0}),u(le)!=="svelte-1uspfck"&&(le.innerHTML=fn),ut=s(e),ae=m(e,"OL",{"data-svelte-h":!0}),u(ae)!=="svelte-1slr2bx"&&(ae.innerHTML=yn),pt=s(e),se=m(e,"P",{"data-svelte-h":!0}),u(se)!=="svelte-7ysnum"&&(se.textContent=wn),dt=s(e),b(ie.$$.fragment,e),ct=s(e),b(oe.$$.fragment,e),ht=s(e),re=m(e,"P",{"data-svelte-h":!0}),u(re)!=="svelte-1symqva"&&(re.innerHTML=bn),ft=s(e),me=m(e,"P",{"data-svelte-h":!0}),u(me)!=="svelte-1j1sj1y"&&(me.innerHTML=gn),yt=s(e),I=m(e,"DETAILS",{});var W=qt(I);Ve=m(W,"SUMMARY",{"data-svelte-h":!0}),u(Ve)!=="svelte-187ducf"&&(Ve.textContent=Mn),Pt=s(W),Ee=m(W,"P",{"data-svelte-h":!0}),u(Ee)!=="svelte-z0lktq"&&(Ee.innerHTML=vn),Qt=s(W),b(ue.$$.fragment,W),W.forEach(n),wt=s(e),b(pe.$$.fragment,e),bt=s(e),b(V.$$.fragment,e),gt=s(e),de=m(e,"P",{"data-svelte-h":!0}),u(de)!=="svelte-axr536"&&(de.innerHTML=Tn),Mt=s(e),ce=m(e,"P",{"data-svelte-h":!0}),u(ce)!=="svelte-s47gic"&&(ce.textContent=$n),vt=s(e),b(he.$$.fragment,e),Tt=s(e),fe=m(e,"P",{"data-svelte-h":!0}),u(fe)!=="svelte-54vaw7"&&(fe.innerHTML=xn),$t=s(e),ye=m(e,"P",{"data-svelte-h":!0}),u(ye)!=="svelte-1j63axa"&&(ye.textContent=Jn),xt=s(e),b(we.$$.fragment,e),Jt=s(e),be=m(e,"P",{"data-svelte-h":!0}),u(be)!=="svelte-18ur37c"&&(be.textContent=Cn),Ct=s(e),ge=m(e,"UL",{"data-svelte-h":!0}),u(ge)!=="svelte-d9r342"&&(ge.innerHTML=Un),Ut=s(e),Me=m(e,"P",{"data-svelte-h":!0}),u(Me)!=="svelte-rqskw5"&&(Me.textContent=_n),_t=s(e),b(ve.$$.fragment,e),jt=s(e),b(Te.$$.fragment,e),Zt=s(e),$e=m(e,"P",{"data-svelte-h":!0}),u($e)!=="svelte-1j4gc2q"&&($e.innerHTML=jn),It=s(e),xe=m(e,"UL",{"data-svelte-h":!0}),u(xe)!=="svelte-3mam70"&&(xe.innerHTML=Zn),Wt=s(e),b(E.$$.fragment,e),Lt=s(e),Je=m(e,"P",{"data-svelte-h":!0}),u(Je)!=="svelte-16j3xwr"&&(Je.innerHTML=In),kt=s(e),b(Ce.$$.fragment,e),Gt=s(e),Ue=m(e,"P",{"data-svelte-h":!0}),u(Ue)!=="svelte-1m4sp8c"&&(Ue.innerHTML=Wn),Vt=s(e),_e=m(e,"UL",{"data-svelte-h":!0}),u(_e)!=="svelte-252wdz"&&(_e.innerHTML=Ln),Et=s(e),b(R.$$.fragment,e),Rt=s(e),b(je.$$.fragment,e),Bt=s(e),Ze=m(e,"P",{"data-svelte-h":!0}),u(Ze)!=="svelte-f2lt8l"&&(Ze.innerHTML=kn),Xt=s(e),J=m(e,"DETAILS",{});var _=qt(J);Re=m(_,"SUMMARY",{"data-svelte-h":!0}),u(Re)!=="svelte-1csrw0t"&&(Re.textContent=Gn),zt=s(_),Be=m(_,"P",{"data-svelte-h":!0}),u(Be)!=="svelte-ho52mp"&&(Be.innerHTML=Vn),Dt=s(_),b(Ie.$$.fragment,_),Kt=s(_),Xe=m(_,"P",{"data-svelte-h":!0}),u(Xe)!=="svelte-2gef6z"&&(Xe.innerHTML=En),Ot=s(_),He=m(_,"UL",{"data-svelte-h":!0}),u(He)!=="svelte-13n4s9w"&&(He.innerHTML=Rn),_.forEach(n),Ht=s(e),b(We.$$.fragment,e),At=s(e),b(B.$$.fragment,e),St=s(e),Le=m(e,"P",{"data-svelte-h":!0}),u(Le)!=="svelte-13rfypl"&&(Le.innerHTML=Bn),Yt=s(e),b(ke.$$.fragment,e),Ft=s(e),Ye=m(e,"P",{}),qt(Ye).forEach(n),this.h()},h(){Z(p,"name","hf:doc:metadata"),Z(p,"content",ll)},m(e,t){j(document.head,p),l(e,o,t),l(e,y,t),l(e,c,t),g(i,e,t),l(e,f,t),l(e,h,t),l(e,$,t),l(e,X,t),l(e,Fe,t),l(e,H,t),l(e,Ne,t),l(e,A,t),l(e,qe,t),l(e,S,t),l(e,Pe,t),l(e,Y,t),l(e,Qe,t),l(e,F,t),l(e,ze,t),l(e,N,t),l(e,De,t),g(q,e,t),l(e,Ke,t),g(k,e,t),l(e,Oe,t),l(e,P,t),l(e,et,t),l(e,Q,t),l(e,tt,t),l(e,z,t),l(e,nt,t),g(D,e,t),l(e,lt,t),l(e,K,t),l(e,at,t),l(e,O,t),l(e,st,t),g(G,e,t),l(e,it,t),l(e,ee,t),l(e,ot,t),g(te,e,t),l(e,rt,t),l(e,ne,t),l(e,mt,t),l(e,le,t),l(e,ut,t),l(e,ae,t),l(e,pt,t),l(e,se,t),l(e,dt,t),g(ie,e,t),l(e,ct,t),g(oe,e,t),l(e,ht,t),l(e,re,t),l(e,ft,t),l(e,me,t),l(e,yt,t),l(e,I,t),j(I,Ve),j(I,Pt),j(I,Ee),j(I,Qt),g(ue,I,null),l(e,wt,t),g(pe,e,t),l(e,bt,t),g(V,e,t),l(e,gt,t),l(e,de,t),l(e,Mt,t),l(e,ce,t),l(e,vt,t),g(he,e,t),l(e,Tt,t),l(e,fe,t),l(e,$t,t),l(e,ye,t),l(e,xt,t),g(we,e,t),l(e,Jt,t),l(e,be,t),l(e,Ct,t),l(e,ge,t),l(e,Ut,t),l(e,Me,t),l(e,_t,t),g(ve,e,t),l(e,jt,t),g(Te,e,t),l(e,Zt,t),l(e,$e,t),l(e,It,t),l(e,xe,t),l(e,Wt,t),g(E,e,t),l(e,Lt,t),l(e,Je,t),l(e,kt,t),g(Ce,e,t),l(e,Gt,t),l(e,Ue,t),l(e,Vt,t),l(e,_e,t),l(e,Et,t),g(R,e,t),l(e,Rt,t),g(je,e,t),l(e,Bt,t),l(e,Ze,t),l(e,Xt,t),l(e,J,t),j(J,Re),j(J,zt),j(J,Be),j(J,Dt),g(Ie,J,null),j(J,Kt),j(J,Xe),j(J,Ot),j(J,He),l(e,Ht,t),g(We,e,t),l(e,At,t),g(B,e,t),l(e,St,t),l(e,Le,t),l(e,Yt,t),g(ke,e,t),l(e,Ft,t),l(e,Ye,t),Nt=!0},p(e,[t]){const W={};t&2&&(W.$$scope={dirty:t,ctx:e}),k.$set(W);const _={};t&2&&(_.$$scope={dirty:t,ctx:e}),G.$set(_);const Xn={};t&2&&(Xn.$$scope={dirty:t,ctx:e}),V.$set(Xn);const Hn={};t&2&&(Hn.$$scope={dirty:t,ctx:e}),E.$set(Hn);const An={};t&2&&(An.$$scope={dirty:t,ctx:e}),R.$set(An);const Sn={};t&2&&(Sn.$$scope={dirty:t,ctx:e}),B.$set(Sn)},i(e){Nt||(M(i.$$.fragment,e),M(q.$$.fragment,e),M(k.$$.fragment,e),M(D.$$.fragment,e),M(G.$$.fragment,e),M(te.$$.fragment,e),M(ie.$$.fragment,e),M(oe.$$.fragment,e),M(ue.$$.fragment,e),M(pe.$$.fragment,e),M(V.$$.fragment,e),M(he.$$.fragment,e),M(we.$$.fragment,e),M(ve.$$.fragment,e),M(Te.$$.fragment,e),M(E.$$.fragment,e),M(Ce.$$.fragment,e),M(R.$$.fragment,e),M(je.$$.fragment,e),M(Ie.$$.fragment,e),M(We.$$.fragment,e),M(B.$$.fragment,e),M(ke.$$.fragment,e),Nt=!0)},o(e){v(i.$$.fragment,e),v(q.$$.fragment,e),v(k.$$.fragment,e),v(D.$$.fragment,e),v(G.$$.fragment,e),v(te.$$.fragment,e),v(ie.$$.fragment,e),v(oe.$$.fragment,e),v(ue.$$.fragment,e),v(pe.$$.fragment,e),v(V.$$.fragment,e),v(he.$$.fragment,e),v(we.$$.fragment,e),v(ve.$$.fragment,e),v(Te.$$.fragment,e),v(E.$$.fragment,e),v(Ce.$$.fragment,e),v(R.$$.fragment,e),v(je.$$.fragment,e),v(Ie.$$.fragment,e),v(We.$$.fragment,e),v(B.$$.fragment,e),v(ke.$$.fragment,e),Nt=!1},d(e){e&&(n(o),n(y),n(c),n(f),n(h),n($),n(X),n(Fe),n(H),n(Ne),n(A),n(qe),n(S),n(Pe),n(Y),n(Qe),n(F),n(ze),n(N),n(De),n(Ke),n(Oe),n(P),n(et),n(Q),n(tt),n(z),n(nt),n(lt),n(K),n(at),n(O),n(st),n(it),n(ee),n(ot),n(rt),n(ne),n(mt),n(le),n(ut),n(ae),n(pt),n(se),n(dt),n(ct),n(ht),n(re),n(ft),n(me),n(yt),n(I),n(wt),n(bt),n(gt),n(de),n(Mt),n(ce),n(vt),n(Tt),n(fe),n($t),n(ye),n(xt),n(Jt),n(be),n(Ct),n(ge),n(Ut),n(Me),n(_t),n(jt),n(Zt),n($e),n(It),n(xe),n(Wt),n(Lt),n(Je),n(kt),n(Gt),n(Ue),n(Vt),n(_e),n(Et),n(Rt),n(Bt),n(Ze),n(Xt),n(J),n(Ht),n(At),n(St),n(Le),n(Yt),n(Ft),n(Ye)),n(p),T(i,e),T(q,e),T(k,e),T(D,e),T(G,e),T(te,e),T(ie,e),T(oe,e),T(ue),T(pe,e),T(V,e),T(he,e),T(we,e),T(ve,e),T(Te,e),T(E,e),T(Ce,e),T(R,e),T(je,e),T(Ie),T(We,e),T(B,e),T(ke,e)}}}const ll='{"title":"What are components in LlamaIndex?","local":"what-are-components-in-llamaindex","sections":[{"title":"Creating a RAG pipeline using components","local":"creating-a-rag-pipeline-using-components","sections":[{"title":"Loading and embedding documents","local":"loading-and-embedding-documents","sections":[],"depth":3},{"title":"Storing and indexing documents","local":"storing-and-indexing-documents","sections":[],"depth":3},{"title":"Querying a VectorStoreIndex with prompts and LLMs","local":"querying-a-vectorstoreindex-with-prompts-and-llms","sections":[],"depth":3},{"title":"Response Processing","local":"response-processing","sections":[],"depth":3},{"title":"Evaluation and observability","local":"evaluation-and-observability","sections":[],"depth":3}],"depth":2}],"depth":1}';function al(x){return Fn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pl extends Nn{constructor(p){super(),qn(this,p,al,nl,Yn,{})}}export{pl as component};
