Logo Lanfrica

Ndala-K-Abigail-Corp/CropSense

Domain:

agriculture

Record type:

software
Creator:
Nda
Host:
RAG WEB APP # 🌱 CropSense - Agricultural Guidance Platform CropSense is an AI-powered agricultural guidance platform that provides farmers with evidence-based answers to their farming questions using RAG (Retrieval-Augmented Generation) technology. ## πŸ“‹ Table of Contents - Overview - Architecture - Tech Stack - Project Structure - Getting Started - Development - Deployment - Documentation ## 🎯 Overview CropSense combines trusted agricultural resources with advanced AI to deliver: - **Context-aware answers** grounded in verified agricultural documents - **Source citations** for every response - **Mobile-friendly** chat interface - **Real-time** query processing ## πŸ—οΈ Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Web App β”‚ β”‚ (React+Vite) β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Firebase β”‚ β”‚ Auth+Hosting β”‚ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Functions │────▢│ RAG Backend β”‚ β”‚ (Node.js) β”‚ β”‚ (FastAPI) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Vertex AI β”‚ β”‚ Embeddings + β”‚ β”‚ Gemini β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ## πŸ› οΈ Tech Stack ### Frontend - **React 18** - UI library - **Vite** - Build tool - **TypeScript** - Type safety - **Tailwind CSS** - Styling - **Framer Motion** - Animations - **React Router** - Navigation - **TanStack Query** - Data fetching - **React Hook Form + Zod** - Form handling ### Backend - **Firebase** - Auth, Hosting, Firestore, Functions - **FastAPI** (Python) - RAG backend - **Vertex AI** - Embeddings & Generation - **Firestore** - Vector storage (MVP) ### Tooling - **PNPM** - Package manager - **ESLint + Prettier** - Code quality - **Vitest** - Testing - **GitHub Actions** - CI/CD ## πŸ“ Project Structure ``` . β”œβ”€β”€ apps/ β”‚ └── web/ # React frontend application β”‚ β”œβ”€β”€ src/ β”‚ β”‚ β”œβ”€β”€ components/ # React components β”‚ β”‚ β”‚ β”œβ”€β”€ ui/ # Base UI components β”‚ β”‚ β”‚ └── layouts/ # Layout components β”‚ β”‚ β”œβ”€β”€ pages/ # Page co …