import{s as Hi,n as Ki,o as Xi}from"../chunks/scheduler.3a17fb72.js";import{S as Zi,i as Qi,e as l,s as n,c as m,h as Wi,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.093f8863.js";import{C as Yi}from"../chunks/CopyLLMTxtMenu.ccc246bc.js";import{D as f}from"../chunks/Docstring.fb2f3104.js";import{H as $,E as eo}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ff8099de.js";function to(ti){let N,bs,_s,xs,Te,ys,Ee,Cs,Ne,ws,Pe,Ls,Ae,Re,Ms,Ie,ks,P,je,ja,Cr,ri="Metric computed over the whole corpora, with computations happening at the aggregation phase",Ds,Se,Ts,A,Ve,Sa,wr,si="Metric computed per sample, then aggregated over the corpus",Es,ze,Ns,R,Be,Va,Lr,ni=`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.`,Ps,Je,As,I,Fe,za,Mr,ai="MetricGrouping computed over the whole corpora, with computations happening at the aggregation phase",Rs,Ue,Is,j,Oe,Ba,kr,li="MetricGrouping are computed per sample, then aggregated over the corpus",js,Ge,Ss,qe,Vs,S,He,Ja,re,Ke,Fa,Dr,ii="Computes the metric score over all the corpus generated items, by using the scikit learn implementation.",zs,Xe,Bs,V,Ze,Ua,se,Qe,Oa,Tr,oi="Computes the metric score over all the corpus generated items.",Js,We,Fs,z,Ye,Ga,ne,et,qa,Er,mi="Computes the metric score over all the corpus generated items, by using the sacrebleu implementation.",Us,tt,Os,B,rt,Ha,ae,st,Ka,Nr,ci='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>).',Gs,nt,qs,at,Hs,C,lt,Xa,le,it,Za,Pr,pi="Computes the metric over a list of golds and predictions for one single sample.",Qa,ie,ot,Wa,Ar,gi="Compares two strings only.",Ks,mt,Xs,w,ct,Ya,oe,pt,el,Rr,di="Computes the metric over a list of golds and predictions for one single sample.",tl,me,gt,rl,Ir,ui="Compares two strings only.",Zs,dt,Qs,J,ut,sl,ce,ht,nl,jr,hi=`Computes the log likelihood accuracy: is the choice with the highest logprob in <code>choices_logprob</code> present
in the <code>gold_ixs</code>?`,Ws,vt,Ys,F,ft,al,pe,_t,ll,Sr,vi="Computes the log likelihood probability: chance of choosing the best choice.",en,$t,tn,U,bt,il,ge,xt,ol,Vr,fi="Computes the log likelihood probability: chance of choosing the best choice.",rn,yt,sn,O,Ct,ml,de,wt,cl,zr,_i=`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.`,nn,Lt,an,G,Mt,pl,ue,kt,gl,Br,$i="Mean reciprocal rank. Measures the quality of a ranking of choices (ordered by correctness).",ln,Dt,on,q,Tt,dl,he,Et,ul,Jr,bi="Computes the metric(s) over a list of golds and predictions for one single sample.",mn,Nt,cn,H,Pt,hl,ve,At,vl,Fr,xi="Computes the prediction, recall and f1 score using the bert scorer.",pn,Rt,gn,K,It,fl,M,jt,_l,Ur,yi="Compute the extractiveness of the predictions.",$l,Or,Ci=`This method calculates coverage, density, and compression scores for a single
prediction against the input text.`,dn,St,un,X,Vt,bl,k,zt,xl,Gr,wi="Compute the faithfulness of the predictions.",yl,qr,Li="The SummaCZS (Summary Content Zero-Shot) model is used with configurable granularity and model variation.",hn,Bt,vn,Z,Jt,Cl,fe,Ft,wl,Hr,Mi="Uses the stored BLEURT scorer to compute the score on the current sample.",fn,Ut,_n,Q,Ot,Ll,_e,Gt,Ml,Kr,ki="Computes the sentence level BLEU between the golds and each prediction, then takes the average.",$n,qt,bn,y,Ht,kl,$e,Kt,Dl,Xr,Di="Computes all the requested metrics on the golds and prediction.",Tl,D,Xt,El,Zr,Ti="Compute the edit similarity between two lists of strings.",Nl,Qr,Ei=`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).`,Pl,be,Zt,Al,Wr,Ni="Compute the length of the longest common prefix.",xn,Qt,yn,Wt,Cn,L,Yt,Rl,xe,er,Il,Yr,Pi=`Computes the metric over a list of golds and predictions for one single item with possibly many samples.
It applies normalisation (if needed) to model prediction and gold, computes their per prediction score,
then aggregates the scores over the samples using a pass@k.`,jl,ye,tr,Sl,es,Ai='Algo from <a href="https://arxiv.org/pdf/2107.03374" rel="nofollow">https://arxiv.org/pdf/2107.03374</a>',wn,rr,Ln,W,sr,Vl,Ce,nr,zl,ts,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.`,Mn,ar,kn,Y,lr,Bl,we,ir,Jl,rs,Ii=`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.`,Dn,or,Tn,mr,En,b,cr,Fl,ss,ji="A class representing a judge for evaluating answers using either the chosen backend.",Ul,ns,Si=`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.`,Ol,x,pr,Gl,as,Vi="Transform a dictionary of lists into a list of dictionaries.",ql,ls,zi=`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.`,Hl,is,Bi="Example:",Kl,os,Ji=`<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,Le,gr,Zl,ms,Fi="Evaluates an answer using either Transformers or OpenAI API.",Nn,dr,Pn,ur,hr,An,vr,Rn,ee,fr,Ql,Me,_r,Wl,cs,Ui=`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.`,In,$r,jn,te,br,Yl,ke,xr,ei,ps,Oi=`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.`,Sn,yr,Vn,$s,zn;return Te=new Yi({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),Ee=new $({props:{title:"Metrics",local:"metrics",headingTag:"h1"}}),Ne=new $({props:{title:"Metrics",local:"metrics",headingTag:"h2"}}),Pe=new $({props:{title:"Metric",local:"lighteval.metrics.Metric",headingTag:"h3"}}),Re=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_1032/src/lighteval/metrics/utils/metric_utils.py#L33"}}),Ie=new $({props:{title:"CorpusLevelMetric",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetric",headingTag:"h3"}}),je=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_1032/src/lighteval/metrics/utils/metric_utils.py#L117"}}),Se=new $({props:{title:"SampleLevelMetric",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetric",headingTag:"h3"}}),Ve=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_1032/src/lighteval/metrics/utils/metric_utils.py#L124"}}),ze=new $({props:{title:"MetricGrouping",local:"lighteval.metrics.utils.metric_utils.MetricGrouping",headingTag:"h3"}}),Be=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_1032/src/lighteval/metrics/utils/metric_utils.py#L106"}}),Je=new $({props:{title:"CorpusLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.CorpusLevelMetricGrouping",headingTag:"h3"}}),Fe=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_1032/src/lighteval/metrics/utils/metric_utils.py#L131"}}),Ue=new $({props:{title:"SampleLevelMetricGrouping",local:"lighteval.metrics.utils.metric_utils.SampleLevelMetricGrouping",headingTag:"h3"}}),Oe=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_1032/src/lighteval/metrics/utils/metric_utils.py#L138"}}),Ge=new $({props:{title:"Corpus Metrics",local:"corpus-metrics",headingTag:"h2"}}),qe=new $({props:{title:"CorpusLevelF1Score",local:"lighteval.metrics.metrics_corpus.CorpusLevelF1Score",headingTag:"h3"}}),He=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_1032/src/lighteval/metrics/metrics_corpus.py#L81"}}),Ke=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_1032/src/lighteval/metrics/metrics_corpus.py#L96"}}),Xe=new $({props:{title:"CorpusLevelPerplexityMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelPerplexityMetric",headingTag:"h3"}}),Ze=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_1032/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_1032/src/lighteval/metrics/metrics_corpus.py#L182"}}),We=new $({props:{title:"CorpusLevelTranslationMetric",local:"lighteval.metrics.metrics_corpus.CorpusLevelTranslationMetric",headingTag:"h3"}}),Ye=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_1032/src/lighteval/metrics/metrics_corpus.py#L116"}}),et=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_1032/src/lighteval/metrics/metrics_corpus.py#L142"}}),tt=new $({props:{title:"MatthewsCorrCoef",local:"lighteval.metrics.metrics_corpus.MatthewsCorrCoef",headingTag:"h3"}}),rt=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_1032/src/lighteval/metrics/metrics_corpus.py#L66"}}),st=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_1032/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>
`}}),nt=new $({props:{title:"Sample Metrics",local:"sample-metrics",headingTag:"h2"}}),at=new $({props:{title:"ExactMatches",local:"lighteval.metrics.metrics_sample.ExactMatches",headingTag:"h3"}}),lt=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_1032/src/lighteval/metrics/metrics_sample.py#L81"}}),it=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_1032/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>
`}}),ot=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_1032/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>
`}}),mt=new $({props:{title:"F1_score",local:"lighteval.metrics.metrics_sample.F1_score",headingTag:"h3"}}),ct=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_1032/src/lighteval/metrics/metrics_sample.py#L170"}}),pt=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_1032/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>
`}}),gt=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_1032/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>
`}}),dt=new $({props:{title:"LoglikelihoodAcc",local:"lighteval.metrics.metrics_sample.LoglikelihoodAcc",headingTag:"h3"}}),ut=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_1032/src/lighteval/metrics/metrics_sample.py#L243"}}),ht=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_1032/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>
`}}),vt=new $({props:{title:"NormalizedMultiChoiceProbability",local:"lighteval.metrics.metrics_sample.NormalizedMultiChoiceProbability",headingTag:"h3"}}),ft=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 0x7ff1d1149970>"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L297"}}),_t=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_1032/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>
`}}),$t=new $({props:{title:"Probability",local:"lighteval.metrics.metrics_sample.Probability",headingTag:"h3"}}),bt=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 0x7ff1d1149970>"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L357"}}),xt=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_1032/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>
`}}),yt=new $({props:{title:"Recall",local:"lighteval.metrics.metrics_sample.Recall",headingTag:"h3"}}),Ct=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_1032/src/lighteval/metrics/metrics_sample.py#L408"}}),wt=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_1032/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>
`}}),Lt=new $({props:{title:"MRR",local:"lighteval.metrics.metrics_sample.MRR",headingTag:"h3"}}),Mt=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_1032/src/lighteval/metrics/metrics_sample.py#L438"}}),kt=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MRR.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{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_1032/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>
`}}),Dt=new $({props:{title:"ROUGE",local:"lighteval.metrics.metrics_sample.ROUGE",headingTag:"h3"}}),Tt=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_1032/src/lighteval/metrics/metrics_sample.py#L486"}}),Et=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_1032/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>
`}}),Nt=new $({props:{title:"BertScore",local:"lighteval.metrics.metrics_sample.BertScore",headingTag:"h3"}}),Pt=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_1032/src/lighteval/metrics/metrics_sample.py#L598"}}),At=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_1032/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>
`}}),Rt=new $({props:{title:"Extractiveness",local:"lighteval.metrics.metrics_sample.Extractiveness",headingTag:"h3"}}),It=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 0x7ff0eaaf7e20>"},{name:"normalize_pred",val:": <built-in function callable> = <function remove_braces_and_strip at 0x7ff0eaaf7eb0>"},{name:"input_column",val:": str = 'text'"},{name:"language",val:": typing.Literal['en', 'de', 'fr', 'it'] = 'en'"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L661"}}),jt=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_1032/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>
`}}),St=new $({props:{title:"Faithfulness",local:"lighteval.metrics.metrics_sample.Faithfulness",headingTag:"h3"}}),Vt=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 0x7ff0eaaf7e20>"},{name:"normalize_pred",val:": typing.Callable = <function remove_braces_and_strip at 0x7ff0eaaf7eb0>"},{name:"input_column",val:": str = 'text'"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L717"}}),zt=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_1032/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>
`}}),Bt=new $({props:{title:"BLEURT",local:"lighteval.metrics.metrics_sample.BLEURT",headingTag:"h3"}}),Jt=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_1032/src/lighteval/metrics/metrics_sample.py#L765"}}),Ft=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_1032/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>
`}}),Ut=new $({props:{title:"BLEU",local:"lighteval.metrics.metrics_sample.BLEU",headingTag:"h3"}}),Ot=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_1032/src/lighteval/metrics/metrics_sample.py#L805"}}),Gt=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_1032/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>
`}}),qt=new $({props:{title:"StringDistance",local:"lighteval.metrics.metrics_sample.StringDistance",headingTag:"h3"}}),Ht=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_1032/src/lighteval/metrics/metrics_sample.py#L847"}}),Kt=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_1032/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>
`}}),Xt=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_1032/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>
`}}),Zt=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_1032/src/lighteval/metrics/metrics_sample.py#L920"}}),Qt=new $({props:{title:"Metrics allowing sampling",local:"metrics-allowing-sampling",headingTag:"h3"}}),Wt=new $({props:{title:"PassAtK",local:"lighteval.metrics.metrics_sample.PassAtK",headingTag:"h4"}}),Yt=new f({props:{name:"class lighteval.metrics.metrics_sample.PassAtK",anchor:"lighteval.metrics.metrics_sample.PassAtK",parameters:[{name:"k",val:": int | None = None"},{name:"n",val:": int | None = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1264"}}),er=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.PassAtK.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.PassAtK.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.PassAtK.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.PassAtK.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1278",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>
`}}),tr=new f({props:{name:"pass_at_k",anchor:"lighteval.metrics.metrics_sample.PassAtK.pass_at_k",parameters:[{name:"all_scores",val:": list"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1319"}}),rr=new $({props:{title:"MajAtN",local:"lighteval.metrics.metrics_sample.MajAtN",headingTag:"h4"}}),sr=new f({props:{name:"class lighteval.metrics.metrics_sample.MajAtN",anchor:"lighteval.metrics.metrics_sample.MajAtN",parameters:[{name:"n",val:": int | None = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1212"}}),nr=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.MajAtN.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.MajAtN.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.MajAtN.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.MajAtN.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1225",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>
`}}),ar=new $({props:{title:"AvgAtN",local:"lighteval.metrics.metrics_sample.AvgAtN",headingTag:"h4"}}),lr=new f({props:{name:"class lighteval.metrics.metrics_sample.AvgAtN",anchor:"lighteval.metrics.metrics_sample.AvgAtN",parameters:[{name:"n",val:": int | None = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1176"}}),ir=new f({props:{name:"compute",anchor:"lighteval.metrics.metrics_sample.AvgAtN.compute",parameters:[{name:"doc",val:": Doc"},{name:"model_response",val:": ModelResponse"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"lighteval.metrics.metrics_sample.AvgAtN.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.AvgAtN.compute.doc",description:"<strong>doc</strong> (Doc) &#x2014; The document containing gold references.",name:"doc"},{anchor:"lighteval.metrics.metrics_sample.AvgAtN.compute.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/lighteval/blob/vr_1032/src/lighteval/metrics/metrics_sample.py#L1188",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>
`}}),or=new $({props:{title:"LLM-as-a-Judge",local:"llm-as-a-judge",headingTag:"h2"}}),mr=new $({props:{title:"JudgeLM",local:"lighteval.metrics.utils.llm_as_judge.JudgeLM",headingTag:"h3"}}),cr=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_1032/src/lighteval/metrics/utils/llm_as_judge.py#L67"}}),pr=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_1032/src/lighteval/metrics/utils/llm_as_judge.py#L204",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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