import{s as Hl,n as Kl,o as Xl}from"../chunks/scheduler.3a17fb72.js";import{S as Zl,i as Ql,e as i,s as n,c as m,h as Wl,a as l,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 Yl,H as _,E as eo}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8f3ffde1.js";import{D as f}from"../chunks/Docstring.9c1a505f.js";function to(tl){let N,bs,$s,xs,Te,ys,Ee,Cs,Ne,ws,Pe,Ls,Ae,Re,Ms,Ie,ks,P,je,ja,Cr,rl="Metric computed over the whole corpora, with computations happening at the aggregation phase",Ds,Se,Ts,A,Ve,Sa,wr,sl="Metric computed per sample, then aggregated over the corpus",Es,ze,Ns,R,Be,Va,Lr,nl=`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,al="MetricGrouping computed over the whole corpora, with computations happening at the aggregation phase",Rs,Ue,Is,j,Oe,Ba,kr,il="MetricGrouping are computed per sample, then aggregated over the corpus",js,Ge,Ss,qe,Vs,S,He,Ja,re,Ke,Fa,Dr,ll="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,ol="Computes the metric score over all the corpus generated items.",Js,We,Fs,z,Ye,Ga,ne,et,qa,Er,ml="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,cl='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,it,Xa,ie,lt,Za,Pr,pl="Computes the metric over a list of golds and predictions for one single sample.",Qa,le,ot,Wa,Ar,gl="Compares two strings only.",Ks,mt,Xs,w,ct,Ya,oe,pt,ei,Rr,dl="Computes the metric over a list of golds and predictions for one single sample.",ti,me,gt,ri,Ir,ul="Compares two strings only.",Zs,dt,Qs,J,ut,si,ce,ht,ni,jr,hl=`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,ai,pe,$t,ii,Sr,vl="Computes the log likelihood probability: chance of choosing the best choice.",en,_t,tn,U,bt,li,ge,xt,oi,Vr,fl="Computes the log likelihood probability: chance of choosing the best choice.",rn,yt,sn,O,Ct,mi,de,wt,ci,zr,$l=`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,pi,ue,kt,gi,Br,_l="Mean reciprocal rank. Measures the quality of a ranking of choices (ordered by correctness).",ln,Dt,on,q,Tt,di,he,Et,ui,Jr,bl="Computes the metric(s) over a list of golds and predictions for one single sample.",mn,Nt,cn,H,Pt,hi,ve,At,vi,Fr,xl="Computes the prediction, recall and f1 score using the bert scorer.",pn,Rt,gn,K,It,fi,M,jt,$i,Ur,yl="Compute the extractiveness of the predictions.",_i,Or,Cl=`This method calculates coverage, density, and compression scores for a single
prediction against the input text.`,dn,St,un,X,Vt,bi,k,zt,xi,Gr,wl="Compute the faithfulness of the predictions.",yi,qr,Ll="The SummaCZS (Summary Content Zero-Shot) model is used with configurable granularity and model variation.",hn,Bt,vn,Z,Jt,Ci,fe,Ft,wi,Hr,Ml="Uses the stored BLEURT scorer to compute the score on the current sample.",fn,Ut,$n,Q,Ot,Li,$e,Gt,Mi,Kr,kl="Computes the sentence level BLEU between the golds and each prediction, then takes the average.",_n,qt,bn,y,Ht,ki,_e,Kt,Di,Xr,Dl="Computes all the requested metrics on the golds and prediction.",Ti,D,Xt,Ei,Zr,Tl="Compute the edit similarity between two lists of strings.",Ni,Qr,El=`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).`,Pi,be,Zt,Ai,Wr,Nl="Compute the length of the longest common prefix.",xn,Qt,yn,Wt,Cn,L,Yt,Ri,xe,er,Ii,Yr,Pl=`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.`,ji,ye,tr,Si,es,Al='Algo from <a href="https://arxiv.org/pdf/2107.03374" rel="nofollow">https://arxiv.org/pdf/2107.03374</a>',wn,rr,Ln,W,sr,Vi,Ce,nr,zi,ts,Rl=`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,ir,Bi,we,lr,Ji,rs,Il=`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,Fi,ss,jl="A class representing a judge for evaluating answers using either the chosen backend.",Ui,ns,Sl=`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.`,Oi,x,pr,Gi,as,Vl="Transform a dictionary of lists into a list of dictionaries.",qi,is,zl=`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.`,Hi,ls,Bl="Example:",Ki,os,Jl=`<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>`,Xi,Le,gr,Zi,ms,Fl="Evaluates an answer using either Transformers or OpenAI API.",Nn,dr,Pn,ur,hr,An,vr,Rn,ee,fr,Qi,Me,$r,Wi,cs,Ul=`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,Yi,ke,xr,el,ps,Ol=`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 Yl({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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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"}}),it=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/main/src/lighteval/metrics/metrics_sample.py#L81"}}),lt=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/main/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/main/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/main/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/main/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/main/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/main/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/main/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 0x7f4747f13330>"}],source:"https://github.com/huggingface/lighteval/blob/main/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/main/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 0x7f4747f13330>"}],source:"https://github.com/huggingface/lighteval/blob/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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 0x7f4605685090>"},{name:"normalize_pred",val:": <built-in function callable> = <function remove_braces_and_strip at 0x7f4605685120>"},{name:"input_column",val:": str = 'text'"},{name:"language",val:": typing.Literal['en', 'de', 'fr', 'it'] = 'en'"}],source:"https://github.com/huggingface/lighteval/blob/main/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/main/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 0x7f4605685090>"},{name:"normalize_pred",val:": typing.Callable = <function remove_braces_and_strip at 0x7f4605685120>"},{name:"input_column",val:": str = 'text'"}],source:"https://github.com/huggingface/lighteval/blob/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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"}}),ir=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/main/src/lighteval/metrics/metrics_sample.py#L1176"}}),lr=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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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/main/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=i("meta"),bs=n(),$s=i("p"),xs=n(),m(Te.$$.fragment),ys=n(),m(Ee.$$.fragment),Cs=n(),m(Ne.$$.fragment),ws=n(),m(Pe.$$.fragment),Ls=n(),Ae=i("div"),m(Re.$$.fragment),Ms=n(),m(Ie.$$.fragment),ks=n(),P=i("div"),m(je.$$.fragment),ja=n(),Cr=i("p"),Cr.textContent=rl,Ds=n(),m(Se.$$.fragment),Ts=n(),A=i("div"),m(Ve.$$.fragment),Sa=n(),wr=i("p"),wr.textContent=sl,Es=n(),m(ze.$$.fragment),Ns=n(),R=i("div"),m(Be.$$.fragment),Va=n(),Lr=i("p"),Lr.textContent=nl,Ps=n(),m(Je.$$.fragment),As=n(),I=i("div"),m(Fe.$$.fragment),za=n(),Mr=i("p"),Mr.textContent=al,Rs=n(),m(Ue.$$.fragment),Is=n(),j=i("div"),m(Oe.$$.fragment),Ba=n(),kr=i("p"),kr.textContent=il,js=n(),m(Ge.$$.fragment),Ss=n(),m(qe.$$.fragment),Vs=n(),S=i("div"),m(He.$$.fragment),Ja=n(),re=i("div"),m(Ke.$$.fragment),Fa=n(),Dr=i("p"),Dr.textContent=ll,zs=n(),m(Xe.$$.fragment),Bs=n(),V=i("div"),m(Ze.$$.fragment),Ua=n(),se=i("div"),m(Qe.$$.fragment),Oa=n(),Tr=i("p"),Tr.textContent=ol,Js=n(),m(We.$$.fragment),Fs=n(),z=i("div"),m(Ye.$$.fragment),Ga=n(),ne=i("div"),m(et.$$.fragment),qa=n(),Er=i("p"),Er.textContent=ml,Us=n(),m(tt.$$.fragment),Os=n(),B=i("div"),m(rt.$$.fragment),Ha=n(),ae=i("div"),m(st.$$.fragment),Ka=n(),Nr=i("p"),Nr.innerHTML=cl,Gs=n(),m(nt.$$.fragment),qs=n(),m(at.$$.fragment),Hs=n(),C=i("div"),m(it.$$.fragment),Xa=n(),ie=i("div"),m(lt.$$.fragment),Za=n(),Pr=i("p"),Pr.textContent=pl,Qa=n(),le=i("div"),m(ot.$$.fragment),Wa=n(),Ar=i("p"),Ar.textContent=gl,Ks=n(),m(mt.$$.fragment),Xs=n(),w=i("div"),m(ct.$$.fragment),Ya=n(),oe=i("div"),m(pt.$$.fragment),ei=n(),Rr=i("p"),Rr.textContent=dl,ti=n(),me=i("div"),m(gt.$$.fragment),ri=n(),Ir=i("p"),Ir.textContent=ul,Zs=n(),m(dt.$$.fragment),Qs=n(),J=i("div"),m(ut.$$.fragment),si=n(),ce=i("div"),m(ht.$$.fragment),ni=n(),jr=i("p"),jr.innerHTML=hl,Ws=n(),m(vt.$$.fragment),Ys=n(),F=i("div"),m(ft.$$.fragment),ai=n(),pe=i("div"),m($t.$$.fragment),ii=n(),Sr=i("p"),Sr.textContent=vl,en=n(),m(_t.$$.fragment),tn=n(),U=i("div"),m(bt.$$.fragment),li=n(),ge=i("div"),m(xt.$$.fragment),oi=n(),Vr=i("p"),Vr.textContent=fl,rn=n(),m(yt.$$.fragment),sn=n(),O=i("div"),m(Ct.$$.fragment),mi=n(),de=i("div"),m(wt.$$.fragment),ci=n(),zr=i("p"),zr.innerHTML=$l,nn=n(),m(Lt.$$.fragment),an=n(),G=i("div"),m(Mt.$$.fragment),pi=n(),ue=i("div"),m(kt.$$.fragment),gi=n(),Br=i("p"),Br.textContent=_l,ln=n(),m(Dt.$$.fragment),on=n(),q=i("div"),m(Tt.$$.fragment),di=n(),he=i("div"),m(Et.$$.fragment),ui=n(),Jr=i("p"),Jr.textContent=bl,mn=n(),m(Nt.$$.fragment),cn=n(),H=i("div"),m(Pt.$$.fragment),hi=n(),ve=i("div"),m(At.$$.fragment),vi=n(),Fr=i("p"),Fr.textContent=xl,pn=n(),m(Rt.$$.fragment),gn=n(),K=i("div"),m(It.$$.fragment),fi=n(),M=i("div"),m(jt.$$.fragment),$i=n(),Ur=i("p"),Ur.textContent=yl,_i=n(),Or=i("p"),Or.textContent=Cl,dn=n(),m(St.$$.fragment),un=n(),X=i("div"),m(Vt.$$.fragment),bi=n(),k=i("div"),m(zt.$$.fragment),xi=n(),Gr=i("p"),Gr.textContent=wl,yi=n(),qr=i("p"),qr.textContent=Ll,hn=n(),m(Bt.$$.fragment),vn=n(),Z=i("div"),m(Jt.$$.fragment),Ci=n(),fe=i("div"),m(Ft.$$.fragment),wi=n(),Hr=i("p"),Hr.textContent=Ml,fn=n(),m(Ut.$$.fragment),$n=n(),Q=i("div"),m(Ot.$$.fragment),Li=n(),$e=i("div"),m(Gt.$$.fragment),Mi=n(),Kr=i("p"),Kr.textContent=kl,_n=n(),m(qt.$$.fragment),bn=n(),y=i("div"),m(Ht.$$.fragment),ki=n(),_e=i("div"),m(Kt.$$.fragment),Di=n(),Xr=i("p"),Xr.textContent=Dl,Ti=n(),D=i("div"),m(Xt.$$.fragment),Ei=n(),Zr=i("p"),Zr.textContent=Tl,Ni=n(),Qr=i("p"),Qr.textContent=El,Pi=n(),be=i("div"),m(Zt.$$.fragment),Ai=n(),Wr=i("p"),Wr.textContent=Nl,xn=n(),m(Qt.$$.fragment),yn=n(),m(Wt.$$.fragment),Cn=n(),L=i("div"),m(Yt.$$.fragment),Ri=n(),xe=i("div"),m(er.$$.fragment),Ii=n(),Yr=i("p"),Yr.textContent=Pl,ji=n(),ye=i("div"),m(tr.$$.fragment),Si=n(),es=i("p"),es.innerHTML=Al,wn=n(),m(rr.$$.fragment),Ln=n(),W=i("div"),m(sr.$$.fragment),Vi=n(),Ce=i("div"),m(nr.$$.fragment),zi=n(),ts=i("p"),ts.textContent=Rl,Mn=n(),m(ar.$$.fragment),kn=n(),Y=i("div"),m(ir.$$.fragment),Bi=n(),we=i("div"),m(lr.$$.fragment),Ji=n(),rs=i("p"),rs.textContent=Il,Dn=n(),m(or.$$.fragment),Tn=n(),m(mr.$$.fragment),En=n(),b=i("div"),m(cr.$$.fragment),Fi=n(),ss=i("p"),ss.textContent=jl,Ui=n(),ns=i("p"),ns.innerHTML=Sl,Oi=n(),x=i("div"),m(pr.$$.fragment),Gi=n(),as=i("p"),as.textContent=Vl,qi=n(),is=i("p"),is.textContent=zl,Hi=n(),ls=i("p"),ls.textContent=Bl,Ki=n(),os=i("blockquote"),os.innerHTML=Jl,Xi=n(),Le=i("div"),m(gr.$$.fragment),Zi=n(),ms=i("p"),ms.textContent=Fl,Nn=n(),m(dr.$$.fragment),Pn=n(),ur=i("div"),m(hr.$$.fragment),An=n(),m(vr.$$.fragment),Rn=n(),ee=i("div"),m(fr.$$.fragment),Qi=n(),Me=i("div"),m($r.$$.fragment),Wi=n(),cs=i("p"),cs.textContent=Ul,In=n(),m(_r.$$.fragment),jn=n(),te=i("div"),m(br.$$.fragment),Yi=n(),ke=i("div"),m(xr.$$.fragment),el=n(),ps=i("p"),ps.textContent=Ol,Sn=n(),m(yr.$$.fragment),Vn=n(),_s=i("p"),this.h()},l(e){const r=Wl("svelte-u9bgzb",document.head);N=l(r,"META",{name:!0,content:!0}),r.forEach(t),bs=a(e),$s=l(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=l(e,"DIV",{class:!0});var Gl=h(Ae);c(Re.$$.fragment,Gl),Gl.forEach(t),Ms=a(e),c(Ie.$$.fragment,e),ks=a(e),P=l(e,"DIV",{class:!0});var Bn=h(P);c(je.$$.fragment,Bn),ja=a(Bn),Cr=l(Bn,"P",{"data-svelte-h":!0}),$(Cr)!=="svelte-zgtslk"&&(Cr.textContent=rl),Bn.forEach(t),Ds=a(e),c(Se.$$.fragment,e),Ts=a(e),A=l(e,"DIV",{class:!0});var Jn=h(A);c(Ve.$$.fragment,Jn),Sa=a(Jn),wr=l(Jn,"P",{"data-svelte-h":!0}),$(wr)!=="svelte-f7ehzx"&&(wr.textContent=sl),Jn.forEach(t),Es=a(e),c(ze.$$.fragment,e),Ns=a(e),R=l(e,"DIV",{class:!0});var Fn=h(R);c(Be.$$.fragment,Fn),Va=a(Fn),Lr=l(Fn,"P",{"data-svelte-h":!0}),$(Lr)!=="svelte-189xko4"&&(Lr.textContent=nl),Fn.forEach(t),Ps=a(e),c(Je.$$.fragment,e),As=a(e),I=l(e,"DIV",{class:!0});var Un=h(I);c(Fe.$$.fragment,Un),za=a(Un),Mr=l(Un,"P",{"data-svelte-h":!0}),$(Mr)!=="svelte-648fl7"&&(Mr.textContent=al),Un.forEach(t),Rs=a(e),c(Ue.$$.fragment,e),Is=a(e),j=l(e,"DIV",{class:!0});var On=h(j);c(Oe.$$.fragment,On),Ba=a(On),kr=l(On,"P",{"data-svelte-h":!0}),$(kr)!=="svelte-10boi74"&&(kr.textContent=il),On.forEach(t),js=a(e),c(Ge.$$.fragment,e),Ss=a(e),c(qe.$$.fragment,e),Vs=a(e),S=l(e,"DIV",{class:!0});var Gn=h(S);c(He.$$.fragment,Gn),Ja=a(Gn),re=l(Gn,"DIV",{class:!0});var qn=h(re);c(Ke.$$.fragment,qn),Fa=a(qn),Dr=l(qn,"P",{"data-svelte-h":!0}),$(Dr)!=="svelte-6am5wr"&&(Dr.textContent=ll),qn.forEach(t),Gn.forEach(t),zs=a(e),c(Xe.$$.fragment,e),Bs=a(e),V=l(e,"DIV",{class:!0});var Hn=h(V);c(Ze.$$.fragment,Hn),Ua=a(Hn),se=l(Hn,"DIV",{class:!0});var Kn=h(se);c(Qe.$$.fragment,Kn),Oa=a(Kn),Tr=l(Kn,"P",{"data-svelte-h":!0}),$(Tr)!=="svelte-1eqcqc"&&(Tr.textContent=ol),Kn.forEach(t),Hn.forEach(t),Js=a(e),c(We.$$.fragment,e),Fs=a(e),z=l(e,"DIV",{class:!0});var Xn=h(z);c(Ye.$$.fragment,Xn),Ga=a(Xn),ne=l(Xn,"DIV",{class:!0});var Zn=h(ne);c(et.$$.fragment,Zn),qa=a(Zn),Er=l(Zn,"P",{"data-svelte-h":!0}),$(Er)!=="svelte-ngk658"&&(Er.textContent=ml),Zn.forEach(t),Xn.forEach(t),Us=a(e),c(tt.$$.fragment,e),Os=a(e),B=l(e,"DIV",{class:!0});var Qn=h(B);c(rt.$$.fragment,Qn),Ha=a(Qn),ae=l(Qn,"DIV",{class:!0});var Wn=h(ae);c(st.$$.fragment,Wn),Ka=a(Wn),Nr=l(Wn,"P",{"data-svelte-h":!0}),$(Nr)!=="svelte-osccbb"&&(Nr.innerHTML=cl),Wn.forEach(t),Qn.forEach(t),Gs=a(e),c(nt.$$.fragment,e),qs=a(e),c(at.$$.fragment,e),Hs=a(e),C=l(e,"DIV",{class:!0});var gs=h(C);c(it.$$.fragment,gs),Xa=a(gs),ie=l(gs,"DIV",{class:!0});var Yn=h(ie);c(lt.$$.fragment,Yn),Za=a(Yn),Pr=l(Yn,"P",{"data-svelte-h":!0}),$(Pr)!=="svelte-m2t8u2"&&(Pr.textContent=pl),Yn.forEach(t),Qa=a(gs),le=l(gs,"DIV",{class:!0});var ea=h(le);c(ot.$$.fragment,ea),Wa=a(ea),Ar=l(ea,"P",{"data-svelte-h":!0}),$(Ar)!=="svelte-29ay4o"&&(Ar.textContent=gl),ea.forEach(t),gs.forEach(t),Ks=a(e),c(mt.$$.fragment,e),Xs=a(e),w=l(e,"DIV",{class:!0});var ds=h(w);c(ct.$$.fragment,ds),Ya=a(ds),oe=l(ds,"DIV",{class:!0});var ta=h(oe);c(pt.$$.fragment,ta),ei=a(ta),Rr=l(ta,"P",{"data-svelte-h":!0}),$(Rr)!=="svelte-m2t8u2"&&(Rr.textContent=dl),ta.forEach(t),ti=a(ds),me=l(ds,"DIV",{class:!0});var ra=h(me);c(gt.$$.fragment,ra),ri=a(ra),Ir=l(ra,"P",{"data-svelte-h":!0}),$(Ir)!=="svelte-29ay4o"&&(Ir.textContent=ul),ra.forEach(t),ds.forEach(t),Zs=a(e),c(dt.$$.fragment,e),Qs=a(e),J=l(e,"DIV",{class:!0});var sa=h(J);c(ut.$$.fragment,sa),si=a(sa),ce=l(sa,"DIV",{class:!0});var na=h(ce);c(ht.$$.fragment,na),ni=a(na),jr=l(na,"P",{"data-svelte-h":!0}),$(jr)!=="svelte-oza3m6"&&(jr.innerHTML=hl),na.forEach(t),sa.forEach(t),Ws=a(e),c(vt.$$.fragment,e),Ys=a(e),F=l(e,"DIV",{class:!0});var aa=h(F);c(ft.$$.fragment,aa),ai=a(aa),pe=l(aa,"DIV",{class:!0});var ia=h(pe);c($t.$$.fragment,ia),ii=a(ia),Sr=l(ia,"P",{"data-svelte-h":!0}),$(Sr)!=="svelte-cm5dxb"&&(Sr.textContent=vl),ia.forEach(t),aa.forEach(t),en=a(e),c(_t.$$.fragment,e),tn=a(e),U=l(e,"DIV",{class:!0});var la=h(U);c(bt.$$.fragment,la),li=a(la),ge=l(la,"DIV",{class:!0});var oa=h(ge);c(xt.$$.fragment,oa),oi=a(oa),Vr=l(oa,"P",{"data-svelte-h":!0}),$(Vr)!=="svelte-cm5dxb"&&(Vr.textContent=fl),oa.forEach(t),la.forEach(t),rn=a(e),c(yt.$$.fragment,e),sn=a(e),O=l(e,"DIV",{class:!0});var ma=h(O);c(Ct.$$.fragment,ma),mi=a(ma),de=l(ma,"DIV",{class:!0});var ca=h(de);c(wt.$$.fragment,ca),ci=a(ca),zr=l(ca,"P",{"data-svelte-h":!0}),$(zr)!=="svelte-1vzdvz9"&&(zr.innerHTML=$l),ca.forEach(t),ma.forEach(t),nn=a(e),c(Lt.$$.fragment,e),an=a(e),G=l(e,"DIV",{class:!0});var pa=h(G);c(Mt.$$.fragment,pa),pi=a(pa),ue=l(pa,"DIV",{class:!0});var ga=h(ue);c(kt.$$.fragment,ga),gi=a(ga),Br=l(ga,"P",{"data-svelte-h":!0}),$(Br)!=="svelte-oplxpx"&&(Br.textContent=_l),ga.forEach(t),pa.forEach(t),ln=a(e),c(Dt.$$.fragment,e),on=a(e),q=l(e,"DIV",{class:!0});var da=h(q);c(Tt.$$.fragment,da),di=a(da),he=l(da,"DIV",{class:!0});var ua=h(he);c(Et.$$.fragment,ua),ui=a(ua),Jr=l(ua,"P",{"data-svelte-h":!0}),$(Jr)!=="svelte-1mhw2ts"&&(Jr.textContent=bl),ua.forEach(t),da.forEach(t),mn=a(e),c(Nt.$$.fragment,e),cn=a(e),H=l(e,"DIV",{class:!0});var ha=h(H);c(Pt.$$.fragment,ha),hi=a(ha),ve=l(ha,"DIV",{class:!0});var va=h(ve);c(At.$$.fragment,va),vi=a(va),Fr=l(va,"P",{"data-svelte-h":!0}),$(Fr)!=="svelte-g8gp3r"&&(Fr.textContent=xl),va.forEach(t),ha.forEach(t),pn=a(e),c(Rt.$$.fragment,e),gn=a(e),K=l(e,"DIV",{class:!0});var fa=h(K);c(It.$$.fragment,fa),fi=a(fa),M=l(fa,"DIV",{class:!0});var us=h(M);c(jt.$$.fragment,us),$i=a(us),Ur=l(us,"P",{"data-svelte-h":!0}),$(Ur)!=="svelte-1jqxi5a"&&(Ur.textContent=yl),_i=a(us),Or=l(us,"P",{"data-svelte-h":!0}),$(Or)!=="svelte-19u8gji"&&(Or.textContent=Cl),us.forEach(t),fa.forEach(t),dn=a(e),c(St.$$.fragment,e),un=a(e),X=l(e,"DIV",{class:!0});var $a=h(X);c(Vt.$$.fragment,$a),bi=a($a),k=l($a,"DIV",{class:!0});var hs=h(k);c(zt.$$.fragment,hs),xi=a(hs),Gr=l(hs,"P",{"data-svelte-h":!0}),$(Gr)!=="svelte-uuxzaw"&&(Gr.textContent=wl),yi=a(hs),qr=l(hs,"P",{"data-svelte-h":!0}),$(qr)!=="svelte-q9lg1z"&&(qr.textContent=Ll),hs.forEach(t),$a.forEach(t),hn=a(e),c(Bt.$$.fragment,e),vn=a(e),Z=l(e,"DIV",{class:!0});var _a=h(Z);c(Jt.$$.fragment,_a),Ci=a(_a),fe=l(_a,"DIV",{class:!0});var ba=h(fe);c(Ft.$$.fragment,ba),wi=a(ba),Hr=l(ba,"P",{"data-svelte-h":!0}),$(Hr)!=="svelte-1e1teq4"&&(Hr.textContent=Ml),ba.forEach(t),_a.forEach(t),fn=a(e),c(Ut.$$.fragment,e),$n=a(e),Q=l(e,"DIV",{class:!0});var xa=h(Q);c(Ot.$$.fragment,xa),Li=a(xa),$e=l(xa,"DIV",{class:!0});var ya=h($e);c(Gt.$$.fragment,ya),Mi=a(ya),Kr=l(ya,"P",{"data-svelte-h":!0}),$(Kr)!=="svelte-uuy5fu"&&(Kr.textContent=kl),ya.forEach(t),xa.forEach(t),_n=a(e),c(qt.$$.fragment,e),bn=a(e),y=l(e,"DIV",{class:!0});var De=h(y);c(Ht.$$.fragment,De),ki=a(De),_e=l(De,"DIV",{class:!0});var Ca=h(_e);c(Kt.$$.fragment,Ca),Di=a(Ca),Xr=l(Ca,"P",{"data-svelte-h":!0}),$(Xr)!=="svelte-1javkrk"&&(Xr.textContent=Dl),Ca.forEach(t),Ti=a(De),D=l(De,"DIV",{class:!0});var vs=h(D);c(Xt.$$.fragment,vs),Ei=a(vs),Zr=l(vs,"P",{"data-svelte-h":!0}),$(Zr)!=="svelte-1jnlnuh"&&(Zr.textContent=Tl),Ni=a(vs),Qr=l(vs,"P",{"data-svelte-h":!0}),$(Qr)!=="svelte-eunl3r"&&(Qr.textContent=El),vs.forEach(t),Pi=a(De),be=l(De,"DIV",{class:!0});var wa=h(be);c(Zt.$$.fragment,wa),Ai=a(wa),Wr=l(wa,"P",{"data-svelte-h":!0}),$(Wr)!=="svelte-vzqvo7"&&(Wr.textContent=Nl),wa.forEach(t),De.forEach(t),xn=a(e),c(Qt.$$.fragment,e),yn=a(e),c(Wt.$$.fragment,e),Cn=a(e),L=l(e,"DIV",{class:!0});var fs=h(L);c(Yt.$$.fragment,fs),Ri=a(fs),xe=l(fs,"DIV",{class:!0});var La=h(xe);c(er.$$.fragment,La),Ii=a(La),Yr=l(La,"P",{"data-svelte-h":!0}),$(Yr)!=="svelte-1h646w0"&&(Yr.textContent=Pl),La.forEach(t),ji=a(fs),ye=l(fs,"DIV",{class:!0});var Ma=h(ye);c(tr.$$.fragment,Ma),Si=a(Ma),es=l(Ma,"P",{"data-svelte-h":!0}),$(es)!=="svelte-pgp88a"&&(es.innerHTML=Al),Ma.forEach(t),fs.forEach(t),wn=a(e),c(rr.$$.fragment,e),Ln=a(e),W=l(e,"DIV",{class:!0});var ka=h(W);c(sr.$$.fragment,ka),Vi=a(ka),Ce=l(ka,"DIV",{class:!0});var Da=h(Ce);c(nr.$$.fragment,Da),zi=a(Da),ts=l(Da,"P",{"data-svelte-h":!0}),$(ts)!=="svelte-1hstc1o"&&(ts.textContent=Rl),Da.forEach(t),ka.forEach(t),Mn=a(e),c(ar.$$.fragment,e),kn=a(e),Y=l(e,"DIV",{class:!0});var Ta=h(Y);c(ir.$$.fragment,Ta),Bi=a(Ta),we=l(Ta,"DIV",{class:!0});var Ea=h(we);c(lr.$$.fragment,Ea),Ji=a(Ea),rs=l(Ea,"P",{"data-svelte-h":!0}),$(rs)!=="svelte-1hstc1o"&&(rs.textContent=Il),Ea.forEach(t),Ta.forEach(t),Dn=a(e),c(or.$$.fragment,e),Tn=a(e),c(mr.$$.fragment,e),En=a(e),b=l(e,"DIV",{class:!0});var T=h(b);c(cr.$$.fragment,T),Fi=a(T),ss=l(T,"P",{"data-svelte-h":!0}),$(ss)!=="svelte-a8sws7"&&(ss.textContent=jl),Ui=a(T),ns=l(T,"P",{"data-svelte-h":!0}),$(ns)!=="svelte-2785eo"&&(ns.innerHTML=Sl),Oi=a(T),x=l(T,"DIV",{class:!0});var E=h(x);c(pr.$$.fragment,E),Gi=a(E),as=l(E,"P",{"data-svelte-h":!0}),$(as)!=="svelte-zw3fd9"&&(as.textContent=Vl),qi=a(E),is=l(E,"P",{"data-svelte-h":!0}),$(is)!=="svelte-87qcsz"&&(is.textContent=zl),Hi=a(E),ls=l(E,"P",{"data-svelte-h":!0}),$(ls)!=="svelte-11lpom8"&&(ls.textContent=Bl),Ki=a(E),os=l(E,"BLOCKQUOTE",{"data-svelte-h":!0}),$(os)!=="svelte-1rs2dmb"&&(os.innerHTML=Jl),E.forEach(t),Xi=a(T),Le=l(T,"DIV",{class:!0});var Na=h(Le);c(gr.$$.fragment,Na),Zi=a(Na),ms=l(Na,"P",{"data-svelte-h":!0}),$(ms)!=="svelte-tj0p2z"&&(ms.textContent=Fl),Na.forEach(t),T.forEach(t),Nn=a(e),c(dr.$$.fragment,e),Pn=a(e),ur=l(e,"DIV",{class:!0});var ql=h(ur);c(hr.$$.fragment,ql),ql.forEach(t),An=a(e),c(vr.$$.fragment,e),Rn=a(e),ee=l(e,"DIV",{class:!0});var Pa=h(ee);c(fr.$$.fragment,Pa),Qi=a(Pa),Me=l(Pa,"DIV",{class:!0});var Aa=h(Me);c($r.$$.fragment,Aa),Wi=a(Aa),cs=l(Aa,"P",{"data-svelte-h":!0}),$(cs)!=="svelte-4cpcjn"&&(cs.textContent=Ul),Aa.forEach(t),Pa.forEach(t),In=a(e),c(_r.$$.fragment,e),jn=a(e),te=l(e,"DIV",{class:!0});var Ra=h(te);c(br.$$.fragment,Ra),Yi=a(Ra),ke=l(Ra,"DIV",{class:!0});var Ia=h(ke);c(xr.$$.fragment,Ia),el=a(Ia),ps=l(Ia,"P",{"data-svelte-h":!0}),$(ps)!=="svelte-4cpcjn"&&(ps.textContent=Ol),Ia.forEach(t),Ra.forEach(t),Sn=a(e),c(yr.$$.fragment,e),Vn=a(e),_s=l(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(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(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(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(it,C,null),s(C,Xa),s(C,ie),p(lt,ie,null),s(ie,Za),s(ie,Pr),s(C,Qa),s(C,le),p(ot,le,null),s(le,Wa),s(le,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,ei),s(oe,Rr),s(w,ti),s(w,me),p(gt,me,null),s(me,ri),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,si),s(J,ce),p(ht,ce,null),s(ce,ni),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,ai),s(F,pe),p($t,pe,null),s(pe,ii),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,li),s(U,ge),p(xt,ge,null),s(ge,oi),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,mi),s(O,de),p(wt,de,null),s(de,ci),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,pi),s(G,ue),p(kt,ue,null),s(ue,gi),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,di),s(q,he),p(Et,he,null),s(he,ui),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,hi),s(H,ve),p(At,ve,null),s(ve,vi),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,fi),s(K,M),p(jt,M,null),s(M,$i),s(M,Ur),s(M,_i),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,bi),s(X,k),p(zt,k,null),s(k,xi),s(k,Gr),s(k,yi),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,Ci),s(Z,fe),p(Ft,fe,null),s(fe,wi),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,Li),s(Q,$e),p(Gt,$e,null),s($e,Mi),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,ki),s(y,_e),p(Kt,_e,null),s(_e,Di),s(_e,Xr),s(y,Ti),s(y,D),p(Xt,D,null),s(D,Ei),s(D,Zr),s(D,Ni),s(D,Qr),s(y,Pi),s(y,be),p(Zt,be,null),s(be,Ai),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,Ri),s(L,xe),p(er,xe,null),s(xe,Ii),s(xe,Yr),s(L,ji),s(L,ye),p(tr,ye,null),s(ye,Si),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,Vi),s(W,Ce),p(nr,Ce,null),s(Ce,zi),s(Ce,ts),o(e,Mn,r),p(ar,e,r),o(e,kn,r),o(e,Y,r),p(ir,Y,null),s(Y,Bi),s(Y,we),p(lr,we,null),s(we,Ji),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,Fi),s(b,ss),s(b,Ui),s(b,ns),s(b,Oi),s(b,x),p(pr,x,null),s(x,Gi),s(x,as),s(x,qi),s(x,is),s(x,Hi),s(x,ls),s(x,Ki),s(x,os),s(b,Xi),s(b,Le),p(gr,Le,null),s(Le,Zi),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,Qi),s(ee,Me),p($r,Me,null),s(Me,Wi),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,Yi),s(te,ke),p(xr,ke,null),s(ke,el),s(ke,ps),o(e,Sn,r),p(yr,e,r),o(e,Vn,r),o(e,_s,r),zn=!0},p:Kl,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(it.$$.fragment,e),g(lt.$$.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(ir.$$.fragment,e),g(lr.$$.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(it.$$.fragment,e),d(lt.$$.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(ir.$$.fragment,e),d(lr.$$.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(it),u(lt),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(ir),u(lr),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(tl){return Xl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class oo extends Zl{constructor(N){super(),Ql(this,N,so,to,Hl,{})}}export{oo as component};
