{"id":26040259,"url":"https://github.com/alecbytes/rag-chatbot-alec","last_synced_at":"2026-04-27T05:02:08.345Z","repository":{"id":281034091,"uuid":"943974166","full_name":"AlecBytes/rag-chatbot-alec","owner":"AlecBytes","description":"RAG Chatbot - Answers Questions About Alec.","archived":false,"fork":false,"pushed_at":"2025-03-06T16:03:02.000Z","size":674,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:41:33.217Z","etag":null,"topics":["nextjs","openai-api","rag-chatbot","vercel-ai-sdk"],"latest_commit_sha":null,"homepage":"https://alecbytes.com/chatbot","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlecBytes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-06T15:18:45.000Z","updated_at":"2025-03-06T16:03:05.000Z","dependencies_parsed_at":"2025-03-06T16:41:39.684Z","dependency_job_id":"4fbe4c11-62d0-4b7c-b17c-79a603e5b9d9","html_url":"https://github.com/AlecBytes/rag-chatbot-alec","commit_stats":null,"previous_names":["alecbytes/rag-chatbot-alec"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AlecBytes/rag-chatbot-alec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecBytes%2Frag-chatbot-alec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecBytes%2Frag-chatbot-alec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecBytes%2Frag-chatbot-alec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecBytes%2Frag-chatbot-alec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlecBytes","download_url":"https://codeload.github.com/AlecBytes/rag-chatbot-alec/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlecBytes%2Frag-chatbot-alec/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32323215,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","openai-api","rag-chatbot","vercel-ai-sdk"],"created_at":"2025-03-07T12:08:59.063Z","updated_at":"2026-04-27T05:02:08.307Z","avatar_url":"https://github.com/AlecBytes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 **RAG Chatbot - Answers Questions About Alec**\n\n🚀 **Live Demo:** [AlecBytes/chatbot](https://alecbytes.com/chatbot)\n\n📝 Currently building a chatbot that uses retrieval-augmented generation (RAG) to reason and respond with information outside of the model's training data. I kicked things off with a [Vercel AI SDK template](https://vercel.com/templates/next.js/ai-sdk-rag), tweaked the model prompt, and chunked \u0026 embedded my resume info in a vector database. After testing prompt responses on a working prototype, I'm now fine-tuning and adding more information chunks. Next up, I'll re-embed the updated chunks and see how they boost the chatbot’s responses.\n\nIf you're into AI or chatbots, let's connect and share insights!\n\n## ⭐ **Please Star This Project**  ⭐\n\nIf you find this project useful, consider **starring** ⭐ the repo! Your support helps others discover it and motivates further development. Thank you! 🙏  \n\n## 💡 **How it works**\n\n### Store the Context the Model does not have\n\n![alt text](public/readme-images/embed-chunks.png)\n\n### Retrieve stored context similar to query, combine into new query\n\n![alt text](public/readme-images/user-query.png)\n\n## ✨ **Features**\n\n- Information retrieval and addition through tool calls using the [`streamText`](https://sdk.vercel.ai/docs/reference/ai-sdk-core/stream-text) function\n- Real-time streaming of model responses to the frontend using the [`useChat`](https://sdk.vercel.ai/docs/reference/ai-sdk-ui/use-chat) hook\n- Vector embedding storage with [DrizzleORM](https://orm.drizzle.team/) and [PostgreSQL](https://www.postgresql.org/)\n- Animated UI with [Framer Motion](https://www.framer.com/motion/)\n\n## 📷 **Images of the App**\n\n![Image of the chatbot](only-alec.png)\n\n## 💻 **Tech Stack**\n\n### 🎨 Frontend\n\n- [Next.js](https://nextjs.org/) - React framework\n- [Tailwind CSS](https://tailwindcss.com/) - CSS framework\n- [Radix UI](https://www.radix-ui.com/) - Unstyled, accessible components\n- [Framer Motion](https://www.framer.com/motion/) - Animation library\n\n### 🤖 AI/ML\n\n- [Vercel AI SDK](https://sdk.vercel.ai/) - Core AI functionality\n  - [`useChat`](https://sdk.vercel.ai/docs/reference/ai-sdk-ui/use-chat) hook for frontend chat interface\n  - [`streamText`](https://sdk.vercel.ai/docs/reference/ai-sdk-core/stream-text) function for streaming responses\n- [OpenAI API](https://openai.com/) (GPT-4o model)\n\n### 💾 Database\n\n- [PostgreSQL](https://www.postgresql.org/) - Vector database storage\n- [DrizzleORM](https://orm.drizzle.team/) - Database ORM\n\n### 🌍 Deployment\n\n- [Vercel](https://vercel.com/) - Hosting platform\n- [Supabase](https://supabase.com/) - PostgreSQL vector database provider\n\n## 📜 **License**\n\nThis project is **not open-source**, and no license is granted for reuse, modification, or distribution.  \n\nIf you are looking to build a similar chatbot, please refer to the official [Vercel Guide](https://sdk.vercel.ai/docs/guides/rag-chatbot) and its starter code. The modifications in this repository are tailored to my specific needs, and you should create your own custom implementation.\n\n## 🤝 **Credits**\n\nThe starter code and images used in this project are sourced from [Vercel's Guide](https://sdk.vercel.ai/docs/guides/rag-chatbot).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecbytes%2Frag-chatbot-alec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falecbytes%2Frag-chatbot-alec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falecbytes%2Frag-chatbot-alec/lists"}