{"id":28497050,"url":"https://github.com/akdevv/ai-rag","last_synced_at":"2025-09-03T03:34:30.136Z","repository":{"id":290565685,"uuid":"973300985","full_name":"akdevv/ai-rag","owner":"akdevv","description":"Simple Retrieval-Augmented Generation (RAG) system.","archived":false,"fork":false,"pushed_at":"2025-05-01T04:36:04.000Z","size":163,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-02T21:38:53.046Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akdevv.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,"zenodo":null}},"created_at":"2025-04-26T17:36:51.000Z","updated_at":"2025-05-07T20:44:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"2b260bb0-1508-4863-8d51-f26a6d820747","html_url":"https://github.com/akdevv/ai-rag","commit_stats":null,"previous_names":["akdevv/ai-rag"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akdevv/ai-rag","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akdevv%2Fai-rag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akdevv%2Fai-rag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akdevv%2Fai-rag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akdevv%2Fai-rag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akdevv","download_url":"https://codeload.github.com/akdevv/ai-rag/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akdevv%2Fai-rag/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273385596,"owners_count":25096118,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"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":[],"created_at":"2025-06-08T12:32:11.329Z","updated_at":"2025-09-03T03:34:30.126Z","avatar_url":"https://github.com/akdevv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI RAG (Retrieval-Augmented Generation) Application\n\nThis is a Next.js-based application that implements a Retrieval-Augmented Generation (RAG) system, allowing users to upload documents and interact with them through a chat interface. The application uses Ollama for embeddings and Groq AI for generating responses.\n\n## Features\n\n- Document Upload: Support for PDF, DOCX, and TXT files\n- Real-time Chat Interface: Interactive chat with your documents\n- Memory Storage: Efficient storage and retrieval of document embeddings\n- Streaming Responses: Real-time AI responses\n- Modern UI: Responsive design with loading states and error handling\n\n## Prerequisites\n\nBefore running this project, you need to have the following installed:\n\n- Node.js (v18 or higher)\n- pnpm (Package Manager)\n- Ollama (for local embeddings)\n\n## Local Setup\n\n### 1. Install Ollama and Required Models\n\n```bash\n# Install Ollama\ncurl -fsSL https://ollama.com/install.sh | sh\n\n# Install required models\nollama pull mistral\nollama pull nomic-embed-text\n```\n\n### 2. Clone and Install Dependencies\n\n```bash\n# Clone the repository\ngit clone \u003crepository-url\u003e\ncd ai-rag\n\n# Install dependencies\npnpm install\n```\n\n### 3. Environment Setup\n\nCreate a `.env.local` file in the root directory with the following variables:\n\n```env\nGROQ_API_KEY=your_groq_api_key\n```\n\n### 4. Run the Development Server\n\n```bash\n# Start the development server\npnpm dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000) with your browser to see the application.\n\n## Project Structure\n\n- `/app`: Next.js application code\n- `/components`: Reusable UI components\n- `/services`: Backend services and utilities\n- `/api`: API routes for file processing and chat\n- `/context`: Global state management\n\n## Technology Stack\n\n- **Frontend**: Next.js, TypeScript, Tailwind CSS\n- **AI/ML**: Ollama (embeddings), Groq AI (response generation)\n- **Storage**: In-memory storage for embeddings\n- **Development**: pnpm, ESLint, Prettier\n\n## Learn More\n\nTo learn more about the technologies used in this project:\n\n- [Next.js Documentation](https://nextjs.org/docs)\n- [Ollama Documentation](https://ollama.ai/docs)\n- [Groq AI Documentation](https://groq.com/docs)\n\n## Deployment\n\nThe easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template\u0026filter=next.js\u0026utm_source=create-next-app\u0026utm_campaign=create-next-app-readme) from the creators of Next.js.\n\nCheck out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakdevv%2Fai-rag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakdevv%2Fai-rag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakdevv%2Fai-rag/lists"}