{"id":18185329,"url":"https://github.com/dphenomenal101/rag-chatbot","last_synced_at":"2025-04-09T20:14:41.320Z","repository":{"id":259435576,"uuid":"877812394","full_name":"Dphenomenal101/rag-chatbot","owner":"Dphenomenal101","description":"An open-source template for building a RAG chatbot for your company 🤖","archived":false,"fork":false,"pushed_at":"2024-11-22T20:14:13.000Z","size":1807,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T20:14:31.849Z","etag":null,"topics":["ai","chatbot","chatgpt","claude-3-5-sonnet","gpt-4","groq","llama","nextjs","rag","rag-chatbot","shadcn-ui","template","vercel"],"latest_commit_sha":null,"homepage":"https://ragie.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dphenomenal101.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-10-24T09:33:30.000Z","updated_at":"2025-03-16T10:09:16.000Z","dependencies_parsed_at":"2024-10-25T11:12:33.712Z","dependency_job_id":"369b2ba9-754f-4da6-b4c3-1dfbee2bfbb6","html_url":"https://github.com/Dphenomenal101/rag-chatbot","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":"0.21212121212121215","last_synced_commit":"2fdfa42805e5c9ba262b6db544c74b8c8c38f513"},"previous_names":["dphenomenal101/rag-chatbot"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dphenomenal101%2Frag-chatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dphenomenal101%2Frag-chatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dphenomenal101%2Frag-chatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dphenomenal101%2Frag-chatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dphenomenal101","download_url":"https://codeload.github.com/Dphenomenal101/rag-chatbot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103872,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","chatbot","chatgpt","claude-3-5-sonnet","gpt-4","groq","llama","nextjs","rag","rag-chatbot","shadcn-ui","template","vercel"],"created_at":"2024-11-02T23:00:27.631Z","updated_at":"2025-04-09T20:14:41.280Z","avatar_url":"https://github.com/Dphenomenal101.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://ragie.vercel.app/\"\u003e\n  \u003cimg alt=\"RAG Chatbot\" src=\"https://github.com/user-attachments/assets/aff4ec02-882f-4f21-b8d3-a02b1d4d298b\"\u003e\n  \u003ch1 align=\"center\"\u003eRAG Chatbot\u003c/h1\u003e\n\u003c/a\u003e\n\n\n\u003cp align=\"center\"\u003e\n  An Open-Source RAG Chatbot Template Built With Ragie, Next.js, and the AI SDK by Vercel.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003e\u003cstrong\u003eFeatures\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#model-providers\"\u003e\u003cstrong\u003eModel Providers\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#deploy-your-own\"\u003e\u003cstrong\u003eDeploy Your Own\u003c/strong\u003e\u003c/a\u003e ·\n  \u003ca href=\"#running-locally\"\u003e\u003cstrong\u003eRunning locally\u003c/strong\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cbr/\u003e\n\n## Features\n- [Ragie.ai](https://ragie.ai/?utm_source=rag-chatbot)\n  - Fully Managed RAG-as-a-service Platform for Developers \n- [Next.js](https://nextjs.org) App Router\n  - Advanced routing for seamless navigation and performance\n  - React Server Components (RSCs) and Server Actions for server-side rendering and increased performance\n- [AI SDK](https://sdk.vercel.ai/docs)\n  - Unified API for generating text, structured objects, and tool calls with LLMs\n  - Hooks for building dynamic chat and generative user interfaces\n  - Supports OpenAI (default), Anthropic, Cohere, and other model providers\n- [shadcn/ui](https://ui.shadcn.com)\n  - Styling with [Tailwind CSS](https://tailwindcss.com)\n  - Component primitives from [Radix UI](https://radix-ui.com) for accessibility and flexibility\n- Data Persistence\n  - [Vercel Postgres powered by Neon](https://vercel.com/storage/postgres) for saving chat history and user data\n  - [Vercel Blob](https://vercel.com/storage/blob) for efficient file storage\n- [NextAuth.js](https://github.com/nextauthjs/next-auth)\n  - Simple and secure authentication\n\n## Model Providers\n\nThis template ships with OpenAI `GPT4-o` as the default. However, with the [AI SDK](https://sdk.vercel.ai/docs), you can switch LLM providers to [OpenAI](https://openai.com), [Anthropic](https://anthropic.com), [Cohere](https://cohere.com/), and [many more](https://sdk.vercel.ai/providers/ai-sdk-providers) with just a few lines of code.\n\n## Deploy Your Own\n\nYou can deploy your own version of the Next.js AI Chatbot to Vercel with one click:\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FDphenomenal101%2Frag-chatbot\u0026env=RAGIE_API_KEY,OPENAI_API_KEY,POSTGRES_URL,AUTH_SECRET\u0026project-name=ragie-chatbot\u0026repository-name=ragie-chatbot)\n\n## Running locally\n\nYou will need to use the environment variables [defined in `.env.example`](.env.example) to run Next.js AI Chatbot. It's recommended you use [Vercel Environment Variables](https://vercel.com/docs/projects/environment-variables) for this, but a `.env` file is all that is necessary.\n\n\u003e Note: You should not commit your `.env` file or it will expose secrets that will allow others to control access to your various OpenAI and authentication provider accounts.\n\n1. Install Vercel CLI: `npm i -g vercel`\n2. Link local instance with Vercel and GitHub accounts (creates `.vercel` directory): `vercel link`\n3. Download your environment variables: `vercel env pull`\n\n```bash\npnpm install\npnpm dev\n```\n\nYour app template should now be running on [localhost:3000](http://localhost:3000/).\n\nBy default, the Chatbot acts as an HR/People Ops assistant designed to help onboard new employees at PostHog. It was trained using their open-source [Handbook](https://posthog.com/handbook), you can adjust the system prompt and customize the RAG Chatbot for any use-case.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphenomenal101%2Frag-chatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdphenomenal101%2Frag-chatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdphenomenal101%2Frag-chatbot/lists"}