const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./FTvwzCka2.js","./DrKWWDpL.js","./DsQIgu-4.js"])))=>i.map(i=>d[i]);
import{n as e,t}from"./DsQIgu-4.js";import"./Ouh6Dj2I2.js";e();var n=`Xenova/all-MiniLM-L6-v2`,r=null,i=!1;async function a(){if(i)return;let{pipeline:e}=await t(async()=>{let{pipeline:e}=await import(`./FTvwzCka2.js`);return{pipeline:e}},__vite__mapDeps([0,1,2]),import.meta.url);r=await e(`feature-extraction`,n),i=!0}var o=class{dimensions=384;isAvailable(){return i}async embed(e){await a();let t=await r(e,{pooling:`mean`,normalize:!0});return Float32Array.from(t.data)}async embedBatch(e){await a();let t=[];for(let n of e){let e=await r(n,{pooling:`mean`,normalize:!0});t.push(Float32Array.from(e.data))}return t}};export{o as LocalEmbeddingProvider};