Skip to content

Spyder2024/Election-Education-Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Election-Education-Agent

CivicGuide: Your Intelligent Election Assistant 🗳️

🎯 Chosen Vertical

Civic Tech & Democratic Engagement. CivicGuide is a dynamic, AI-powered assistant designed to demystify the election process, making voter registration, polling timelines, and civic duties easy to understand.

🧠 Approach and Logic

The application utilizes an Agentic Workflow built with Python, FastAPI, and LangGraph. Instead of a standard chatbot, the system uses semantic routing:

  1. Intent Recognition: User queries are analyzed using the Gemini API.
  2. Dynamic Routing: LangGraph routes the query to the appropriate sub-agent (Timeline Expert, Registration Guide, or Polling Locator).
  3. Contextual Response: The frontend dynamically updates, displaying conversational text alongside visual timeline markers or Google Maps data.

⚙️ How the Solution Works

  • Frontend: A lightweight, highly accessible HTML/JS interface that ensures zero bloat.
  • Backend: FastAPI handles asynchronous requests to prevent UI blocking.
  • Google Services: Deeply integrated with the Gemini API for natural language understanding and generation, and Google Maps for spatial polling data.

🔒 Assumptions & Focus Areas

  • Security: API keys are managed via environment variables (not committed to the repo). Inputs are sanitized on the backend.
  • Accessibility: The UI utilizes high-contrast dark mode, ARIA labels, and semantic HTML for screen readers.
  • Efficiency: The total repository size is kept strictly under 10MB by avoiding heavy node modules or frontend frameworks.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors