Buckets:
| import{s as pt,o as ct,n as bt}from"../chunks/scheduler.ddb4e551.js";import{S as $t,i as wt,g as r,s as l,r as m,B as vt,h as o,f as n,c as i,j as ut,u,x as f,k as ht,y as yt,a,v as h,d as p,t as c,w as b}from"../chunks/index.e16e4efa.js";import{T as Tt}from"../chunks/Tip.20abb04f.js";import{H as j,E as _t}from"../chunks/index.e108c5ed.js";function xt(Q){let s,$='For more details about the <code>table-question-answering</code> task, check out its <a href="https://huggingface.co/tasks/table-question-answering" rel="nofollow">dedicated page</a>! You will find examples and related materials.';return{c(){s=r("p"),s.innerHTML=$},l(d){s=o(d,"P",{"data-svelte-h":!0}),f(s)!=="svelte-hnlsr0"&&(s.innerHTML=$)},m(d,R){a(d,s,R)},p:bt,d(d){d&&n(s)}}}function qt(Q){let s,$,d,R,w,S,v,at="Table Question Answering (Table QA) is the answering a question about an information on a given table.",G,g,O,y,U,T,lt='<li><a href="https://huggingface.co/microsoft/tapex-base" rel="nofollow">microsoft/tapex-base</a>: A table question answering model that is capable of neural SQL execution, i.e., employ TAPEX to execute a SQL query on a given table.</li> <li><a href="https://huggingface.co/google/tapas-base-finetuned-wtq" rel="nofollow">google/tapas-base-finetuned-wtq</a>: A robust table question answering model.</li>',z,_,it='Explore all available models and find the one that suits you best <a href="https://huggingface.co/models?inference=warm&pipeline_tag=table-question-answering&sort=trending" rel="nofollow">here</a>.',D,x,F,q,st="No snippet available for this task.",Y,A,N,P,W,L,rt='<thead><tr><th align="left">Payload</th> <th align="left"></th> <th align="left"></th></tr></thead> <tbody><tr><td align="left"><strong>inputs*</strong></td> <td align="left"><em>object</em></td> <td align="left">One (table, question) pair to answer</td></tr> <tr><td align="left"><strong> table*</strong></td> <td align="left"><em>object</em></td> <td align="left">The table to serve as context for the questions</td></tr> <tr><td align="left"><strong> question*</strong></td> <td align="left"><em>string</em></td> <td align="left">The question to be answered about the table</td></tr> <tr><td align="left"><strong>parameters</strong></td> <td align="left"><em>object</em></td> <td align="left"></td></tr> <tr><td align="left"><strong> padding</strong></td> <td align="left"><em>enum</em></td> <td align="left">Possible values: do_not_pad, longest, max_length.</td></tr> <tr><td align="left"><strong> sequential</strong></td> <td align="left"><em>boolean</em></td> <td align="left">Whether to do inference sequentially or as a batch. Batching is faster, but models like SQA require the inference to be done sequentially to extract relations within sequences, given their conversational nature.</td></tr> <tr><td align="left"><strong> truncation</strong></td> <td align="left"><em>boolean</em></td> <td align="left">Activates and controls truncation.</td></tr></tbody>',X,H,ot="Some options can be configured by passing headers to the Inference API. Here are the available headers:",J,C,dt='<thead><tr><th align="left">Headers</th> <th align="left"></th> <th align="left"></th></tr></thead> <tbody><tr><td align="left"><strong>authorization</strong></td> <td align="left"><em>string</em></td> <td align="left">Authentication header in the form <code>'Bearer: hf_****'</code> when <code>hf_****</code> is a personal user access token with Inference API permission. You can generate one from <a href="https://huggingface.co/settings/tokens" rel="nofollow">your settings page</a>.</td></tr> <tr><td align="left"><strong>x-use-cache</strong></td> <td align="left"><em>boolean, default to <code>true</code></em></td> <td align="left">There is a cache layer on the inference API to speed up requests we have already seen. Most models can use those results as they are deterministic (meaning the outputs will be the same anyway). However, if you use a nondeterministic model, you can set this parameter to prevent the caching mechanism from being used, resulting in a real new query. Read more about caching <a href="../parameters#caching%5D">here</a>.</td></tr> <tr><td align="left"><strong>x-wait-for-model</strong></td> <td align="left"><em>boolean, default to <code>false</code></em></td> <td align="left">If the model is not ready, wait for it instead of receiving 503. It limits the number of requests required to get your inference done. It is advised to only set this flag to true after receiving a 503 error, as it will limit hanging in your application to known places. Read more about model availability <a href="../overview#eligibility%5D">here</a>.</td></tr></tbody>',K,M,ft='For more information about Inference API headers, check out the parameters <a href="../parameters">guide</a>.',V,I,Z,k,gt='<thead><tr><th align="left">Body</th> <th align="left"></th> <th align="left"></th></tr></thead> <tbody><tr><td align="left"><strong>(array)</strong></td> <td align="left"><em>object[]</em></td> <td align="left">Output is an array of objects.</td></tr> <tr><td align="left"><strong> answer</strong></td> <td align="left"><em>string</em></td> <td align="left">The answer of the question given the table. If there is an aggregator, the answer will be preceded by <code>AGGREGATOR ></code>.</td></tr> <tr><td align="left"><strong> coordinates</strong></td> <td align="left"><em>array[]</em></td> <td align="left">Coordinates of the cells of the answers.</td></tr> <tr><td align="left"><strong> cells</strong></td> <td align="left"><em>string[]</em></td> <td align="left">List of strings made up of the answer cell values.</td></tr> <tr><td align="left"><strong> aggregator</strong></td> <td align="left"><em>string</em></td> <td align="left">If the model has an aggregator, this returns the aggregator.</td></tr></tbody>',tt,E,et,B,nt;return w=new j({props:{title:"Table Question Answering",local:"table-question-answering",headingTag:"h2"}}),g=new Tt({props:{$$slots:{default:[xt]},$$scope:{ctx:Q}}}),y=new j({props:{title:"Recommended models",local:"recommended-models",headingTag:"h3"}}),x=new j({props:{title:"Using the API",local:"using-the-api",headingTag:"h3"}}),A=new j({props:{title:"API specification",local:"api-specification",headingTag:"h3"}}),P=new j({props:{title:"Request",local:"request",headingTag:"h4"}}),I=new j({props:{title:"Response",local:"response",headingTag:"h4"}}),E=new _t({props:{source:"https://github.com/huggingface/hub-docs/blob/main/docs/inference-providers/tasks/table-question-answering.md"}}),{c(){s=r("meta"),$=l(),d=r("p"),R=l(),m(w.$$.fragment),S=l(),v=r("p"),v.textContent=at,G=l(),m(g.$$.fragment),O=l(),m(y.$$.fragment),U=l(),T=r("ul"),T.innerHTML=lt,z=l(),_=r("p"),_.innerHTML=it,D=l(),m(x.$$.fragment),F=l(),q=r("p"),q.textContent=st,Y=l(),m(A.$$.fragment),N=l(),m(P.$$.fragment),W=l(),L=r("table"),L.innerHTML=rt,X=l(),H=r("p"),H.textContent=ot,J=l(),C=r("table"),C.innerHTML=dt,K=l(),M=r("p"),M.innerHTML=ft,V=l(),m(I.$$.fragment),Z=l(),k=r("table"),k.innerHTML=gt,tt=l(),m(E.$$.fragment),et=l(),B=r("p"),this.h()},l(t){const e=vt("svelte-u9bgzb",document.head);s=o(e,"META",{name:!0,content:!0}),e.forEach(n),$=i(t),d=o(t,"P",{}),ut(d).forEach(n),R=i(t),u(w.$$.fragment,t),S=i(t),v=o(t,"P",{"data-svelte-h":!0}),f(v)!=="svelte-1h902ra"&&(v.textContent=at),G=i(t),u(g.$$.fragment,t),O=i(t),u(y.$$.fragment,t),U=i(t),T=o(t,"UL",{"data-svelte-h":!0}),f(T)!=="svelte-1jox8hm"&&(T.innerHTML=lt),z=i(t),_=o(t,"P",{"data-svelte-h":!0}),f(_)!=="svelte-1hakgjj"&&(_.innerHTML=it),D=i(t),u(x.$$.fragment,t),F=i(t),q=o(t,"P",{"data-svelte-h":!0}),f(q)!=="svelte-1kehkb7"&&(q.textContent=st),Y=i(t),u(A.$$.fragment,t),N=i(t),u(P.$$.fragment,t),W=i(t),L=o(t,"TABLE",{"data-svelte-h":!0}),f(L)!=="svelte-11w5q36"&&(L.innerHTML=rt),X=i(t),H=o(t,"P",{"data-svelte-h":!0}),f(H)!=="svelte-xa4wks"&&(H.textContent=ot),J=i(t),C=o(t,"TABLE",{"data-svelte-h":!0}),f(C)!=="svelte-2rfiu7"&&(C.innerHTML=dt),K=i(t),M=o(t,"P",{"data-svelte-h":!0}),f(M)!=="svelte-1ps9cb1"&&(M.innerHTML=ft),V=i(t),u(I.$$.fragment,t),Z=i(t),k=o(t,"TABLE",{"data-svelte-h":!0}),f(k)!=="svelte-1u8ol55"&&(k.innerHTML=gt),tt=i(t),u(E.$$.fragment,t),et=i(t),B=o(t,"P",{}),ut(B).forEach(n),this.h()},h(){ht(s,"name","hf:doc:metadata"),ht(s,"content",At)},m(t,e){yt(document.head,s),a(t,$,e),a(t,d,e),a(t,R,e),h(w,t,e),a(t,S,e),a(t,v,e),a(t,G,e),h(g,t,e),a(t,O,e),h(y,t,e),a(t,U,e),a(t,T,e),a(t,z,e),a(t,_,e),a(t,D,e),h(x,t,e),a(t,F,e),a(t,q,e),a(t,Y,e),h(A,t,e),a(t,N,e),h(P,t,e),a(t,W,e),a(t,L,e),a(t,X,e),a(t,H,e),a(t,J,e),a(t,C,e),a(t,K,e),a(t,M,e),a(t,V,e),h(I,t,e),a(t,Z,e),a(t,k,e),a(t,tt,e),h(E,t,e),a(t,et,e),a(t,B,e),nt=!0},p(t,[e]){const mt={};e&2&&(mt.$$scope={dirty:e,ctx:t}),g.$set(mt)},i(t){nt||(p(w.$$.fragment,t),p(g.$$.fragment,t),p(y.$$.fragment,t),p(x.$$.fragment,t),p(A.$$.fragment,t),p(P.$$.fragment,t),p(I.$$.fragment,t),p(E.$$.fragment,t),nt=!0)},o(t){c(w.$$.fragment,t),c(g.$$.fragment,t),c(y.$$.fragment,t),c(x.$$.fragment,t),c(A.$$.fragment,t),c(P.$$.fragment,t),c(I.$$.fragment,t),c(E.$$.fragment,t),nt=!1},d(t){t&&(n($),n(d),n(R),n(S),n(v),n(G),n(O),n(U),n(T),n(z),n(_),n(D),n(F),n(q),n(Y),n(N),n(W),n(L),n(X),n(H),n(J),n(C),n(K),n(M),n(V),n(Z),n(k),n(tt),n(et),n(B)),n(s),b(w,t),b(g,t),b(y,t),b(x,t),b(A,t),b(P,t),b(I,t),b(E,t)}}}const At='{"title":"Table Question Answering","local":"table-question-answering","sections":[{"title":"Recommended models","local":"recommended-models","sections":[],"depth":3},{"title":"Using the API","local":"using-the-api","sections":[],"depth":3},{"title":"API specification","local":"api-specification","sections":[{"title":"Request","local":"request","sections":[],"depth":4},{"title":"Response","local":"response","sections":[],"depth":4}],"depth":3}],"depth":2}';function Pt(Q){return ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class It extends $t{constructor(s){super(),wt(this,s,Pt,qt,pt,{})}}export{It as component}; | |
Xet Storage Details
- Size:
- 10 kB
- Xet hash:
- 2100079ccd270410786750142647c2f66f71b37427e97b466a139a1ac154325c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.