Inspiration
In today's fast-paced digital world, developers and businesses need quick access to AI-powered solutions without the hassle of managing infrastructure. Google Cloud Run provides the perfect platform for serverless deployment, and combining it with Gemini API creates a powerful, scalable AI assistant.
What it does
AI Query Assistant is a serverless web application that:
- Accepts natural language queries from users
- Processes them using Google's Gemini 1.5 Flash model
- Returns intelligent, contextual responses
- Maintains query history for reference
- Runs entirely on Google Cloud Run without any server management
How we built it
Backend:
- FastAPI framework for high-performance REST API
- Google Generative AI SDK for Gemini API integration
- Containerized with Docker for Cloud Run deployment
Deployment:
- Dockerized application
- Deployed on Google Cloud Run (serverless platform)
- Environment variables for API key management
- Auto-scaling based on traffic
Frontend:
- Modern, responsive HTML/CSS/JavaScript interface
- Real-time query processing
- Query history tracking
- Clean, intuitive user experience
Challenges we ran into
- Optimizing cold start times for Cloud Run containers
- Managing API rate limits for Gemini API
- Implementing efficient query history storage
- Ensuring responsive UI during AI processing
Accomplishments that we're proud of
- Created a fully functional serverless AI assistant
- Achieved seamless integration with Google Gemini API
- Implemented clean, production-ready code architecture
- Zero infrastructure management required
- Beautiful, user-friendly interface
What we learned
- Google Cloud Run deployment best practices
- Gemini API capabilities and limitations
- Serverless architecture patterns
- Container optimization techniques
- FastAPI performance optimization
What's next for AI Query Assistant
- Add Firestore for persistent storage
- Implement user authentication
- Multi-language support
- Advanced query analytics
- Integration with more Google AI services
- Voice input support

Log in or sign up for Devpost to join the conversation.