Behind the Scenes of a Self-Evolving AI: The Architecture of Tian AI Ever wondered what it takes to build an AI system that doesn't just process queries but actually grows, learns, and improves itself? This post takes you inside the architecture of Tian AI β an open-source local AI system that runs entirely on Android. No cloud. No APIs. Just code, a local language model, and a 34GB knowledge base. The Big Picture Tian AI's architecture is built around a simple insight: a small model + good architecture + local knowledge > large model alone. ββββββββββββββββββββββββββββββββββββββββββββββββ β Web/Mobile UI β ββββββββββββββββββββββββββββββββββββββββββββββββ€ β Flask API Layer β ββββββββββββββ¬ββββββββββββ¬ββββββββββ¬ββββββββββββ€ β Thinker β Memory β Search β Evolve β β Engine β System β Engine β Engine β ββββββββββββββ΄ββββββββββββ΄ββββββββββ΄ββββββββββββ€ β LLM Bridge (llama.cpp API) β ββββββββββββββββββββββββββββββββββββββββββββββββ€ β Knowledge Base (34GB SQLite) β βββββββββββββββββββββββββββββββββββββββββββββββββ¦