慣性聚合 高效追讀感興趣之博客、新聞、科技資訊
閱原文 以慣性聚合開啟

推薦訂閱源

云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
IT之家
IT之家
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
The Register - Security
The Register - Security
C
Cyber Attacks, Cyber Crime and Cyber Security
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
Know Your Adversary
Know Your Adversary
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
WordPress大学
WordPress大学
C
CXSECURITY Database RSS Feed - CXSecurity.com
F
Fox-IT International blog
C
Cybersecurity and Infrastructure Security Agency CISA
P
Privacy & Cybersecurity Law Blog
雷峰网
雷峰网
大猫的无限游戏
大猫的无限游戏
F
Future of Privacy Forum
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Recorded Future
Recorded Future
P
Proofpoint News Feed
O
OpenAI News
C
CERT Recently Published Vulnerability Notes
E
Exploit-DB.com RSS Feed
Spread Privacy
Spread Privacy
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
罗磊的独立博客
V
V2EX - 技术
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
N
Netflix TechBlog - Medium
AWS News Blog
AWS News Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
李成银的技术随笔
C
Cisco Blogs
SecWiki News
SecWiki News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
L
LINUX DO - 热门话题
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
Latest news
Latest news
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
J
Java Code Geeks

DEV Community

apt-mark hold doesn't pin versions — how it nearly removed OpenSSH across our fleet Getting Started with AWS — A Beginner Friendly Introduction I Built a Free Metal Weight Calculator — Here's the Math Behind It From Half Baked Repos to GitHub Glory: How I Am Finishing My Ambitious Ten App Masterpiece Everyone's Talking About Gemini 3.5 Flash. The Real Story at Google I/O 2026 Was a Skill File. Enhancing the AI Blog System: SQLite Support and Streamlined Publishing Features I Fine-Tuned Gemma 4 on an Emotion Dataset Using a Single GPU Omnichannel inventory in D365: DOM + the Inventory Add-in File-Drop Automations: SFMC Pattern for Daily Imports Regression Testing in Agile: How to Test Without Slowing Down Your Sprints I build projects and manage teams without a single call Making a Calculator UI with HTML5 and CSS3 Full Next.js + Node.js + PostgreSQL Interview Task Setup Google’s Gemini Coding Demos Revealed the Slow Death of “Blank Page Programming” Verification Activity: SFMC Guard Against Empty Files Integrating Shopify with external systems: MVP connection choices Beyond RAG: Architecting Local Long-Context Pipelines with Gemma 4's 31B Dense Model KloudAudit vs AWS Cost Explorer: Why I Stopped Using Cost Explorer for Waste Detection Telegram: API bot access token Gemma 4 at the Edge AasPass: A lightweight, local-first password vault for developers Why Local AI Was the Real Winner of Google I/O 2026 (An Insider’s Take) Laravel Google Drive Filesystem: Unlimited Cloud Storage with Familiar Syntax When not to build an AI agent (and what to ship instead) What a real Sanity CMS development services proposal looks like Why hybrid search is the boring default we keep recommending I kept improving my .NET order pipeline after a CTO left feedback. Here is where it ended up. Why Developers go behind Linux ? Does Front End need HTML, CSS? - Part - 2 From Prompts to Action: What Gemini 3.5 Flash and the Agentic Stack Mean for Developers Does Front End need HTML, CSS? - Part - 1 The real attack surface for AI coding agents is the config file Chai aur SQL — A Beginner's Journey into Databases Find Your Route Source Score: Continuing Exploration of LLM Usage in Automated Workflows Tried using the Claude Platform on AWS Your Node.js Server is Using Just One CPU. Here's How to Fix It. 🚀 Google Antigravity 2.0 Quietly Changes What It Means to Be a Software Engineer Environment variables vs connection references in Power Platform Multi-BU D365 environment: single tenant, multiple LEs AI API Integration Testing Checklist for Multi-Model Apps ORA-00203 오류 원인과 해결 방법 완벽 가이드 Designing a Data Extension in SFMC: The Four Decisions First Kayrol — Day 0: Building AI highlight reels for athletes (in public) The Agony of Over-Engineered Operators: Why Simplicity Saved Our Treasure Hunt Engine Business Rules vs Power Automate vs Plugin: pick one Dataverse virtual tables on SQL: three latency patterns Comunicación y sincronización entre procesos distribuidos I let Gemma 4 analyze my credit card statements so I wouldn't have to Faithfulness gate: the agent layer most teams skip
Aasa:终得察之机也
naveen g · 2026-05-24 · via DEV Community

此乃投献于Gemma四挑战:以Gemma四构建

吾所筑也

阿萨首声为要,独居长者之安全伴侣,以地为本此全然运行于类Pixel之Android手机,以Gemma 4于设备内行对话之推理。

此物本于二零二二年同行评审之研(Kwan & Tam, IJERPH)而成,该研察四十七位独居贫老。其所惧非死,乃"吾死而无人觉耶?"。Aasa之设,意在终觉此忧,而弗夺耆老之自主。

具体而言,Aasa 处理:

  • 日心之动&养生之检: 每日候一击、一语、一谈。若晨寂无声,则备之与可信赖之友相会。未尝自作主张而发。
  • 文牍閱讀器(多模態):以镜指医院之账单、官府之文书,或诈骗之信函。机内之文字识别,将图像之文呈于Gemma四,其复:辨其为何物,询其所求,虑其可忧,忽其可置。其页恒留案上。
  • 医术镜(多模态):摄药片之列;OCR与Gemma四合,制保守之安全收据,示重复剂量之警于地药之录。
  • :药之根依与之忆"Did I take my medicine today?"读自室之数据库行,非自模型之幻生。家族之实(“阿尼亚之诞辰在五月十二”)存于地。
  • :诈术與詐騙之盾:以謙和之辭,示急迫之徵、贈卡之請、勿告親族之兆。
  • 安全之緩急,待確認而後定——"I cannot breathe"備一ACTION_DIAL之卡。長者猶叩門。Aasa未持CALL_PHONE
  • 行動之盾& 秋季初筛:简于机内传感之检。信其能,非断其疾.
  • 晨间简报:康联可用则启,诚如"示用数据—未连可穿戴"丸,不可用则否.

诸功能之核则:智备援手。耆者核之.

示用

📺 三分钟提交视频(标准剪辑): [https://www.youtube.com/watch?v=_5nvdQms7d4]

代码

🔗 GitHub: https://github.com/navng0405/aasa **

仓库布局:

aasa/
├── Aasa/                    # Active Android app (Kotlin, Compose, Room, LiteRT-LM)
├── aasa-gemma-server/       # Optional Mac FastAPI→Ollama dev fallback bridge
├── AasaGemmaBridgePoc/      # Legacy PoC, not active
└── AASA_PROJECT_OVERVIEW.md # Full architecture + demo doc

进入全屏模式 退出全屏模式

审阅者之要径:

  • agent/AgentOrchestrator.kt每回合一记录;运行确定性安全覆盖其前也信模型。
  • model/GemmaRouter.kt+model/OnDeviceGemmaRunner.kt— LiteRT-LM 之融合;设备上默认启用。
  • model/OnDevicePromptBuilder.kt— 严苛之JSON契约,模型必当返(工具,意图,风险等级,参数,助手响应)。
  • tools/ — 十三器,皆不能呼、书、警;惟返ToolResult之载,UI呈为可认之牌。
  • document/DocumentReaderAnalyzer.kt & medicine/MedicineLensAnalyzer.kt — 多模识文,继Gemma之理。

欲行:

cd Aasa
./gradlew :app:installDebug
# Side-load the model (not bundled in APK):
adb push gemma-4-E2B-it.litertlm \
  /sdcard/Android/data/com.aasa.eldercare/files/models/

入全屏式 出全屏式

模:gemma-4-E2B-it.litertlmlitert-community/gemma-4-E2B-it-litert-lm

吾如何用Gemma 4

所择之模也Gemma 4 E2B(小尺寸,约2B有效参数)

驰骋于LiteRT-LM 0.11.0于安卓,侧载之如.litertlm器物,或备有FastAPI→Ollama之Mac桥,唯供开发者应急之用。

何故E2B为是此任之器

简牍之问,求意有所向之模择。为耆老之安伴,其决非难——E2B惟诚择耳,其理在此:

器之需 所迫于模 E2B何以契合
独居老者之机,乃最不可恃于网之时。夜半九时遇骗局,凌晨三点坠地伤,周日医院账单至——此皆不容云程迂回,亦不待网路修通。 必行也绝离网络于类Pixel之器上,无降级回退之径。 E2B专为“超移动、边缘及浏览器部署(如Pixel)”而设。若用31B密集型或26B混合专家模型,则需服务器,此将破坏全部信任之模。
个人医疗、家族及诈骗信息之数据,永不得离设备。此非营销之辞,乃老者之女可荐此应用之由。 推论须在持房之器上为之. E2B适于Pixel 4a/6a之内存与热力之限。用户之账单影,孙女之诞辰,诈欺之短讯——无一触服务器.
迟滞当若对谈,非若诘问.耆老弃暂停之应用。 市井之器,速达二秒内,首得之迟。 E2B于此机上成之。若更增Gemma 4之变,则非置服务器(破律一)即致本地推论不可用之缓。
此模乃对话之形;定规于地之安。Aasa之AgentOrchestrator,以关键词易之,于前。 模型之行,发于跌、诈、药、急语。 模型需精于意、器、声之择,非医非律也。 E2B之能,非止于此:一可发结构化JSON之令,二可书温言平语之复,三可总括OCR所识之文。吾辈无须31B之广知,盖安全之实存于定序之码与Room中。
能通多态文书/药理,而无需送图于云。 小模足以配于机ML Kit OCR,犹能秒内应之。 E2B于本地处理 OCR 提取之文理。其流程为:目镜 → ML Kit 在机 OCR → E2B 在机推理 → 安全收据。图像永不离手机。

Gemma 4 实际于代码中所为

Gemma 4 E2B 每次皆行 真实、负重之务

  1. 意旨 + 工具定向。 老者直言其不适(言弱而药失),则Gemma发JSON之象,具intentriskLeveltoolargumentsassistantResponse,此乃决13器之用何行。
  2. 调声也。 艾莎之音——静和,不责,未尝断言——自杰玛之应答文出,受制于提示契约于OnDevicePromptBuilder.kt
  3. 文卷与医理之思。 毕尔或药条经ML Kit识读,杰玛四产四节之要,(其为何物/其求何事/所忧何在/可忽何物)。)及药安收据。
  4. 诈骗模式说明。定数之关键词扫描,可察赠卡/紧迫之语;Gemma 4以谦恭之辞释之故长者得闻而不耻。
  5. 同伴应之。长老云“今日孤寂”,则Gemma 4以温言相慰,呈可信之联系人卡,然未尝自遣之。

E2B所启

择最微之Gemma 4变体,非折中之道也——实乃启约束之能是故Aasa得立三诺,非大模所能为也。

  1. 可施于长者既存之器.无须赘器,无涉云帐,无费月订.
  2. 数据永驻家中.医事之境,家忆之痕,诈言之讯,未尝离器。此乃其物.
  3. 昧旦三时,无待Wi-Fi,亦可施为.独居长者,此实为唯一要务之境。

诚然之限

  • 此模型也侧载经由adb,非于应用内下载(黑客松范围)。
  • 吾用之JSON之prompt-engineered非本土约束之工,而择器相呼——此乃有意权衡,使同契之示能适于机中行者,亦能合于选配之Mac桥。
  • 定域规则之必然超然安全要旨之辞令,若Gemma言"低风险",而用户称"吾不能呼吸",则地方法规得胜。此乃设计本意,非权宜之计也。

接地研究:关,C.& 潘和昌(Tam, H. C.)著(2022年),《吾若殁而无人觉耶?——香港独居且贫困之长者健康福祉之质性研究》,载《国际环境研究与公共卫生杂志》第19卷第23期,第15856页。 PMID 36497930。