{"id":26552030,"url":"https://github.com/bhavya-dang/formulamind","last_synced_at":"2025-03-22T08:23:20.978Z","repository":{"id":283740064,"uuid":"952755379","full_name":"bhavya-dang/FormulaMind","owner":"bhavya-dang","description":"A RAG chat app for Formula One.","archived":false,"fork":false,"pushed_at":"2025-03-21T21:21:36.000Z","size":557,"stargazers_count":0,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-21T22:22:58.077Z","etag":null,"topics":["ai","astradb","f1","gemini","langchain","nextjs","puppeteer","rag","tailwindcss","xenova-transformers"],"latest_commit_sha":null,"homepage":"https://formulamind.vercel.app","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/bhavya-dang.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":"2025-03-21T20:30:07.000Z","updated_at":"2025-03-21T21:21:39.000Z","dependencies_parsed_at":"2025-03-21T22:23:04.239Z","dependency_job_id":"efeeeffe-68d7-4cd9-b976-73a4ebce22a5","html_url":"https://github.com/bhavya-dang/FormulaMind","commit_stats":null,"previous_names":["bhavya-dang/formulamind"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-dang%2FFormulaMind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-dang%2FFormulaMind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-dang%2FFormulaMind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bhavya-dang%2FFormulaMind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bhavya-dang","download_url":"https://codeload.github.com/bhavya-dang/FormulaMind/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244926834,"owners_count":20533201,"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","astradb","f1","gemini","langchain","nextjs","puppeteer","rag","tailwindcss","xenova-transformers"],"created_at":"2025-03-22T08:23:20.319Z","updated_at":"2025-03-22T08:23:20.972Z","avatar_url":"https://github.com/bhavya-dang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FormulaMind\n\n\u003e Your AI-powered Formula 1 Companion\n\nFormulaMind is a Retrieval-Augmented Generation (RAG) chatbot focused on Formula 1 racing. The application provides an interactive way to learn about F1 history, statistics, and current events by intelligently retrieving and synthesizing information from its knowledge base.\n\n![FormulaMind1](./public/scrnsht1.png)\n![FormulaMind2](./public/scrnsht2.png)\n\n\u003e _This app is still under development and a lot of features are yet to be fully functional._\n\n## Access Control\n\nAs I am using my own API keys, I have added access control to the app to prevent misuse. You can set your own access key using the `NEXT_PUBLIC_ACCESS_KEY` environment variable.\n\n## Tech Stack\n\n- **Frontend**\n\n  - Next.js 14 (React)\n  - TypeScript\n  - Tailwind CSS\n  - Lucide Icons\n  - Vercel (Deployment)\n\n- **Backend \u0026 AI**\n  - Gemini 2.0 Flash Lite API (OpenRouter)\n  - Astra DB (Vector Database)\n  - LangChain\n  - Xenova Transformers (Text Embeddings)\n  - Puppeteer (Web Scraping)\n\n## Live Demo\n\nVisit [formulamind.vercel.app](https://formulamind.vercel.app) to try the live version. But, it is recommended to run the app locally as it my needs access key.\n\n## Features\n\n- AI-powered F1 knowledge base\n- Access control with a secret key\n- Dark/Light mode support\n- Interactive chat interface\n- Responsive design for all devices (WIP)\n- Real-time message streaming\n- Message editing and regeneration\n- Copy message functionality\n- Command system with suggestions\n- Modern, clean UI with smooth animations\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 18.x or later\n- npm or yarn package manager\n- OpenRouter API key\n\n### Local Setup\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/bhavya-dang/FormulaMind.git\n   cd FormulaMind\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   # or\n   yarn install\n   ```\n\n3. Create a `.env.local` file in the root directory with the following variables:\n\n   ```env\n   AI_API_KEY=your_api_key_here\n   ASTRA_DB_NAMESPACE=\"default_keyspace\" # do not change this\n   ASTRA_DB_COLLECTION=your_collection_name_here\n   ASTRA_DB_TOKEN=your_db_token_here\n   ASTRA_DB_ENDPOINT_URL=your_astra_db_endpoint_url_here\n   NEXT_PUBLIC_ACCESS_KEY=your_access_key_here\n   ```\n\n4. Run the development server:\n\n   ```bash\n   npm run dev\n   # or\n   yarn dev\n   ```\n\n5. Open [http://localhost:3000](http://localhost:3000) in your browser.\n6. Login with the access key.\n7. Only share the access key with trusted individuals.\n\n## Command System\n\nThe app includes a command system that can be accessed by typing '@' in the input field:\n\n- `@help` - Shows available commands\n- `@clear` - Clears the chat history\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the repository\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## Support\n\nIf you encounter any issues or have questions, please open an issue in the GitHub repository.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavya-dang%2Fformulamind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbhavya-dang%2Fformulamind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbhavya-dang%2Fformulamind/lists"}