# Building On-Device AI Agents on Android with Google ADK -- Part 4: Local RAG on Android -- Storing...

DevFeed: [Building On-Device AI Agents on Android with Google ADK -- Part 4: Local RAG on Android -- Storing...](<https://devfeed.tech/articles/building-on-device-ai-agents-on-android-with-google-adk-part-4-local-rag-on-android-storing-63036.md>)

Original publisher: [Read original article](<https://medium.com/google-developer-experts/building-on-device-ai-agents-on-android-with-google-adk-part-4-local-rag-on-android-storing-6f6d8947899d?source=rss----a67bd6fa7d58---4>)

Author: Pankaj Rai

Published: 2026-10-01T02:31:58Z

Content type: article

Language: en

Sources: [Google Developer Experts](<https://devfeed.tech/sources/google-developer-experts-medium.md>)

Topics: [Local AI](<https://devfeed.tech/topics/local-ai.md>), [Vectors & LLMs](<https://devfeed.tech/topics/vectors-llms.md>), [google-adk](<https://devfeed.tech/topics/google-adk.md>)

Tags: [adk](<https://devfeed.tech/tags/adk.md>), [ai](<https://devfeed.tech/tags/ai.md>), [android](<https://devfeed.tech/tags/android.md>), [database](<https://devfeed.tech/tags/database.md>), [memory](<https://devfeed.tech/tags/memory.md>), [on-device](<https://devfeed.tech/tags/on-device.md>), [rag](<https://devfeed.tech/tags/rag.md>), [retrieval-augmented-generation](<https://devfeed.tech/tags/retrieval-augmented-generation.md>), [room-database](<https://devfeed.tech/tags/room-database.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

## AI overview

The excerpt explains why an on-device agent should retrieve relevant information instead of placing a user's entire history in the prompt: limited context budgets, prefill latency on mobile CPUs, and irrelevant notes can impair responses. It proposes storing notes in a local Room SQLite database for Retrieval-Augmented Generation, but the excerpt ends before describing how retrieval works.

## Source excerpt

Combine Google ADK with Android's Room database to give your on-device agent permanent memory and local Retrieval-Augmented Generation. Continue reading on Google Developer Experts "