A starter kit to build *local-only* AI apps that cost $0 to run -- starting with document Q&A. Written in Javascript
A starter kit to build *local-only* AI apps that cost $0 to run -- starting with document Q&A. Written in Javascript
Make it possible for anyone to run a simple AI app that can do document Q&A 100% locally without having to swipe a credit card . Based on AI Starter Kit.
Have questions? Join AI Stack devs and find me in #local-ai-stack channel.
Fork the repo to your Github account, then run the following command to clone the repo:
git clone [email protected]:[YOUR_GITHUB_ACCOUNT_NAME]/local-ai-stack.gitcd local-ai-stack
npm installInstructions are here
brew install supabase/tap/supabaseMake sure you are under /local-ai-stack directory and run:
supabase startcp .env.local.example .env.localThen get SUPABASE_PRIVATE_KEY by running
supabase statusCopy service_role key and save it as SUPABASE_PRIVATE_KEY in .env.local
node src/scripts/indexBlogLocal.mjsThis script takes in all files from /blogs, generate embeddings using transformers.js, and store embeddings as well as metadata in Supabase.
Now you are ready to test out the app locally! To do this, simply run npm run dev under the project root and visit http://localhost:3000.
If you want to take the local-only app to the next level, feel free to follow instructions on AI Starter Kit for using Clerk, Pinecone/Supabase, OpenAI, Replicate and other cloud-based vendors.
No open issues yet, or sync has not completed.