A gallery that showcases on-device ML/GenAI use cases and allows people to try and use models locally.
Find a file
google-labs-jules[bot] 010601f4ad feat: Implement personal offline chat app features (Phase 1 & 2 initiation)
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.
2025-06-02 09:46:28 +00:00
.github Create android.yml 2025-06-02 17:47:56 +09:00
Android feat: Implement personal offline chat app features (Phase 1 & 2 initiation) 2025-06-02 09:46:28 +00:00
.gitignore Initial checkin 2025-04-14 16:42:40 -07:00
CONTRIBUTING.md Initial checkin 2025-04-14 16:42:40 -07:00
LICENSE Initial checkin 2025-04-14 16:42:40 -07:00
model_allowlist.json Update model_allowlist.json 2025-05-21 11:18:17 -07:00
README.md Update README.md 2025-05-20 09:54:03 -07:00

Google AI Edge Gallery

License GitHub release (latest by date)

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 Overview

Ask Image Ask Image

Prompt Lab Prompt Lab

AI Chat 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!

  1. Download the App: Grab the latest APK.
  2. 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!

📄 License

Licensed under the Apache License, Version 2.0. See the LICENSE file for details.