PageSourceSearch

https://mufti.ai/_next/static/chunks/pages/faqs-f24a659148e1962a.js

js mufti.ai collected 2026-10-05 15:39:52 UTC 6,153 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{3454:function(e,t,n){"use strict";var i,r;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(r=n.g.process)?void 0:r.env)?n.g.process:n(7663)},3830:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/faqs",function(){return n(2406)}])},2406:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var i=n(5893);n(7294);var r=n(2358),s=n(565),o=n.n(s);function a(){return(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)("div",{className:"-top-36 h-[65vh] absolute inset-0 bg-gradient-to-r from-[#36b49f] to-[#DBFF75] opacity-40 [mask-image:radial-gradient(farthest-side_at_top,white,transparent)] ",children:(0,i.jsxs)("svg",{"aria-hidden":"true",className:"absolute inset-x-0 inset-y-[-50%] h-[200%] w-full skew-y-[-18deg] fill-black/40 stroke-black/50 mix-blend-overlay dark:fill-white/2.5 dark:stroke-white/5",children:[(0,i.jsx)("defs",{children:(0,i.jsx)("pattern",{id:":r3t:",width:"72",height:"56",patternUnits:"userSpaceOnUse",x:"-12",y:"4",children:(0,i.jsx)("path",{d:"M.5 56V.5H72",fill:"none"})})}),(0,i.jsx)("rect",{width:"100%",height:"100%",strokeWidth:"0",fill:"url(#:r3t:)"}),(0,i.jsxs)("svg",{x:"-12",y:"4",className:"overflow-visible",children:[(0,i.jsx)("rect",{strokeWidth:"0",width:"73",height:"57",x:"288",y:"168"}),(0,i.jsx)("rect",{strokeWidth:"0",width:"73",height:"57",x:"144",y:"56"}),(0,i.jsx)("rect",{strokeWidth:"0",width:"73",height:"57",x:"504",y:"168"}),(0,i.jsx)("rect",{strokeWidth:"0",width:"73",height:"57",x:"720",y:"336"})]})]})}),(0,i.jsxs)("div",{className:"max-w-2xl px-4 mx-auto md:px-0",children:[(0,i.jsx)("h1",{className:(0,r.AK)("mt-8 text-center text-4xl md:text-6xl font-black text-gray-800 leading-tight",o().className),children:"Frequently Asked Questions"}),(0,i.jsx)("div",{className:"h-6"}),(0,i.jsxs)("div",{className:"mt-5",children:[(0,i.jsx)("div",{children:(0,i.jsx)("b",{children:"What is Mufti.ai?"})}),(0,i.jsx)("div",{className:"mt-2",children:"Mufti.ai is a search engine for Mufti Menk‘s videos. It‘s a side project of mine, and I‘m not affiliated with Mufti Menk or his team in any way."})]}),(0,i.jsxs)("div",{className:"mt-5",children:[(0,i.jsx)("div",{children:(0,i.jsx)("b",{children:"Who built this?"})}),(0,i.jsxs)("div",{className:"mt-2",children:["Name‘s"," ",(0,i.jsx)("a",{href:"https://twitter.com/yazinsai",className:"underline text-zinc-500",children:"Yazin"})," ","\uD83D\uDC4B. I‘ m a software engineer from Bahrain, and I‘m building a new AI tool each weekend. This was the 2nd project on my list! Follow me"," ",(0,i.jsx)("a",{href:"https://twitter.com/yazinsai",className:"underline text-zinc-500",children:"on Twitter"})," ","to learn more."]})]}),(0,i.jsxs)("div",{className:"mt-5",children:[(0,i.jsx)("div",{children:(0,i.jsx)("b",{children:"How does it work?"})}),(0,i.jsxs)("div",{className:"mt-2",children:["Mufti Menk‘s videos are hosted on YouTube. Mufti.ai uses the YouTube API to fetch the videos, and then transcribes them using OpenAI‘s Whisper."," "]}),(0,i.jsx)("div",{className:"mt-2",children:"Next, we generate embeddings for each video using Sentence Transformers. We then use these embeddings to calculate the similarity between the query and the videos."}),(0,i.jsx)("div",{className:"mt-2",children:"The answer is generated using OpenAI Completions, feeding the question and the top 5 most similar videos as context. Hope that‘s helpful!"})]}),(0,i.jsx)("div",{className:"h-6"})]})]})}},2358:function(e,t,n){"use strict";var i;async function r(e,t){let n=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok)throw Error("Error fetching data from ".concat(e,": ").concat(n.statusText));let i=await n.json();return i}function s(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}n.d(t,{AK:function(){return s},ZV:function(){return r}}),(i||(i={})).DAVINCI_TURBO="gpt-3.5-turbo",n(3454)},565:function(e){e.exports={style:{fontFamily:"'__Inter_68028e', '__Inter_Fallback_68028e'",fontStyle:"normal"},className:"__className_68028e"}},7663:function(e){!function(){var t={229:function(e){var t,n,i,r=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}
1catch(e){t=s}try{n="function"==typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var c=[],l=!1,u=-1;function h(){l&&i&&(l=!1,i.length?c=i.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=a(h);l=!0;for(var t=c.length;t;){for(i=c,c=[];++u<t;)i&&i[u].run();u=-1,t=c.length}i=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||l||a(d)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw Error("process.chdir is not supported")},r.umask=function(){return 0}}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var s=n[e]={exports:{}},o=!0;try{t[e](s,s.exports,i),o=!1}finally{o&&delete n[e]}return s.exports}i.ab="//";var r=i(229);e.exports=r}()}},function(e){e.O(0,[774,888,179],function(){return e(e.s=3830)}),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.