Nimma-Guru
Community Mentorship Directory Powered by Google Gemini 2.0 Flash
// 01. THE PROBLEM
Students in non-metropolitan towns struggle to find verified local mentors for career guidance, technical skills, and academic prep due to rigid directory filters.
// 02. SYSTEM ARCHITECTURE & PIPELINE FLOW
Voice & Natural Text Query Ingestion
Accepts student query in multi-dialect natural language via voice or text.
Gemini 2.0 Flash Intent Extraction
Passes natural input through Gemini 2.0 Flash to extract JSON intent schema (domain, language, urgency).
Firebase Repository Intent Query
Queries mentor database using structured intent parameters.
Material 3 Compose UI Cards
Renders verified mentor profiles with one-tap connect options.
// 03. TECHNICAL APPROACH & DECISION MATRIX
01Google Gemini 2.0 Flash Integration
Gemini 2.0 Flash Structured Output Parsing
Conversational query extraction allowed students to search naturally ("someone who can teach me coding in Kannada") rather than selecting rigid UI dropdowns.
Static SQL Tag Filters
Required students to know precise keywords and missed conversational intent.
// 04. CORE ARCHITECTURAL LOGIC
Gemini 2.0 Flash natural language query extraction for Android mentor search.
12345678910suspend fun findMentorMatches(studentQuery: String): List<MentorProfile> { val generativeModel = Firebase.ai.generativeModel("gemini-2.0-flash") val prompt = """ Extract domain skills, language preference, and intent from query: "$studentQuery". Respond in JSON schema: {"skills": [], "language": "", "urgency": ""} """.trimIndent() val response = generativeModel.generateContent(prompt) val parsedIntent = jsonDecoder.decodeFromString<SearchIntent>(response.text!!) return mentorRepository.queryMentorsByIntent(parsedIntent) }
// 05. TRADE-OFFS & HONEST REFLECTION
Cloud AI inference requires active network access, but unlocked rich conversational multi-dialect search capability.