mirror of
https://github.com/google-ai-edge/gallery.git
synced 2025-07-17 19:56:41 -04:00
A gallery that showcases on-device ML/GenAI use cases and allows people to try and use models locally.
This commit introduces a comprehensive set of features to transform the AI Edge Gallery into a personalized offline chat application. Phase 1: Core Offline Chat Functionality - Data Structures: Defined UserProfile, Persona, ChatMessage, Conversation, and UserDocument to model application data. - DataStoreRepository: Enhanced to manage persistence for all new data models, including encryption for UserProfile and local storage for conversations, personas, and user documents. Default personas are now also localized. - UI for Personal Information: Added a screen for you to input and edit your CV/resume details (name, summary, skills, experience). - Feature Removal: Streamlined the app by removing the "Ask Image" and "Prompt Lab" features to focus on chat. - UI for Persona Management: Implemented UI for creating, editing, deleting, and selecting an active persona to guide AI responses. - Core Chat Logic & UI: - Refactored LlmChatViewModel and LlmChatScreen. - Supports starting new conversations with an optional custom system prompt. - Integrates active persona and user profile summary into LLM context. - Manages conversations (saving messages, title, timestamps, model used, persona used). - Conversation History UI: Added a screen to view, open, and delete past conversations. - Localization: Implemented localization for English and Korean for all new user-facing strings and default personas. Phase 2: Document Handling (Started) - UserDocument data class defined for managing imported files. - DataStoreRepository updated to support CRUD operations for UserDocuments. The application now provides a personalized chat experience with features for managing user identity, AI personas, and conversation history, all designed for offline use. Further document handling, monetization, and cloud sync features are planned for subsequent phases. |
||
---|---|---|
.github | ||
Android | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
model_allowlist.json | ||
README.md |
Google AI Edge Gallery ✨
Explore, Experience, and Evaluate the Future of On-Device Generative AI with Google AI Edge.
The Google AI Edge Gallery is an experimental app that puts the power of cutting-edge Generative AI models directly into your hands, running entirely on your Android (available now) and iOS (coming soon) devices. Dive into a world of creative and practical AI use cases, all running locally, without needing an internet connection once the model is loaded. Experiment with different models, chat, ask questions with images, explore prompts, and more!
Overview
Ask Image
Prompt Lab
AI Chat
✨ Core Features
- 📱 Run Locally, Fully Offline: Experience the magic of GenAI without an internet connection. All processing happens directly on your device.
- 🤖 Choose Your Model: Easily switch between different models from Hugging Face and compare their performance.
- 🖼️ Ask Image: Upload an image and ask questions about it. Get descriptions, solve problems, or identify objects.
- ✍️ Prompt Lab: Summarize, rewrite, generate code, or use freeform prompts to explore single-turn LLM use cases.
- 💬 AI Chat: Engage in multi-turn conversations.
- 📊 Performance Insights: Real-time benchmarks (TTFT, decode speed, latency).
- 🧩 Bring Your Own Model: Test your local LiteRT
.task
models. - 🔗 Developer Resources: Quick links to model cards and source code.
🏁 Get Started in Minutes!
- Download the App: Grab the latest APK.
- Install & Explore: For detailed installation instructions (including for corporate devices) and a full user guide, head over to our Project Wiki!
🛠️ Technology Highlights
- Google AI Edge: Core APIs and tools for on-device ML.
- LiteRT: Lightweight runtime for optimized model execution.
- LLM Inference API: Powering on-device Large Language Models.
- Hugging Face Integration: For model discovery and download.
🤝 Feedback
This is an experimental Alpha release, and your input is crucial!
- 🐞 Found a bug? Report it here!
- 💡 Have an idea? Suggest a feature!
📄 License
Licensed under the Apache License, Version 2.0. See the LICENSE file for details.