aumontzey8765 / few-shot-agent-ts
PublicTypeScript few-shot learning for LLM agents: semantic example retrieval, SQLite/Postgres stores, Vercel AI SDK.
A TypeScript framework for creating AI agents that learn specific tasks from a small set of input-output examples using similarity-based retrieval to build adaptive prompts.
How It Works
You find a helpful kit that lets an AI learn new tasks just by showing it a few examples, like teaching a smart assistant tricks without long training.
You grab the kit and prepare it quickly on your machine so it's ready to use.
You link it to a thinking service so the AI can understand and generate responses.
You share a handful of real input-and-output pairs for your task, like 'question: answer' demos, and it remembers them smartly.
You pick chatting directly with it or turning it into a helper service others can use over the web.
You hand it fresh inputs similar to your examples, and it pulls the best matches to craft perfect replies.
Your assistant nails new tasks using only your few examples, saving time and getting smarter with each success.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.