import{s as gi,n as di,o as ui}from"../chunks/scheduler.5f3e6389.js";import{S as hi,i as vi,e as l,s as n,c as m,h as fi,a as i,d as t,b as a,f as h,g as c,j as _,k as v,l as s,m as o,n as p,t as g,o as d,p as u}from"../chunks/index.373ab25c.js";import{C as _i,H as $,E as $i}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.f4e1f514.js";import{D as f}from"../chunks/Docstring.3a1e0300.js";function bi(Cl){let E,ss,ts,ns,Le,as,we,ls,Me,is,ke,os,De,Te,ms,Ee,cs,P,Pe,ca,cr,Ll="Metric computed over the whole corpora, with computations happening at the aggregation phase",ps,Ne,gs,N,Re,pa,pr,wl="Metric computed per sample, then aggregated over the corpus",ds,je,us,R,Ie,ga,gr,Ml=`Some metrics are more advantageous to compute together at once.
For example, if a costly preprocessing is the same for all metrics, it makes more sense to compute it once.`,hs,Se,vs,j,Ae,da,dr,kl="MetricGrouping computed over the whole corpora, with computations happening at the aggregation phase",fs,Ve,_s,I,ze,ua,ur,Dl="MetricGrouping are computed per sample, then aggregated over the corpus",$s,Be,bs,Je,xs,S,Fe,ha,ee,Ue,va,hr,Tl="Computes the metric score over all the corpus generated items, by using the scikit learn implementation.",ys,Oe,Cs,A,Ge,fa,te,qe,_a,vr,El="Computes the metric score over all the corpus generated items.",Ls,He,ws,V,Ke,$a,re,Xe,ba,fr,Pl="Computes the metric score over all the corpus generated items, by using the sacrebleu implementation.",Ms,Ze,ks,z,Qe,xa,se,We,ya,_r,Nl='Computes the Matthews Correlation Coefficient, using scikit learn (<a href="https://scikit-learn.org/stable/modules/generated/sklearn.metrics.matthews_corrcoef.html" rel="nofollow">doc</a>).',Ds,Ye,Ts,et,Es,C,tt,Ca,ne,rt,La,$r,Rl="Computes the metric over a list of golds and predictions for one single sample.",wa,ae,st,Ma,br,jl="Compares two strings only.",Ps,nt,Ns,L,at,ka,le,lt,Da,xr,Il="Computes the metric over a list of golds and predictions for one single sample.",Ta,ie,it,Ea,yr,Sl="Compares two strings only.",Rs,ot,js,B,mt,Pa,oe,ct,Na,Cr,Al=`Computes the log likelihood accuracy: is the choice with the highest logprob in <code>choices_logprob</code> present
in the <code>gold_ixs</code>?`,Is,pt,Ss,J,gt,Ra,me,dt,ja,Lr,Vl="Computes the log likelihood probability: chance of choosing the best choice.",As,ut,Vs,F,ht,Ia,ce,vt,Sa,wr,zl="Computes the log likelihood probability: chance of choosing the best choice.",zs,ft,Bs,U,_t,Aa,pe,$t,Va,Mr,Bl=`Computes the recall at the requested depth level: looks at the <code>n</code> best predicted choices (with the
highest log probabilities) and see if there is an actual gold among them.`,Js,bt,Fs,O,xt,za,ge,yt,Ba,kr,Jl="Mean reciprocal rank. Measures the quality of a ranking of choices (ordered by correctness).",Us,Ct,Os,G,Lt,Ja,de,wt,Fa,Dr,Fl="Computes the metric(s) over a list of golds and predictions for one single sample.",Gs,Mt,qs,q,kt,Ua,ue,Dt,Oa,Tr,Ul="Computes the prediction, recall and f1 score using the bert scorer.",Hs,Tt,Ks,H,Et,Ga,w,Pt,qa,Er,Ol="Compute the extractiveness of the predictions.",Ha,Pr,Gl=`This method calculates coverage, density, and compression scores for a single
prediction against the input text.`,Xs,Nt,Zs,K,Rt,Ka,M,jt,Xa,Nr,ql="Compute the faithfulness of the predictions.",Za,Rr,Hl="The SummaCZS (Summary Content Zero-Shot) model is used with configurable granularity and model variation.",Qs,It,Ws,X,St,Qa,he,At,Wa,jr,Kl="Uses the stored BLEURT scorer to compute the score on the current sample.",Ys,Vt,en,Z,zt,Ya,ve,Bt,el,Ir,Xl="Computes the sentence level BLEU between the golds and each prediction, then takes the average.",tn,Jt,rn,y,Ft,tl,fe,Ut,rl,Sr,Zl="Computes all the requested metrics on the golds and prediction.",sl,k,Ot,nl,Ar,Ql="Compute the edit similarity between two lists of strings.",al,Vr,Wl=`Edit similarity is also used in the paper
Lee, Katherine, et al.
“Deduplicating training data makes language models better.”
arXiv preprint arXiv:2107.06499 (2021).`,ll,_e,Gt,il,zr,Yl="Compute the length of the longest common prefix.",sn,qt,nn,Ht,Kt,an,Xt,ln,Q,Zt,ol,$e,Qt,ml,Br,ei=`Compute the score of a generative task using a llm as a judge.
The generative task can be multiturn with 2 turns max, in that case, we
return scores for turn 1 and 2. Also returns user_prompt and judgement
which are ignored later by the aggregator.`,on,Wt,mn,W,Yt,cl,be,er,pl,Jr,ti=`Compute the score of a generative task using a llm as a judge.
The generative task can be multiturn with 2 turns max, in that case, we
return scores for turn 1 and 2. Also returns user_prompt and judgement
which are ignored later by the aggregator.`,cn,tr,pn,Y,rr,gl,xe,sr,dl,Fr,ri=`Computes the metric over a list of golds and predictions for one single sample.
It applies normalisation (if needed) to model prediction and gold, and takes the most frequent answer of all the available ones, then compares it to the gold.`,gn,nr,dn,ar,un,b,lr,ul,Ur,si="A class representing a judge for evaluating answers using either the chosen backend.",hl,Or,ni=`Methods:
evaluate_answer: Evaluates an answer using the OpenAI API or Transformers library.
<strong>lazy_load_client: Lazy loads the OpenAI client or Transformers pipeline.
</strong>call_api: Calls the API to get the judge’s response.
<strong>call_transformers: Calls the Transformers pipeline to get the judge’s response.
</strong>call_vllm: Calls the VLLM pipeline to get the judge’s response.`,vl,x,ir,fl,Gr,ai="Transform a dictionary of lists into a list of dictionaries.",_l,qr,li=`Each dictionary in the output list will contain one element from each list in the input dictionary,
with the same keys as the input dictionary.`,$l,Hr,ii="Example:",bl,Kr,oi=`<blockquote><blockquote><p>dict_of_lists_to_list_of_dicts({‘k’: [1, 2, 3], ‘k2’: [‘a’, ‘b’, ‘c’]})
[{‘k’: 1, ‘k2’: ‘a’}, {‘k’: 2, ‘k2’: ‘b’}, {‘k’: 3, ‘k2’: ‘c’}]</p></blockquote></blockquote>`,xl,ye,or,yl,Xr,mi="Evaluates an answer using either Transformers or OpenAI API.",hn,mr,vn,rs,fn;return Le=new _i({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),we=new $({props:{title:"Metrics",local:"metrics",headingTag:"h1"}}),Me=new $({props:{title:"Metrics",local:"metrics",headingTag:"h2"}}),ke=new $({props:{title:"Metric",local:"lighteval.metrics.Metric",headingTag:"h3"}}),Te=new f({props:{name:"class lighteval.metrics.Metric",anchor:"lighteval.metrics.Metric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": typing.Union[lighteval.metrics.metrics_corpus.CorpusLevelComputation, typing.Callable]"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L33"}}),Ee=new $({props:{title:"CorpusLevelMetric",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetric",headingTag:"h3"}}),Pe=new f({props:{name:"class lighteval.metrics.utils.metric_utils.CorpusLevelMetric",anchor:"lighteval.metrics.utils.metric_utils.CorpusLevelMetric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": typing.Union[lighteval.metrics.metrics_corpus.CorpusLevelComputation, typing.Callable]"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L114"}}),Ne=new $({props:{title:"SampleLevelMetric",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetric",headingTag:"h3"}}),Re=new f({props:{name:"class lighteval.metrics.utils.metric_utils.SampleLevelMetric",anchor:"lighteval.metrics.utils.metric_utils.SampleLevelMetric",parameters:[{name:"metric_name",val:": str"},{name:"higher_is_better",val:": bool"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": typing.Union[lighteval.metrics.metrics_corpus.CorpusLevelComputation, typing.Callable]"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L121"}}),je=new $({props:{title:"MetricGrouping",local:"lighteval.metrics.utils.metric_utils.MetricGrouping",headingTag:"h3"}}),Ie=new f({props:{name:"class lighteval.metrics.utils.metric_utils.MetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.MetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": dict"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L103"}}),Se=new $({props:{title:"CorpusLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",headingTag:"h3"}}),Ae=new f({props:{name:"class lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": dict"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L128"}}),Ve=new $({props:{title:"SampleLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",headingTag:"h3"}}),ze=new f({props:{name:"class lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",anchor:"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",parameters:[{name:"metric_name",val:": list"},{name:"higher_is_better",val:": dict"},{name:"category",val:": SamplingMethod"},{name:"sample_level_fn",val:": lighteval.metrics.metrics_sample.SampleLevelComputation | lighteval.metrics.sample_preparator.Preparator"},{name:"corpus_level_fn",val:": dict"},{name:"batched_compute",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/metric_utils.py#L135"}}),Be=new $({props:{title:"Corpus Metrics",local:"corpus-metrics",headingTag:"h2"}}),Je=new $({props:{title:"CorpusLevelF1Score",local:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score",headingTag:"h3"}}),Fe=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelF1Score",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score",parameters:[{name:"average",val:": str"},{name:"num_classes",val:": int = 2"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L81"}}),Ue=new f({props:{name:"compute_corpus",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score.compute_corpus",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L96"}}),Oe=new $({props:{title:"CorpusLevelPerplexityMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",headingTag:"h3"}}),Ge=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",parameters:[{name:"metric_type",val:": str"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L164"}}),qe=new f({props:{name:"compute_corpus",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric.compute_corpus",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L182"}}),He=new $({props:{title:"CorpusLevelTranslationMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",headingTag:"h3"}}),Ke=new f({props:{name:"class lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",parameters:[{name:"metric_type",val:": str"},{name:"lang",val:": typing.Literal['zh', 'ja', 'ko', ''] = ''"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L116"}}),Xe=new f({props:{name:"compute_corpus",anchor:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric.compute_corpus",parameters:[{name:"items",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L142"}}),Ze=new $({props:{title:"MatthewsCorrCoef",local:"lighteval.metrics.metrics_corpus.MatthewsCorrCoef",headingTag:"h3"}}),Qe=new f({props:{name:"class lighteval.metrics.metrics_corpus.MatthewsCorrCoef",anchor:"lighteval.metrics.metrics_corpus.MatthewsCorrCoef",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L66"}}),We=new f({props:{name:"compute_corpus",anchor:"lighteval.metrics.metrics_corpus.MatthewsCorrCoef.compute_corpus",parameters:[{name:"items",val:": list"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_corpus.MatthewsCorrCoef.compute_corpus.items",description:"<strong>items</strong> (list[dict]) &#x2014; List of GenerativeCorpusMetricInput",name:"items"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_corpus.py#L67",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Score</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),Ye=new $({props:{title:"Sample Metrics",local:"sample-metrics",headingTag:"h2"}}),et=new $({props:{title:"ExactMatches",local:"lighteval.metrics.metrics_sample.ExactMatches",headingTag:"h3"}}),tt=new f({props:{name:"class lighteval.metrics.metrics_sample.ExactMatches",anchor:"lighteval.metrics.metrics_sample.ExactMatches",parameters:[{name:"aggregation_function",val:": typing.Callable[[list[float]], float] = <built-in function max>"},{name:"normalize_gold",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"strip_strings",val:": bool = False"},{name:"type_exact_match",val:": str = 'full'"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L81"}}),rt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L118",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),st=new f({props:{name:"compute_one_item",anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item",parameters:[{name:"gold",val:": str"},{name:"pred",val:": str"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item.gold",description:"<strong>gold</strong> (str) &#x2014; One of the possible references",name:"gold"},{anchor:"lighteval.metrics.metrics_sample.ExactMatches.compute_one_item.pred",description:"<strong>pred</strong> (str) &#x2014; One of the possible predictions",name:"pred"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L137",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The exact match score. Will be 1 for a match, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),nt=new $({props:{title:"F1_score",local:"lighteval.metrics.metrics_sample.F1_score",headingTag:"h3"}}),at=new f({props:{name:"class lighteval.metrics.metrics_sample.F1_score",anchor:"lighteval.metrics.metrics_sample.F1_score",parameters:[{name:"aggregation_function",val:": typing.Callable[[list[float]], float] = <built-in function max>"},{name:"normalize_gold",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable[[str], str]] = None"},{name:"strip_strings",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L170"}}),lt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.F1_score.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.F1_score.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.F1_score.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.F1_score.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L197",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),it=new f({props:{name:"compute_one_item",anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item",parameters:[{name:"gold",val:": str"},{name:"pred",val:": str"}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item.gold",description:"<strong>gold</strong> (str) &#x2014; One of the possible references",name:"gold"},{anchor:"lighteval.metrics.metrics_sample.F1_score.compute_one_item.pred",description:"<strong>pred</strong> (str) &#x2014; One of the possible predictions",name:"pred"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L217",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The f1 score over the bag of words, computed using nltk.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),ot=new $({props:{title:"LoglikelihoodAcc",local:"lighteval.metrics.metrics_sample.LoglikelihoodAcc",headingTag:"h3"}}),mt=new f({props:{name:"class lighteval.metrics.metrics_sample.LoglikelihoodAcc",anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc",parameters:[{name:"logprob_normalization",val:": lighteval.metrics.normalizations.LogProbCharNorm | lighteval.metrics.normalizations.LogProbTokenNorm | lighteval.metrics.normalizations.LogProbPMINorm | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L243"}}),ct=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing choices and gold indices.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing logprobs.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.LoglikelihoodAcc.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L254",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The eval score: 1 if the best log-prob choice is in gold, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>int</p>
`}}),pt=new $({props:{title:"NormalizedMultiChoiceProbability",local:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",headingTag:"h3"}}),gt=new f({props:{name:"class lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",parameters:[{name:"log_prob_normalization",val:": lighteval.metrics.normalizations.LogProbCharNorm | lighteval.metrics.normalizations.LogProbTokenNorm | lighteval.metrics.normalizations.LogProbPMINorm | None = None"},{name:"aggregation_function",val:": typing.Callable[[numpy.ndarray], float] = <function max at 0x7ff445541d70>"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L297"}}),dt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing choices and gold indices.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing logprobs.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L313",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The probability of the best log-prob choice being a gold choice.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),ut=new $({props:{title:"Probability",local:"lighteval.metrics.metrics_sample.Probability",headingTag:"h3"}}),ht=new f({props:{name:"class lighteval.metrics.metrics_sample.Probability",anchor:"lighteval.metrics.metrics_sample.Probability",parameters:[{name:"normalization",val:": lighteval.metrics.normalizations.LogProbTokenNorm | None = None"},{name:"aggregation_function",val:": typing.Callable[[numpy.ndarray], float] = <function max at 0x7ff445541d70>"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L357"}}),vt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Probability.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Probability.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing choices and gold indices.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing logprobs.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.Probability.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L373",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The probability of the best log-prob choice being a gold choice.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),ft=new $({props:{title:"Recall",local:"lighteval.metrics.metrics_sample.Recall",headingTag:"h3"}}),_t=new f({props:{name:"class lighteval.metrics.metrics_sample.Recall",anchor:"lighteval.metrics.metrics_sample.Recall",parameters:[{name:"k",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L408"}}),$t=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Recall.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Recall.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing choices and gold indices.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.Recall.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing logprobs.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.Recall.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L418",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Score: 1 if one of the top level predicted choices was correct, 0 otherwise.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>int</p>
`}}),bt=new $({props:{title:"MRR",local:"lighteval.metrics.metrics_sample.MRR",headingTag:"h3"}}),xt=new f({props:{name:"class lighteval.metrics.metrics_sample.MRR",anchor:"lighteval.metrics.metrics_sample.MRR",parameters:[{name:"length_normalization",val:": bool = False"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L438"}}),yt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MRR.compute",parameters:[{name:"model_response",val:": ModelResponse"},{name:"doc",val:": Doc"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.MRR.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing logprobs.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.MRR.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing choices and gold indices.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.MRR.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L447",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>MRR score.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),Ct=new $({props:{title:"ROUGE",local:"lighteval.metrics.metrics_sample.ROUGE",headingTag:"h3"}}),Lt=new f({props:{name:"class lighteval.metrics.metrics_sample.ROUGE",anchor:"lighteval.metrics.metrics_sample.ROUGE",parameters:[{name:"methods",val:": str | list[str]"},{name:"multiple_golds",val:": bool = False"},{name:"bootstrap",val:": bool = False"},{name:"normalize_gold",val:": typing.Optional[typing.Callable] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable] = None"},{name:"aggregation_function",val:": typing.Optional[typing.Callable] = None"},{name:"tokenizer",val:": object = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L486"}}),wt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.ROUGE.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.ROUGE.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.ROUGE.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.ROUGE.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L533",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Aggregated score over the current sample’s items.
If several rouge functions have been selected, returns a dict which maps name and scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float or dict</p>
`}}),Mt=new $({props:{title:"BertScore",local:"lighteval.metrics.metrics_sample.BertScore",headingTag:"h3"}}),kt=new f({props:{name:"class lighteval.metrics.metrics_sample.BertScore",anchor:"lighteval.metrics.metrics_sample.BertScore",parameters:[{name:"normalize_gold",val:": typing.Optional[typing.Callable] = None"},{name:"normalize_pred",val:": typing.Optional[typing.Callable] = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L598"}}),Dt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BertScore.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BertScore.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.BertScore.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.BertScore.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L628",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Scores over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict</p>
`}}),Tt=new $({props:{title:"Extractiveness",local:"lighteval.metrics.metrics_sample.Extractiveness",headingTag:"h3"}}),Et=new f({props:{name:"class lighteval.metrics.metrics_sample.Extractiveness",anchor:"lighteval.metrics.metrics_sample.Extractiveness",parameters:[{name:"normalize_input",val:": <built-in function callable> = <function remove_braces at 0x7ff35fd47880>"},{name:"normalize_pred",val:": <built-in function callable> = <function remove_braces_and_strip at 0x7ff35fd47910>"},{name:"input_column",val:": str = 'text'"},{name:"language",val:": typing.Literal['en', 'de', 'fr', 'it'] = 'en'"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L661"}}),Pt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing input text.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.Extractiveness.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L685",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The extractiveness scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict[str, float]</p>
`}}),Nt=new $({props:{title:"Faithfulness",local:"lighteval.metrics.metrics_sample.Faithfulness",headingTag:"h3"}}),Rt=new f({props:{name:"class lighteval.metrics.metrics_sample.Faithfulness",anchor:"lighteval.metrics.metrics_sample.Faithfulness",parameters:[{name:"normalize_input",val:": typing.Callable = <function remove_braces at 0x7ff35fd47880>"},{name:"normalize_pred",val:": typing.Callable = <function remove_braces_and_strip at 0x7ff35fd47910>"},{name:"input_column",val:": str = 'text'"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L717"}}),jt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing input text.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.Faithfulness.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L738",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The faithfulness scores.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict[str, float]</p>
`}}),It=new $({props:{title:"BLEURT",local:"lighteval.metrics.metrics_sample.BLEURT",headingTag:"h3"}}),St=new f({props:{name:"class lighteval.metrics.metrics_sample.BLEURT",anchor:"lighteval.metrics.metrics_sample.BLEURT",parameters:[],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L765"}}),At=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BLEURT.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BLEURT.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.BLEURT.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.BLEURT.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L786",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),Vt=new $({props:{title:"BLEU",local:"lighteval.metrics.metrics_sample.BLEU",headingTag:"h3"}}),zt=new f({props:{name:"class lighteval.metrics.metrics_sample.BLEU",anchor:"lighteval.metrics.metrics_sample.BLEU",parameters:[{name:"n_gram",val:": int"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L805"}}),Bt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.BLEU.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.BLEU.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.BLEU.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.BLEU.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L815",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),Jt=new $({props:{title:"StringDistance",local:"lighteval.metrics.metrics_sample.StringDistance",headingTag:"h3"}}),Ft=new f({props:{name:"class lighteval.metrics.metrics_sample.StringDistance",anchor:"lighteval.metrics.metrics_sample.StringDistance",parameters:[{name:"metric_types",val:": list[str] | str"},{name:"strip_prediction",val:": bool = True"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L847"}}),Ut=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.StringDistance.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.StringDistance.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.StringDistance.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.StringDistance.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L869",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The different scores computed</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>dict</p>
`}}),Ot=new f({props:{name:"edit_similarity",anchor:"lighteval.metrics.metrics_sample.StringDistance.edit_similarity",parameters:[{name:"s1",val:""},{name:"s2",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L927",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Edit similarity score between 0 and 1</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),Gt=new f({props:{name:"longest_common_prefix_length",anchor:"lighteval.metrics.metrics_sample.StringDistance.longest_common_prefix_length",parameters:[{name:"s1",val:": ndarray"},{name:"s2",val:": ndarray"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L920"}}),qt=new $({props:{title:"JudgeLLM",local:"lighteval.metrics.metrics_sample.JudgeLLM",headingTag:"h3"}}),Kt=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLM",anchor:"lighteval.metrics.metrics_sample.JudgeLLM",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": pydantic.main.BaseModel | None = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"},{name:"backend_options",val:": dict | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L942"}}),Xt=new $({props:{title:"JudgeLLMMTBench",local:"lighteval.metrics.metrics_sample.JudgeLLMMTBench",headingTag:"h3"}}),Zt=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLMMTBench",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMTBench",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": pydantic.main.BaseModel | None = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"},{name:"backend_options",val:": dict | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1047"}}),Qt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMTBench.compute",parameters:[{name:"model_response",val:": list"},{name:"doc",val:": list"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1048"}}),Wt=new $({props:{title:"JudgeLLMMixEval",local:"lighteval.metrics.metrics_sample.JudgeLLMMixEval",headingTag:"h3"}}),Yt=new f({props:{name:"class lighteval.metrics.metrics_sample.JudgeLLMMixEval",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMixEval",parameters:[{name:"judge_model_name",val:": str"},{name:"template",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'vllm', 'tgi', 'inference-providers']"},{name:"short_judge_name",val:": str | None = None"},{name:"response_format",val:": pydantic.main.BaseModel | None = None"},{name:"url",val:": str | None = None"},{name:"hf_provider",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"},{name:"backend_options",val:": dict | None = None"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1082"}}),er=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.JudgeLLMMixEval.compute",parameters:[{name:"responses",val:": list"},{name:"docs",val:": list"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1083"}}),tr=new $({props:{title:"MajAtK",local:"lighteval.metrics.metrics_sample.MajAtK",headingTag:"h3"}}),rr=new f({props:{name:"class lighteval.metrics.metrics_sample.MajAtK",anchor:"lighteval.metrics.metrics_sample.MajAtK",parameters:[{name:"k",val:": int | None = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1220"}}),sr=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MajAtK.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.MajAtK.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.MajAtK.compute.model_response",description:"<strong>model_response</strong> (ModelResponse) &#x2014; The model&#x2019;s response containing predictions.",name:"model_response"},{anchor:"lighteval.metrics.metrics_sample.MajAtK.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/metrics_sample.py#L1233",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Aggregated score over the current sample’s items.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>float</p>
`}}),nr=new $({props:{title:"LLM-as-a-Judge",local:"llm-as-a-judge",headingTag:"h2"}}),ar=new $({props:{title:"JudgeLM",local:"lighteval.metrics.utils.llm_as_judge.JudgeLM",headingTag:"h3"}}),lr=new f({props:{name:"class lighteval.metrics.utils.llm_as_judge.JudgeLM",anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM",parameters:[{name:"model",val:": str"},{name:"templates",val:": typing.Callable"},{name:"process_judge_response",val:": typing.Callable"},{name:"judge_backend",val:": typing.Literal['litellm', 'openai', 'transformers', 'tgi', 'vllm', 'inference-providers']"},{name:"url",val:": str | None = None"},{name:"api_key",val:": str | None = None"},{name:"max_tokens",val:": int | None = None"},{name:"response_format",val:": BaseModel = None"},{name:"hf_provider",val:": typing.Optional[typing.Literal['black-forest-labs', 'cerebras', 'cohere', 'fal-ai', 'fireworks-ai', 'inference-providers', 'hyperbolic', 'nebius', 'novita', 'openai', 'replicate', 'sambanova', 'together']] = None"},{name:"backend_options",val:": dict | None = None"}],parametersDescription:[{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.model",description:"<strong>model</strong> (str) &#x2014; The name of the model.",name:"model"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.templates",description:"<strong>templates</strong> (Callable) &#x2014; A function taking into account the question, options, answer, and gold and returning the judge prompt.",name:"templates"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.process_judge_response",description:"<strong>process_judge_response</strong> (Callable) &#x2014; A function for processing the judge&#x2019;s response.",name:"process_judge_response"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.judge_backend",description:"<strong>judge_backend</strong> (Literal[&#x201C;litellm&#x201D;, &#x201C;openai&#x201D;, &#x201C;transformers&#x201D;, &#x201C;tgi&#x201D;, &#x201C;vllm&#x201D;, &#x201C;inference-providers&#x201D;]) &#x2014; The backend for the judge.",name:"judge_backend"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.url",description:"<strong>url</strong> (str | None) &#x2014; The URL for the OpenAI API.",name:"url"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.api_key",description:"<strong>api_key</strong> (str | None) &#x2014; The API key for the OpenAI API (either OpenAI or HF key).",name:"api_key"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.max_tokens",description:"<strong>max_tokens</strong> (int) &#x2014; The maximum number of tokens to generate. Defaults to 512.",name:"max_tokens"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.response_format",description:"<strong>response_format</strong> (BaseModel | None) &#x2014; The format of the response from the API, used for the OpenAI and TGI backend.",name:"response_format"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.hf_provider",description:`<strong>hf_provider</strong> (Literal[&#x201C;black-forest-labs&#x201D;, &#x201C;cerebras&#x201D;, &#x201C;cohere&#x201D;, &#x201C;fal-ai&#x201D;, &#x201C;fireworks-ai&#x201D;, &#x2014;
&#x201C;inference-providers&#x201D;, &#x201C;hyperbolic&#x201D;, &#x201C;nebius&#x201D;, &#x201C;novita&#x201D;, &#x201C;openai&#x201D;, &#x201C;replicate&#x201D;, &#x201C;sambanova&#x201D;, &#x201C;together&#x201D;] | None):
The HuggingFace provider when using the inference-providers backend.`,name:"hf_provider"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.backend_options",description:"<strong>backend_options</strong> (dict | None) &#x2014; Options for the backend. Currently only supported for litellm.",name:"backend_options"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/llm_as_judge.py#L67"}}),ir=new f({props:{name:"dict_of_lists_to_list_of_dicts",anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.dict_of_lists_to_list_of_dicts",parameters:[{name:"dict_of_lists",val:""}],parametersDescription:[{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.dict_of_lists_to_list_of_dicts.dict_of_lists",description:`<strong>dict_of_lists</strong> &#x2014; A dictionary where each value is a list.
All lists are expected to have the same length.`,name:"dict_of_lists"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/llm_as_judge.py#L204",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A list of dictionaries.</p>
`}}),or=new f({props:{name:"evaluate_answer",anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.evaluate_answer",parameters:[{name:"question",val:": str"},{name:"answer",val:": str"},{name:"options",val:": list[str] | None = None"},{name:"gold",val:": str | None = None"}],parametersDescription:[{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.evaluate_answer.question",description:"<strong>question</strong> (str) &#x2014; The prompt asked to the evaluated model.",name:"question"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.evaluate_answer.answer",description:"<strong>answer</strong> (str) &#x2014; Answer given by the evaluated model.",name:"answer"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.evaluate_answer.options",description:"<strong>options</strong> (list[str] | None) &#x2014; Optional list of answer options.",name:"options"},{anchor:"lighteval.metrics.utils.llm_as_judge.JudgeLM.evaluate_answer.gold",description:"<strong>gold</strong> (str | None) &#x2014; Optional reference answer.",name:"gold"}],source:"https://github.com/huggingface/lighteval/blob/vr_1006/src/lighteval/metrics/utils/llm_as_judge.py#L272",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tuple containing the score, prompts, and judgment.</p>
`}}),mr=new $i({props:{source:"https://github.com/huggingface/lighteval/blob/main/docs/source/package_reference/metrics.mdx"}}),{c(){E=l("meta"),ss=n(),ts=l("p"),ns=n(),m(Le.$$.fragment),as=n(),m(we.$$.fragment),ls=n(),m(Me.$$.fragment),is=n(),m(ke.$$.fragment),os=n(),De=l("div"),m(Te.$$.fragment),ms=n(),m(Ee.$$.fragment),cs=n(),P=l("div"),m(Pe.$$.fragment),ca=n(),cr=l("p"),cr.textContent=Ll,ps=n(),m(Ne.$$.fragment),gs=n(),N=l("div"),m(Re.$$.fragment),pa=n(),pr=l("p"),pr.textContent=wl,ds=n(),m(je.$$.fragment),us=n(),R=l("div"),m(Ie.$$.fragment),ga=n(),gr=l("p"),gr.textContent=Ml,hs=n(),m(Se.$$.fragment),vs=n(),j=l("div"),m(Ae.$$.fragment),da=n(),dr=l("p"),dr.textContent=kl,fs=n(),m(Ve.$$.fragment),_s=n(),I=l("div"),m(ze.$$.fragment),ua=n(),ur=l("p"),ur.textContent=Dl,$s=n(),m(Be.$$.fragment),bs=n(),m(Je.$$.fragment),xs=n(),S=l("div"),m(Fe.$$.fragment),ha=n(),ee=l("div"),m(Ue.$$.fragment),va=n(),hr=l("p"),hr.textContent=Tl,ys=n(),m(Oe.$$.fragment),Cs=n(),A=l("div"),m(Ge.$$.fragment),fa=n(),te=l("div"),m(qe.$$.fragment),_a=n(),vr=l("p"),vr.textContent=El,Ls=n(),m(He.$$.fragment),ws=n(),V=l("div"),m(Ke.$$.fragment),$a=n(),re=l("div"),m(Xe.$$.fragment),ba=n(),fr=l("p"),fr.textContent=Pl,Ms=n(),m(Ze.$$.fragment),ks=n(),z=l("div"),m(Qe.$$.fragment),xa=n(),se=l("div"),m(We.$$.fragment),ya=n(),_r=l("p"),_r.innerHTML=Nl,Ds=n(),m(Ye.$$.fragment),Ts=n(),m(et.$$.fragment),Es=n(),C=l("div"),m(tt.$$.fragment),Ca=n(),ne=l("div"),m(rt.$$.fragment),La=n(),$r=l("p"),$r.textContent=Rl,wa=n(),ae=l("div"),m(st.$$.fragment),Ma=n(),br=l("p"),br.textContent=jl,Ps=n(),m(nt.$$.fragment),Ns=n(),L=l("div"),m(at.$$.fragment),ka=n(),le=l("div"),m(lt.$$.fragment),Da=n(),xr=l("p"),xr.textContent=Il,Ta=n(),ie=l("div"),m(it.$$.fragment),Ea=n(),yr=l("p"),yr.textContent=Sl,Rs=n(),m(ot.$$.fragment),js=n(),B=l("div"),m(mt.$$.fragment),Pa=n(),oe=l("div"),m(ct.$$.fragment),Na=n(),Cr=l("p"),Cr.innerHTML=Al,Is=n(),m(pt.$$.fragment),Ss=n(),J=l("div"),m(gt.$$.fragment),Ra=n(),me=l("div"),m(dt.$$.fragment),ja=n(),Lr=l("p"),Lr.textContent=Vl,As=n(),m(ut.$$.fragment),Vs=n(),F=l("div"),m(ht.$$.fragment),Ia=n(),ce=l("div"),m(vt.$$.fragment),Sa=n(),wr=l("p"),wr.textContent=zl,zs=n(),m(ft.$$.fragment),Bs=n(),U=l("div"),m(_t.$$.fragment),Aa=n(),pe=l("div"),m($t.$$.fragment),Va=n(),Mr=l("p"),Mr.innerHTML=Bl,Js=n(),m(bt.$$.fragment),Fs=n(),O=l("div"),m(xt.$$.fragment),za=n(),ge=l("div"),m(yt.$$.fragment),Ba=n(),kr=l("p"),kr.textContent=Jl,Us=n(),m(Ct.$$.fragment),Os=n(),G=l("div"),m(Lt.$$.fragment),Ja=n(),de=l("div"),m(wt.$$.fragment),Fa=n(),Dr=l("p"),Dr.textContent=Fl,Gs=n(),m(Mt.$$.fragment),qs=n(),q=l("div"),m(kt.$$.fragment),Ua=n(),ue=l("div"),m(Dt.$$.fragment),Oa=n(),Tr=l("p"),Tr.textContent=Ul,Hs=n(),m(Tt.$$.fragment),Ks=n(),H=l("div"),m(Et.$$.fragment),Ga=n(),w=l("div"),m(Pt.$$.fragment),qa=n(),Er=l("p"),Er.textContent=Ol,Ha=n(),Pr=l("p"),Pr.textContent=Gl,Xs=n(),m(Nt.$$.fragment),Zs=n(),K=l("div"),m(Rt.$$.fragment),Ka=n(),M=l("div"),m(jt.$$.fragment),Xa=n(),Nr=l("p"),Nr.textContent=ql,Za=n(),Rr=l("p"),Rr.textContent=Hl,Qs=n(),m(It.$$.fragment),Ws=n(),X=l("div"),m(St.$$.fragment),Qa=n(),he=l("div"),m(At.$$.fragment),Wa=n(),jr=l("p"),jr.textContent=Kl,Ys=n(),m(Vt.$$.fragment),en=n(),Z=l("div"),m(zt.$$.fragment),Ya=n(),ve=l("div"),m(Bt.$$.fragment),el=n(),Ir=l("p"),Ir.textContent=Xl,tn=n(),m(Jt.$$.fragment),rn=n(),y=l("div"),m(Ft.$$.fragment),tl=n(),fe=l("div"),m(Ut.$$.fragment),rl=n(),Sr=l("p"),Sr.textContent=Zl,sl=n(),k=l("div"),m(Ot.$$.fragment),nl=n(),Ar=l("p"),Ar.textContent=Ql,al=n(),Vr=l("p"),Vr.textContent=Wl,ll=n(),_e=l("div"),m(Gt.$$.fragment),il=n(),zr=l("p"),zr.textContent=Yl,sn=n(),m(qt.$$.fragment),nn=n(),Ht=l("div"),m(Kt.$$.fragment),an=n(),m(Xt.$$.fragment),ln=n(),Q=l("div"),m(Zt.$$.fragment),ol=n(),$e=l("div"),m(Qt.$$.fragment),ml=n(),Br=l("p"),Br.textContent=ei,on=n(),m(Wt.$$.fragment),mn=n(),W=l("div"),m(Yt.$$.fragment),cl=n(),be=l("div"),m(er.$$.fragment),pl=n(),Jr=l("p"),Jr.textContent=ti,cn=n(),m(tr.$$.fragment),pn=n(),Y=l("div"),m(rr.$$.fragment),gl=n(),xe=l("div"),m(sr.$$.fragment),dl=n(),Fr=l("p"),Fr.textContent=ri,gn=n(),m(nr.$$.fragment),dn=n(),m(ar.$$.fragment),un=n(),b=l("div"),m(lr.$$.fragment),ul=n(),Ur=l("p"),Ur.textContent=si,hl=n(),Or=l("p"),Or.innerHTML=ni,vl=n(),x=l("div"),m(ir.$$.fragment),fl=n(),Gr=l("p"),Gr.textContent=ai,_l=n(),qr=l("p"),qr.textContent=li,$l=n(),Hr=l("p"),Hr.textContent=ii,bl=n(),Kr=l("blockquote"),Kr.innerHTML=oi,xl=n(),ye=l("div"),m(or.$$.fragment),yl=n(),Xr=l("p"),Xr.textContent=mi,hn=n(),m(mr.$$.fragment),vn=n(),rs=l("p"),this.h()},l(e){const r=fi("svelte-u9bgzb",document.head);E=i(r,"META",{name:!0,content:!0}),r.forEach(t),ss=a(e),ts=i(e,"P",{}),h(ts).forEach(t),ns=a(e),c(Le.$$.fragment,e),as=a(e),c(we.$$.fragment,e),ls=a(e),c(Me.$$.fragment,e),is=a(e),c(ke.$$.fragment,e),os=a(e),De=i(e,"DIV",{class:!0});var ci=h(De);c(Te.$$.fragment,ci),ci.forEach(t),ms=a(e),c(Ee.$$.fragment,e),cs=a(e),P=i(e,"DIV",{class:!0});var _n=h(P);c(Pe.$$.fragment,_n),ca=a(_n),cr=i(_n,"P",{"data-svelte-h":!0}),_(cr)!=="svelte-zgtslk"&&(cr.textContent=Ll),_n.forEach(t),ps=a(e),c(Ne.$$.fragment,e),gs=a(e),N=i(e,"DIV",{class:!0});var $n=h(N);c(Re.$$.fragment,$n),pa=a($n),pr=i($n,"P",{"data-svelte-h":!0}),_(pr)!=="svelte-f7ehzx"&&(pr.textContent=wl),$n.forEach(t),ds=a(e),c(je.$$.fragment,e),us=a(e),R=i(e,"DIV",{class:!0});var bn=h(R);c(Ie.$$.fragment,bn),ga=a(bn),gr=i(bn,"P",{"data-svelte-h":!0}),_(gr)!=="svelte-189xko4"&&(gr.textContent=Ml),bn.forEach(t),hs=a(e),c(Se.$$.fragment,e),vs=a(e),j=i(e,"DIV",{class:!0});var xn=h(j);c(Ae.$$.fragment,xn),da=a(xn),dr=i(xn,"P",{"data-svelte-h":!0}),_(dr)!=="svelte-648fl7"&&(dr.textContent=kl),xn.forEach(t),fs=a(e),c(Ve.$$.fragment,e),_s=a(e),I=i(e,"DIV",{class:!0});var yn=h(I);c(ze.$$.fragment,yn),ua=a(yn),ur=i(yn,"P",{"data-svelte-h":!0}),_(ur)!=="svelte-10boi74"&&(ur.textContent=Dl),yn.forEach(t),$s=a(e),c(Be.$$.fragment,e),bs=a(e),c(Je.$$.fragment,e),xs=a(e),S=i(e,"DIV",{class:!0});var Cn=h(S);c(Fe.$$.fragment,Cn),ha=a(Cn),ee=i(Cn,"DIV",{class:!0});var Ln=h(ee);c(Ue.$$.fragment,Ln),va=a(Ln),hr=i(Ln,"P",{"data-svelte-h":!0}),_(hr)!=="svelte-6am5wr"&&(hr.textContent=Tl),Ln.forEach(t),Cn.forEach(t),ys=a(e),c(Oe.$$.fragment,e),Cs=a(e),A=i(e,"DIV",{class:!0});var wn=h(A);c(Ge.$$.fragment,wn),fa=a(wn),te=i(wn,"DIV",{class:!0});var Mn=h(te);c(qe.$$.fragment,Mn),_a=a(Mn),vr=i(Mn,"P",{"data-svelte-h":!0}),_(vr)!=="svelte-1eqcqc"&&(vr.textContent=El),Mn.forEach(t),wn.forEach(t),Ls=a(e),c(He.$$.fragment,e),ws=a(e),V=i(e,"DIV",{class:!0});var kn=h(V);c(Ke.$$.fragment,kn),$a=a(kn),re=i(kn,"DIV",{class:!0});var Dn=h(re);c(Xe.$$.fragment,Dn),ba=a(Dn),fr=i(Dn,"P",{"data-svelte-h":!0}),_(fr)!=="svelte-ngk658"&&(fr.textContent=Pl),Dn.forEach(t),kn.forEach(t),Ms=a(e),c(Ze.$$.fragment,e),ks=a(e),z=i(e,"DIV",{class:!0});var Tn=h(z);c(Qe.$$.fragment,Tn),xa=a(Tn),se=i(Tn,"DIV",{class:!0});var En=h(se);c(We.$$.fragment,En),ya=a(En),_r=i(En,"P",{"data-svelte-h":!0}),_(_r)!=="svelte-osccbb"&&(_r.innerHTML=Nl),En.forEach(t),Tn.forEach(t),Ds=a(e),c(Ye.$$.fragment,e),Ts=a(e),c(et.$$.fragment,e),Es=a(e),C=i(e,"DIV",{class:!0});var Zr=h(C);c(tt.$$.fragment,Zr),Ca=a(Zr),ne=i(Zr,"DIV",{class:!0});var Pn=h(ne);c(rt.$$.fragment,Pn),La=a(Pn),$r=i(Pn,"P",{"data-svelte-h":!0}),_($r)!=="svelte-m2t8u2"&&($r.textContent=Rl),Pn.forEach(t),wa=a(Zr),ae=i(Zr,"DIV",{class:!0});var Nn=h(ae);c(st.$$.fragment,Nn),Ma=a(Nn),br=i(Nn,"P",{"data-svelte-h":!0}),_(br)!=="svelte-29ay4o"&&(br.textContent=jl),Nn.forEach(t),Zr.forEach(t),Ps=a(e),c(nt.$$.fragment,e),Ns=a(e),L=i(e,"DIV",{class:!0});var Qr=h(L);c(at.$$.fragment,Qr),ka=a(Qr),le=i(Qr,"DIV",{class:!0});var Rn=h(le);c(lt.$$.fragment,Rn),Da=a(Rn),xr=i(Rn,"P",{"data-svelte-h":!0}),_(xr)!=="svelte-m2t8u2"&&(xr.textContent=Il),Rn.forEach(t),Ta=a(Qr),ie=i(Qr,"DIV",{class:!0});var jn=h(ie);c(it.$$.fragment,jn),Ea=a(jn),yr=i(jn,"P",{"data-svelte-h":!0}),_(yr)!=="svelte-29ay4o"&&(yr.textContent=Sl),jn.forEach(t),Qr.forEach(t),Rs=a(e),c(ot.$$.fragment,e),js=a(e),B=i(e,"DIV",{class:!0});var In=h(B);c(mt.$$.fragment,In),Pa=a(In),oe=i(In,"DIV",{class:!0});var Sn=h(oe);c(ct.$$.fragment,Sn),Na=a(Sn),Cr=i(Sn,"P",{"data-svelte-h":!0}),_(Cr)!=="svelte-oza3m6"&&(Cr.innerHTML=Al),Sn.forEach(t),In.forEach(t),Is=a(e),c(pt.$$.fragment,e),Ss=a(e),J=i(e,"DIV",{class:!0});var An=h(J);c(gt.$$.fragment,An),Ra=a(An),me=i(An,"DIV",{class:!0});var Vn=h(me);c(dt.$$.fragment,Vn),ja=a(Vn),Lr=i(Vn,"P",{"data-svelte-h":!0}),_(Lr)!=="svelte-cm5dxb"&&(Lr.textContent=Vl),Vn.forEach(t),An.forEach(t),As=a(e),c(ut.$$.fragment,e),Vs=a(e),F=i(e,"DIV",{class:!0});var zn=h(F);c(ht.$$.fragment,zn),Ia=a(zn),ce=i(zn,"DIV",{class:!0});var Bn=h(ce);c(vt.$$.fragment,Bn),Sa=a(Bn),wr=i(Bn,"P",{"data-svelte-h":!0}),_(wr)!=="svelte-cm5dxb"&&(wr.textContent=zl),Bn.forEach(t),zn.forEach(t),zs=a(e),c(ft.$$.fragment,e),Bs=a(e),U=i(e,"DIV",{class:!0});var Jn=h(U);c(_t.$$.fragment,Jn),Aa=a(Jn),pe=i(Jn,"DIV",{class:!0});var Fn=h(pe);c($t.$$.fragment,Fn),Va=a(Fn),Mr=i(Fn,"P",{"data-svelte-h":!0}),_(Mr)!=="svelte-1vzdvz9"&&(Mr.innerHTML=Bl),Fn.forEach(t),Jn.forEach(t),Js=a(e),c(bt.$$.fragment,e),Fs=a(e),O=i(e,"DIV",{class:!0});var Un=h(O);c(xt.$$.fragment,Un),za=a(Un),ge=i(Un,"DIV",{class:!0});var On=h(ge);c(yt.$$.fragment,On),Ba=a(On),kr=i(On,"P",{"data-svelte-h":!0}),_(kr)!=="svelte-oplxpx"&&(kr.textContent=Jl),On.forEach(t),Un.forEach(t),Us=a(e),c(Ct.$$.fragment,e),Os=a(e),G=i(e,"DIV",{class:!0});var Gn=h(G);c(Lt.$$.fragment,Gn),Ja=a(Gn),de=i(Gn,"DIV",{class:!0});var qn=h(de);c(wt.$$.fragment,qn),Fa=a(qn),Dr=i(qn,"P",{"data-svelte-h":!0}),_(Dr)!=="svelte-1mhw2ts"&&(Dr.textContent=Fl),qn.forEach(t),Gn.forEach(t),Gs=a(e),c(Mt.$$.fragment,e),qs=a(e),q=i(e,"DIV",{class:!0});var Hn=h(q);c(kt.$$.fragment,Hn),Ua=a(Hn),ue=i(Hn,"DIV",{class:!0});var Kn=h(ue);c(Dt.$$.fragment,Kn),Oa=a(Kn),Tr=i(Kn,"P",{"data-svelte-h":!0}),_(Tr)!=="svelte-g8gp3r"&&(Tr.textContent=Ul),Kn.forEach(t),Hn.forEach(t),Hs=a(e),c(Tt.$$.fragment,e),Ks=a(e),H=i(e,"DIV",{class:!0});var Xn=h(H);c(Et.$$.fragment,Xn),Ga=a(Xn),w=i(Xn,"DIV",{class:!0});var Wr=h(w);c(Pt.$$.fragment,Wr),qa=a(Wr),Er=i(Wr,"P",{"data-svelte-h":!0}),_(Er)!=="svelte-1jqxi5a"&&(Er.textContent=Ol),Ha=a(Wr),Pr=i(Wr,"P",{"data-svelte-h":!0}),_(Pr)!=="svelte-19u8gji"&&(Pr.textContent=Gl),Wr.forEach(t),Xn.forEach(t),Xs=a(e),c(Nt.$$.fragment,e),Zs=a(e),K=i(e,"DIV",{class:!0});var Zn=h(K);c(Rt.$$.fragment,Zn),Ka=a(Zn),M=i(Zn,"DIV",{class:!0});var Yr=h(M);c(jt.$$.fragment,Yr),Xa=a(Yr),Nr=i(Yr,"P",{"data-svelte-h":!0}),_(Nr)!=="svelte-uuxzaw"&&(Nr.textContent=ql),Za=a(Yr),Rr=i(Yr,"P",{"data-svelte-h":!0}),_(Rr)!=="svelte-q9lg1z"&&(Rr.textContent=Hl),Yr.forEach(t),Zn.forEach(t),Qs=a(e),c(It.$$.fragment,e),Ws=a(e),X=i(e,"DIV",{class:!0});var Qn=h(X);c(St.$$.fragment,Qn),Qa=a(Qn),he=i(Qn,"DIV",{class:!0});var Wn=h(he);c(At.$$.fragment,Wn),Wa=a(Wn),jr=i(Wn,"P",{"data-svelte-h":!0}),_(jr)!=="svelte-1e1teq4"&&(jr.textContent=Kl),Wn.forEach(t),Qn.forEach(t),Ys=a(e),c(Vt.$$.fragment,e),en=a(e),Z=i(e,"DIV",{class:!0});var Yn=h(Z);c(zt.$$.fragment,Yn),Ya=a(Yn),ve=i(Yn,"DIV",{class:!0});var ea=h(ve);c(Bt.$$.fragment,ea),el=a(ea),Ir=i(ea,"P",{"data-svelte-h":!0}),_(Ir)!=="svelte-uuy5fu"&&(Ir.textContent=Xl),ea.forEach(t),Yn.forEach(t),tn=a(e),c(Jt.$$.fragment,e),rn=a(e),y=i(e,"DIV",{class:!0});var Ce=h(y);c(Ft.$$.fragment,Ce),tl=a(Ce),fe=i(Ce,"DIV",{class:!0});var ta=h(fe);c(Ut.$$.fragment,ta),rl=a(ta),Sr=i(ta,"P",{"data-svelte-h":!0}),_(Sr)!=="svelte-1javkrk"&&(Sr.textContent=Zl),ta.forEach(t),sl=a(Ce),k=i(Ce,"DIV",{class:!0});var es=h(k);c(Ot.$$.fragment,es),nl=a(es),Ar=i(es,"P",{"data-svelte-h":!0}),_(Ar)!=="svelte-1jnlnuh"&&(Ar.textContent=Ql),al=a(es),Vr=i(es,"P",{"data-svelte-h":!0}),_(Vr)!=="svelte-eunl3r"&&(Vr.textContent=Wl),es.forEach(t),ll=a(Ce),_e=i(Ce,"DIV",{class:!0});var ra=h(_e);c(Gt.$$.fragment,ra),il=a(ra),zr=i(ra,"P",{"data-svelte-h":!0}),_(zr)!=="svelte-vzqvo7"&&(zr.textContent=Yl),ra.forEach(t),Ce.forEach(t),sn=a(e),c(qt.$$.fragment,e),nn=a(e),Ht=i(e,"DIV",{class:!0});var pi=h(Ht);c(Kt.$$.fragment,pi),pi.forEach(t),an=a(e),c(Xt.$$.fragment,e),ln=a(e),Q=i(e,"DIV",{class:!0});var sa=h(Q);c(Zt.$$.fragment,sa),ol=a(sa),$e=i(sa,"DIV",{class:!0});var na=h($e);c(Qt.$$.fragment,na),ml=a(na),Br=i(na,"P",{"data-svelte-h":!0}),_(Br)!=="svelte-4cpcjn"&&(Br.textContent=ei),na.forEach(t),sa.forEach(t),on=a(e),c(Wt.$$.fragment,e),mn=a(e),W=i(e,"DIV",{class:!0});var aa=h(W);c(Yt.$$.fragment,aa),cl=a(aa),be=i(aa,"DIV",{class:!0});var la=h(be);c(er.$$.fragment,la),pl=a(la),Jr=i(la,"P",{"data-svelte-h":!0}),_(Jr)!=="svelte-4cpcjn"&&(Jr.textContent=ti),la.forEach(t),aa.forEach(t),cn=a(e),c(tr.$$.fragment,e),pn=a(e),Y=i(e,"DIV",{class:!0});var ia=h(Y);c(rr.$$.fragment,ia),gl=a(ia),xe=i(ia,"DIV",{class:!0});var oa=h(xe);c(sr.$$.fragment,oa),dl=a(oa),Fr=i(oa,"P",{"data-svelte-h":!0}),_(Fr)!=="svelte-1tnwwau"&&(Fr.textContent=ri),oa.forEach(t),ia.forEach(t),gn=a(e),c(nr.$$.fragment,e),dn=a(e),c(ar.$$.fragment,e),un=a(e),b=i(e,"DIV",{class:!0});var D=h(b);c(lr.$$.fragment,D),ul=a(D),Ur=i(D,"P",{"data-svelte-h":!0}),_(Ur)!=="svelte-a8sws7"&&(Ur.textContent=si),hl=a(D),Or=i(D,"P",{"data-svelte-h":!0}),_(Or)!=="svelte-2785eo"&&(Or.innerHTML=ni),vl=a(D),x=i(D,"DIV",{class:!0});var T=h(x);c(ir.$$.fragment,T),fl=a(T),Gr=i(T,"P",{"data-svelte-h":!0}),_(Gr)!=="svelte-zw3fd9"&&(Gr.textContent=ai),_l=a(T),qr=i(T,"P",{"data-svelte-h":!0}),_(qr)!=="svelte-87qcsz"&&(qr.textContent=li),$l=a(T),Hr=i(T,"P",{"data-svelte-h":!0}),_(Hr)!=="svelte-11lpom8"&&(Hr.textContent=ii),bl=a(T),Kr=i(T,"BLOCKQUOTE",{"data-svelte-h":!0}),_(Kr)!=="svelte-1rs2dmb"&&(Kr.innerHTML=oi),T.forEach(t),xl=a(D),ye=i(D,"DIV",{class:!0});var ma=h(ye);c(or.$$.fragment,ma),yl=a(ma),Xr=i(ma,"P",{"data-svelte-h":!0}),_(Xr)!=="svelte-tj0p2z"&&(Xr.textContent=mi),ma.forEach(t),D.forEach(t),hn=a(e),c(mr.$$.fragment,e),vn=a(e),rs=i(e,"P",{}),h(rs).forEach(t),this.h()},h(){v(E,"name","hf:doc:metadata"),v(E,"content",xi),v(De,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ht,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,r){s(document.head,E),o(e,ss,r),o(e,ts,r),o(e,ns,r),p(Le,e,r),o(e,as,r),p(we,e,r),o(e,ls,r),p(Me,e,r),o(e,is,r),p(ke,e,r),o(e,os,r),o(e,De,r),p(Te,De,null),o(e,ms,r),p(Ee,e,r),o(e,cs,r),o(e,P,r),p(Pe,P,null),s(P,ca),s(P,cr),o(e,ps,r),p(Ne,e,r),o(e,gs,r),o(e,N,r),p(Re,N,null),s(N,pa),s(N,pr),o(e,ds,r),p(je,e,r),o(e,us,r),o(e,R,r),p(Ie,R,null),s(R,ga),s(R,gr),o(e,hs,r),p(Se,e,r),o(e,vs,r),o(e,j,r),p(Ae,j,null),s(j,da),s(j,dr),o(e,fs,r),p(Ve,e,r),o(e,_s,r),o(e,I,r),p(ze,I,null),s(I,ua),s(I,ur),o(e,$s,r),p(Be,e,r),o(e,bs,r),p(Je,e,r),o(e,xs,r),o(e,S,r),p(Fe,S,null),s(S,ha),s(S,ee),p(Ue,ee,null),s(ee,va),s(ee,hr),o(e,ys,r),p(Oe,e,r),o(e,Cs,r),o(e,A,r),p(Ge,A,null),s(A,fa),s(A,te),p(qe,te,null),s(te,_a),s(te,vr),o(e,Ls,r),p(He,e,r),o(e,ws,r),o(e,V,r),p(Ke,V,null),s(V,$a),s(V,re),p(Xe,re,null),s(re,ba),s(re,fr),o(e,Ms,r),p(Ze,e,r),o(e,ks,r),o(e,z,r),p(Qe,z,null),s(z,xa),s(z,se),p(We,se,null),s(se,ya),s(se,_r),o(e,Ds,r),p(Ye,e,r),o(e,Ts,r),p(et,e,r),o(e,Es,r),o(e,C,r),p(tt,C,null),s(C,Ca),s(C,ne),p(rt,ne,null),s(ne,La),s(ne,$r),s(C,wa),s(C,ae),p(st,ae,null),s(ae,Ma),s(ae,br),o(e,Ps,r),p(nt,e,r),o(e,Ns,r),o(e,L,r),p(at,L,null),s(L,ka),s(L,le),p(lt,le,null),s(le,Da),s(le,xr),s(L,Ta),s(L,ie),p(it,ie,null),s(ie,Ea),s(ie,yr),o(e,Rs,r),p(ot,e,r),o(e,js,r),o(e,B,r),p(mt,B,null),s(B,Pa),s(B,oe),p(ct,oe,null),s(oe,Na),s(oe,Cr),o(e,Is,r),p(pt,e,r),o(e,Ss,r),o(e,J,r),p(gt,J,null),s(J,Ra),s(J,me),p(dt,me,null),s(me,ja),s(me,Lr),o(e,As,r),p(ut,e,r),o(e,Vs,r),o(e,F,r),p(ht,F,null),s(F,Ia),s(F,ce),p(vt,ce,null),s(ce,Sa),s(ce,wr),o(e,zs,r),p(ft,e,r),o(e,Bs,r),o(e,U,r),p(_t,U,null),s(U,Aa),s(U,pe),p($t,pe,null),s(pe,Va),s(pe,Mr),o(e,Js,r),p(bt,e,r),o(e,Fs,r),o(e,O,r),p(xt,O,null),s(O,za),s(O,ge),p(yt,ge,null),s(ge,Ba),s(ge,kr),o(e,Us,r),p(Ct,e,r),o(e,Os,r),o(e,G,r),p(Lt,G,null),s(G,Ja),s(G,de),p(wt,de,null),s(de,Fa),s(de,Dr),o(e,Gs,r),p(Mt,e,r),o(e,qs,r),o(e,q,r),p(kt,q,null),s(q,Ua),s(q,ue),p(Dt,ue,null),s(ue,Oa),s(ue,Tr),o(e,Hs,r),p(Tt,e,r),o(e,Ks,r),o(e,H,r),p(Et,H,null),s(H,Ga),s(H,w),p(Pt,w,null),s(w,qa),s(w,Er),s(w,Ha),s(w,Pr),o(e,Xs,r),p(Nt,e,r),o(e,Zs,r),o(e,K,r),p(Rt,K,null),s(K,Ka),s(K,M),p(jt,M,null),s(M,Xa),s(M,Nr),s(M,Za),s(M,Rr),o(e,Qs,r),p(It,e,r),o(e,Ws,r),o(e,X,r),p(St,X,null),s(X,Qa),s(X,he),p(At,he,null),s(he,Wa),s(he,jr),o(e,Ys,r),p(Vt,e,r),o(e,en,r),o(e,Z,r),p(zt,Z,null),s(Z,Ya),s(Z,ve),p(Bt,ve,null),s(ve,el),s(ve,Ir),o(e,tn,r),p(Jt,e,r),o(e,rn,r),o(e,y,r),p(Ft,y,null),s(y,tl),s(y,fe),p(Ut,fe,null),s(fe,rl),s(fe,Sr),s(y,sl),s(y,k),p(Ot,k,null),s(k,nl),s(k,Ar),s(k,al),s(k,Vr),s(y,ll),s(y,_e),p(Gt,_e,null),s(_e,il),s(_e,zr),o(e,sn,r),p(qt,e,r),o(e,nn,r),o(e,Ht,r),p(Kt,Ht,null),o(e,an,r),p(Xt,e,r),o(e,ln,r),o(e,Q,r),p(Zt,Q,null),s(Q,ol),s(Q,$e),p(Qt,$e,null),s($e,ml),s($e,Br),o(e,on,r),p(Wt,e,r),o(e,mn,r),o(e,W,r),p(Yt,W,null),s(W,cl),s(W,be),p(er,be,null),s(be,pl),s(be,Jr),o(e,cn,r),p(tr,e,r),o(e,pn,r),o(e,Y,r),p(rr,Y,null),s(Y,gl),s(Y,xe),p(sr,xe,null),s(xe,dl),s(xe,Fr),o(e,gn,r),p(nr,e,r),o(e,dn,r),p(ar,e,r),o(e,un,r),o(e,b,r),p(lr,b,null),s(b,ul),s(b,Ur),s(b,hl),s(b,Or),s(b,vl),s(b,x),p(ir,x,null),s(x,fl),s(x,Gr),s(x,_l),s(x,qr),s(x,$l),s(x,Hr),s(x,bl),s(x,Kr),s(b,xl),s(b,ye),p(or,ye,null),s(ye,yl),s(ye,Xr),o(e,hn,r),p(mr,e,r),o(e,vn,r),o(e,rs,r),fn=!0},p:di,i(e){fn||(g(Le.$$.fragment,e),g(we.$$.fragment,e),g(Me.$$.fragment,e),g(ke.$$.fragment,e),g(Te.$$.fragment,e),g(Ee.$$.fragment,e),g(Pe.$$.fragment,e),g(Ne.$$.fragment,e),g(Re.$$.fragment,e),g(je.$$.fragment,e),g(Ie.$$.fragment,e),g(Se.$$.fragment,e),g(Ae.$$.fragment,e),g(Ve.$$.fragment,e),g(ze.$$.fragment,e),g(Be.$$.fragment,e),g(Je.$$.fragment,e),g(Fe.$$.fragment,e),g(Ue.$$.fragment,e),g(Oe.$$.fragment,e),g(Ge.$$.fragment,e),g(qe.$$.fragment,e),g(He.$$.fragment,e),g(Ke.$$.fragment,e),g(Xe.$$.fragment,e),g(Ze.$$.fragment,e),g(Qe.$$.fragment,e),g(We.$$.fragment,e),g(Ye.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(nt.$$.fragment,e),g(at.$$.fragment,e),g(lt.$$.fragment,e),g(it.$$.fragment,e),g(ot.$$.fragment,e),g(mt.$$.fragment,e),g(ct.$$.fragment,e),g(pt.$$.fragment,e),g(gt.$$.fragment,e),g(dt.$$.fragment,e),g(ut.$$.fragment,e),g(ht.$$.fragment,e),g(vt.$$.fragment,e),g(ft.$$.fragment,e),g(_t.$$.fragment,e),g($t.$$.fragment,e),g(bt.$$.fragment,e),g(xt.$$.fragment,e),g(yt.$$.fragment,e),g(Ct.$$.fragment,e),g(Lt.$$.fragment,e),g(wt.$$.fragment,e),g(Mt.$$.fragment,e),g(kt.$$.fragment,e),g(Dt.$$.fragment,e),g(Tt.$$.fragment,e),g(Et.$$.fragment,e),g(Pt.$$.fragment,e),g(Nt.$$.fragment,e),g(Rt.$$.fragment,e),g(jt.$$.fragment,e),g(It.$$.fragment,e),g(St.$$.fragment,e),g(At.$$.fragment,e),g(Vt.$$.fragment,e),g(zt.$$.fragment,e),g(Bt.$$.fragment,e),g(Jt.$$.fragment,e),g(Ft.$$.fragment,e),g(Ut.$$.fragment,e),g(Ot.$$.fragment,e),g(Gt.$$.fragment,e),g(qt.$$.fragment,e),g(Kt.$$.fragment,e),g(Xt.$$.fragment,e),g(Zt.$$.fragment,e),g(Qt.$$.fragment,e),g(Wt.$$.fragment,e),g(Yt.$$.fragment,e),g(er.$$.fragment,e),g(tr.$$.fragment,e),g(rr.$$.fragment,e),g(sr.$$.fragment,e),g(nr.$$.fragment,e),g(ar.$$.fragment,e),g(lr.$$.fragment,e),g(ir.$$.fragment,e),g(or.$$.fragment,e),g(mr.$$.fragment,e),fn=!0)},o(e){d(Le.$$.fragment,e),d(we.$$.fragment,e),d(Me.$$.fragment,e),d(ke.$$.fragment,e),d(Te.$$.fragment,e),d(Ee.$$.fragment,e),d(Pe.$$.fragment,e),d(Ne.$$.fragment,e),d(Re.$$.fragment,e),d(je.$$.fragment,e),d(Ie.$$.fragment,e),d(Se.$$.fragment,e),d(Ae.$$.fragment,e),d(Ve.$$.fragment,e),d(ze.$$.fragment,e),d(Be.$$.fragment,e),d(Je.$$.fragment,e),d(Fe.$$.fragment,e),d(Ue.$$.fragment,e),d(Oe.$$.fragment,e),d(Ge.$$.fragment,e),d(qe.$$.fragment,e),d(He.$$.fragment,e),d(Ke.$$.fragment,e),d(Xe.$$.fragment,e),d(Ze.$$.fragment,e),d(Qe.$$.fragment,e),d(We.$$.fragment,e),d(Ye.$$.fragment,e),d(et.$$.fragment,e),d(tt.$$.fragment,e),d(rt.$$.fragment,e),d(st.$$.fragment,e),d(nt.$$.fragment,e),d(at.$$.fragment,e),d(lt.$$.fragment,e),d(it.$$.fragment,e),d(ot.$$.fragment,e),d(mt.$$.fragment,e),d(ct.$$.fragment,e),d(pt.$$.fragment,e),d(gt.$$.fragment,e),d(dt.$$.fragment,e),d(ut.$$.fragment,e),d(ht.$$.fragment,e),d(vt.$$.fragment,e),d(ft.$$.fragment,e),d(_t.$$.fragment,e),d($t.$$.fragment,e),d(bt.$$.fragment,e),d(xt.$$.fragment,e),d(yt.$$.fragment,e),d(Ct.$$.fragment,e),d(Lt.$$.fragment,e),d(wt.$$.fragment,e),d(Mt.$$.fragment,e),d(kt.$$.fragment,e),d(Dt.$$.fragment,e),d(Tt.$$.fragment,e),d(Et.$$.fragment,e),d(Pt.$$.fragment,e),d(Nt.$$.fragment,e),d(Rt.$$.fragment,e),d(jt.$$.fragment,e),d(It.$$.fragment,e),d(St.$$.fragment,e),d(At.$$.fragment,e),d(Vt.$$.fragment,e),d(zt.$$.fragment,e),d(Bt.$$.fragment,e),d(Jt.$$.fragment,e),d(Ft.$$.fragment,e),d(Ut.$$.fragment,e),d(Ot.$$.fragment,e),d(Gt.$$.fragment,e),d(qt.$$.fragment,e),d(Kt.$$.fragment,e),d(Xt.$$.fragment,e),d(Zt.$$.fragment,e),d(Qt.$$.fragment,e),d(Wt.$$.fragment,e),d(Yt.$$.fragment,e),d(er.$$.fragment,e),d(tr.$$.fragment,e),d(rr.$$.fragment,e),d(sr.$$.fragment,e),d(nr.$$.fragment,e),d(ar.$$.fragment,e),d(lr.$$.fragment,e),d(ir.$$.fragment,e),d(or.$$.fragment,e),d(mr.$$.fragment,e),fn=!1},d(e){e&&(t(ss),t(ts),t(ns),t(as),t(ls),t(is),t(os),t(De),t(ms),t(cs),t(P),t(ps),t(gs),t(N),t(ds),t(us),t(R),t(hs),t(vs),t(j),t(fs),t(_s),t(I),t($s),t(bs),t(xs),t(S),t(ys),t(Cs),t(A),t(Ls),t(ws),t(V),t(Ms),t(ks),t(z),t(Ds),t(Ts),t(Es),t(C),t(Ps),t(Ns),t(L),t(Rs),t(js),t(B),t(Is),t(Ss),t(J),t(As),t(Vs),t(F),t(zs),t(Bs),t(U),t(Js),t(Fs),t(O),t(Us),t(Os),t(G),t(Gs),t(qs),t(q),t(Hs),t(Ks),t(H),t(Xs),t(Zs),t(K),t(Qs),t(Ws),t(X),t(Ys),t(en),t(Z),t(tn),t(rn),t(y),t(sn),t(nn),t(Ht),t(an),t(ln),t(Q),t(on),t(mn),t(W),t(cn),t(pn),t(Y),t(gn),t(dn),t(un),t(b),t(hn),t(vn),t(rs)),t(E),u(Le,e),u(we,e),u(Me,e),u(ke,e),u(Te),u(Ee,e),u(Pe),u(Ne,e),u(Re),u(je,e),u(Ie),u(Se,e),u(Ae),u(Ve,e),u(ze),u(Be,e),u(Je,e),u(Fe),u(Ue),u(Oe,e),u(Ge),u(qe),u(He,e),u(Ke),u(Xe),u(Ze,e),u(Qe),u(We),u(Ye,e),u(et,e),u(tt),u(rt),u(st),u(nt,e),u(at),u(lt),u(it),u(ot,e),u(mt),u(ct),u(pt,e),u(gt),u(dt),u(ut,e),u(ht),u(vt),u(ft,e),u(_t),u($t),u(bt,e),u(xt),u(yt),u(Ct,e),u(Lt),u(wt),u(Mt,e),u(kt),u(Dt),u(Tt,e),u(Et),u(Pt),u(Nt,e),u(Rt),u(jt),u(It,e),u(St),u(At),u(Vt,e),u(zt),u(Bt),u(Jt,e),u(Ft),u(Ut),u(Ot),u(Gt),u(qt,e),u(Kt),u(Xt,e),u(Zt),u(Qt),u(Wt,e),u(Yt),u(er),u(tr,e),u(rr),u(sr),u(nr,e),u(ar,e),u(lr),u(ir),u(or),u(mr,e)}}}const xi='{"title":"Metrics","local":"metrics","sections":[{"title":"Metrics","local":"metrics","sections":[{"title":"Metric","local":"lighteval.metrics.Metric","sections":[],"depth":3},{"title":"CorpusLevelMetric","local":"lighteval.metrics.utils.metric_utils.CorpusLevelMetric","sections":[],"depth":3},{"title":"SampleLevelMetric","local":"lighteval.metrics.utils.metric_utils.SampleLevelMetric","sections":[],"depth":3},{"title":"MetricGrouping","local":"lighteval.metrics.utils.metric_utils.MetricGrouping","sections":[],"depth":3},{"title":"CorpusLevelMetricGrouping","local":"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping","sections":[],"depth":3},{"title":"SampleLevelMetricGrouping","local":"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping","sections":[],"depth":3}],"depth":2},{"title":"Corpus Metrics","local":"corpus-metrics","sections":[{"title":"CorpusLevelF1Score","local":"lighteval.metrics.metrics_corpus.CorpusLevelF1Score","sections":[],"depth":3},{"title":"CorpusLevelPerplexityMetric","local":"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric","sections":[],"depth":3},{"title":"CorpusLevelTranslationMetric","local":"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric","sections":[],"depth":3},{"title":"MatthewsCorrCoef","local":"lighteval.metrics.metrics_corpus.MatthewsCorrCoef","sections":[],"depth":3}],"depth":2},{"title":"Sample Metrics","local":"sample-metrics","sections":[{"title":"ExactMatches","local":"lighteval.metrics.metrics_sample.ExactMatches","sections":[],"depth":3},{"title":"F1_score","local":"lighteval.metrics.metrics_sample.F1_score","sections":[],"depth":3},{"title":"LoglikelihoodAcc","local":"lighteval.metrics.metrics_sample.LoglikelihoodAcc","sections":[],"depth":3},{"title":"NormalizedMultiChoiceProbability","local":"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability","sections":[],"depth":3},{"title":"Probability","local":"lighteval.metrics.metrics_sample.Probability","sections":[],"depth":3},{"title":"Recall","local":"lighteval.metrics.metrics_sample.Recall","sections":[],"depth":3},{"title":"MRR","local":"lighteval.metrics.metrics_sample.MRR","sections":[],"depth":3},{"title":"ROUGE","local":"lighteval.metrics.metrics_sample.ROUGE","sections":[],"depth":3},{"title":"BertScore","local":"lighteval.metrics.metrics_sample.BertScore","sections":[],"depth":3},{"title":"Extractiveness","local":"lighteval.metrics.metrics_sample.Extractiveness","sections":[],"depth":3},{"title":"Faithfulness","local":"lighteval.metrics.metrics_sample.Faithfulness","sections":[],"depth":3},{"title":"BLEURT","local":"lighteval.metrics.metrics_sample.BLEURT","sections":[],"depth":3},{"title":"BLEU","local":"lighteval.metrics.metrics_sample.BLEU","sections":[],"depth":3},{"title":"StringDistance","local":"lighteval.metrics.metrics_sample.StringDistance","sections":[],"depth":3},{"title":"JudgeLLM","local":"lighteval.metrics.metrics_sample.JudgeLLM","sections":[],"depth":3},{"title":"JudgeLLMMTBench","local":"lighteval.metrics.metrics_sample.JudgeLLMMTBench","sections":[],"depth":3},{"title":"JudgeLLMMixEval","local":"lighteval.metrics.metrics_sample.JudgeLLMMixEval","sections":[],"depth":3},{"title":"MajAtK","local":"lighteval.metrics.metrics_sample.MajAtK","sections":[],"depth":3}],"depth":2},{"title":"LLM-as-a-Judge","local":"llm-as-a-judge","sections":[{"title":"JudgeLM","local":"lighteval.metrics.utils.llm_as_judge.JudgeLM","sections":[],"depth":3}],"depth":2}],"depth":1}';function yi(Cl){return ui(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ki extends hi{constructor(E){super(),vi(this,E,yi,bi,gi,{})}}export{ki as component};
