Commit graph

61 commits

Author SHA1 Message Date
Spica910
5dbda9e39b
Merge 010601f4ad into ebb605131d 2025-06-02 10:38:54 +00:00
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
Spica910
3c8d6ae14d
Create android.yml 2025-06-02 17:47:56 +09:00
Jing Jin
ebb605131d - Try to limit the image size taken by the camera in ask image task 2025-05-22 16:51:22 -07:00
Jing Jin
61ee4fd5d7 - Fix some potential memory leak in image capture sheet. 2025-05-22 16:37:30 -07:00
Yasir Modak
707d5f0c81
Update feature_request.md 2025-05-22 12:49:30 -07:00
Yasir Modak
43f942555b
Update bug_report.md 2025-05-22 12:48:18 -07:00
Yasir Modak
d627a6bb12
Update support_request.md 2025-05-22 12:47:35 -07:00
Yasir Modak
28bcb4d38c
Create support_request.md 2025-05-22 12:45:57 -07:00
Yasir Modak
c47f8e381a
Update feature_request.md 2025-05-22 12:36:32 -07:00
Yasir Modak
69daf0bf18
Update bug_report.md 2025-05-22 12:35:43 -07:00
Jing Jin
517f220d1b - Use camerax to implement image capture in-app instead of using the native camera app to reduce the possibility of app being killed due to GPU OOM.
- Show accelerator name in chat message sender labels.
- Attach download workers with silent foreground notifications to make them less likely to be killed.
- Update app icon to be consistent with Google style.
- Bump up version to 1.0.2.
2025-05-21 17:34:39 -07:00
Yasir Modak
f50d065575
Update issue templates 2025-05-21 14:13:22 -07:00
Yasir Modak
83a3a042d7
Merge pull request #9 from google-ai-edge/revert-5-ymodak-patch-1
Revert "Create bug_report.yml"
2025-05-21 14:12:11 -07:00
Yasir Modak
35e79353f3
Revert "Create bug_report.yml" 2025-05-21 14:11:57 -07:00
Yasir Modak
0d5942de6b
Merge pull request #8 from google-ai-edge/revert-6-ymodak-patch-2
Revert "Create feature_request.yml"
2025-05-21 14:06:38 -07:00
Yasir Modak
6f7e7236c1
Revert "Create feature_request.yml" 2025-05-21 14:06:15 -07:00
Jing Jin
f9cab2f06d - Improve UX
- Fix a bug related to LLM inference engine cleanup.
2025-05-21 12:36:57 -07:00
Jing Jin
b1aa6511dd
Merge pull request #6 from google-ai-edge/ymodak-patch-2
Create feature_request.yml
2025-05-21 11:35:04 -07:00
Yasir Modak
ab5816d668
Create feature_request.yml
Creating feature request template for incoming issues
2025-05-21 11:32:56 -07:00
Jing Jin
0d0e609cc3
Merge pull request #5 from google-ai-edge/ymodak-patch-1
Create bug_report.yml
2025-05-21 11:32:36 -07:00
Yasir Modak
0d255cff96
Create bug_report.yml
Creating a bug template for incoming issues
2025-05-21 11:29:40 -07:00
Jing Jin
71e5e9da42
Update model_allowlist.json 2025-05-21 11:18:17 -07:00
Jing Jin
d6d40b16f7
Update model_allowlist.json 2025-05-21 11:15:21 -07:00
Jing Jin
965d5705f0
Update model_allowlist.json 2025-05-21 09:43:37 -07:00
Jing Jin
ec463c7897
Update model_allowlist.json 2025-05-21 09:33:14 -07:00
Jing Jin
513f9f92e1
Update README.md 2025-05-20 09:54:03 -07:00
Jing Jin
e2de386c6c
Update model_allowlist.json 2025-05-20 09:32:05 -07:00
Jing Jin
b8afe01e76 Bump version 2025-05-20 09:24:47 -07:00
Jing Jin
eff2c62276 Better image viewer 2025-05-19 22:59:10 -07:00
Jing Jin
0b67ccce1a Fix a download resume bug. 2025-05-19 20:23:05 -07:00
Jing Jin
6785ad881a Bump version 2025-05-19 17:02:53 -07:00
Jing Jin
96f838b550 Update package to com.google.ai.edge.gallery 2025-05-19 16:59:37 -07:00
Jing Jin
7d567c3499 - Fix a bug where deleting a local model when there are >1 local models shows the wrong download status.
- Don't go back to model selection screen automatically when there is an error during model initialization, so that users have a chance to change model parameters (e.g. accelerator) to retry the initialization.
- Show error dialog properly in prompt lab screen.
2025-05-19 14:46:06 -07:00
Jing Jin
e53acf6065
Update README.md 2025-05-19 14:15:35 -07:00
Jing Jin
1c31b598f8
Update README.md 2025-05-19 14:11:27 -07:00
Jing Jin
73f7dfeb63
Update README.md 2025-05-19 14:02:15 -07:00
Jing Jin
e89fd9a23b - Better text formatting on home screen for smaller screen.
- Set default backend based on the order of "accelerators" field in model allowlist
2025-05-19 11:44:00 -07:00
Jing Jin
4d0c570d34
Update model_allowlist.json 2025-05-19 11:32:13 -07:00
Jing Jin
9544b8ddcc Re-enable image pickers when config is changed, and other UI bug fixes. 2025-05-19 11:08:03 -07:00
Jing Jin
0f5142e67e Bump version 2025-05-18 17:28:34 -07:00
Jing Jin
e7dda4b4ad Save the loaded model allowlist to a local file so that it can be read when the allowlist cannot be loaded from internet.
Also improve the image clipping transitioning from full image back to the image thumbnail in chat ui.
2025-05-18 17:26:31 -07:00
Jing Jin
3495b7cf6e
Update model_allowlist.json 2025-05-17 15:30:41 -07:00
Jing Jin
37a58d1a41 Various bug fixes. 2025-05-17 15:12:12 -07:00
Jing Jin
0c49efc054
Update README.md 2025-05-17 15:10:06 -07:00
Jing Jin
6aa6c751bd
Create model_allowlist.json 2025-05-17 15:07:15 -07:00
Jing Jin
bedc488a15 Add support for image to text models 2025-05-16 00:17:24 -07:00
Jing Jin
ef290cd7b0 Add initial support for model allowlist, and stop generating response. 2025-05-15 00:31:45 -07:00
Jing Jin
f9f1d71b38 Update tasks and models. 2025-04-28 16:49:03 -07:00
Jing Jin
d0beaab31e Better support for sliding to change model 2025-04-27 18:59:01 -07:00