Aeru: Enhanced Apple Intelligence
An intelligent iOS application that combines Retrieval-Augmented Generation (RAG) and Web Search functions to provide contextually aware AI responses.
Aeru is a powerful iOS app that leverages Appleβs FoundationModels framework to deliver intelligent responses by searching both local knowledge bases and real-time web content. Built with SwiftUI and optimized for iOS, it provides a seamless chat interface for enhanced AI interactions.
π¨π½βπ» Demo Video
π± TestFlight Download
- Must use an Apple Intelligence activated device
- Latest version of iOS 26 Beta (Dev Beta 5β¦
Aeru: Enhanced Apple Intelligence
An intelligent iOS application that combines Retrieval-Augmented Generation (RAG) and Web Search functions to provide contextually aware AI responses.
Aeru is a powerful iOS app that leverages Appleβs FoundationModels framework to deliver intelligent responses by searching both local knowledge bases and real-time web content. Built with SwiftUI and optimized for iOS, it provides a seamless chat interface for enhanced AI interactions.
π¨π½βπ» Demo Video
π± TestFlight Download
- Must use an Apple Intelligence activated device
- Latest version of iOS 26 Beta (Dev Beta 5, Public Beta 2)
π¬ Discord Community
β¨ Features
π§ Dual Intelligence Sources
- RAG System: Search through local vector databases for relevant context
- Web Search: Real-time web scraping via DuckDuckGo for up-to-date information
π Advanced AI Capabilities
- Apple FoundationModels: Native integration with Appleβs language models
- Vector Embeddings: Semantic search using NaturalLanguage framework
- Streaming Responses: Real-time response generation with live updates
- Context Awareness: Maintains conversation history for coherent interactions
π» Native iOS Experience
- SwiftUI Interface: Modern, responsive design optimized for iOS
- Chat Sidebar: Organized conversation management
- Keyboard Shortcuts: Efficient navigation and interaction
- Document Processing: Support for various file formats in the knowledge base
π§ Technical Excellence
- Vector Database: SVDB integration for efficient similarity search
- Web Scraping: SwiftSoup for clean content extraction
- Rate Limiting: Respectful web scraping with built-in delays
- Error Handling: Robust error management and graceful degradation
π Installation
Prerequisites
- iPhone 15 Pro or higher end model REQUIRED
- iOS 26.0 DEV 5/PUBLIC BETA 2 REQUIRED+
- Xcode 16.0+
- Swift 6+
Setup Instructions
Clone the Repository
git clone https://github.com/yourusername/aeru.git
cd aeru
Open in Xcode
open ../Aeru.xcodeproj
Install Dependencies Dependencies are automatically managed through Xcodeβs built-in Swift Package Manager integration. The following packages will be resolved automatically:
- SVDB: Vector database operations
- SwiftSoup: HTML parsing and content extraction
- FoundationModels: Appleβs language model framework
- NaturalLanguage: Text embeddings and processing
- Accelerate: High-performance vector operations
Build and Run
- Press
Cmd+Ror click the play button in Xcode - The app will launch with the main chat interface
π¦ Usage
Basic Chat Interface
- Start a Conversation: Type your question in the input field
- Choose Search Mode:
- Use RAG for queries about your local knowledge base
- Use web search for current events and real-time information
- View Responses: Watch as responses stream in real-time
- Manage Conversations: Use the sidebar to organize multiple chat sessions
RAG (Local Knowledge Base)
- Add Documents: Process documents into the vector database
- Semantic Search: Find relevant content using natural language queries
- Context Integration: Retrieved content enhances AI responses
Web Search
- Real-time Results: Get current information from the web
- Smart Scraping: Clean content extraction from top search results
- Source Attribution: Responses include source information
π Architecture
Core Components
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β AeruView.swift β β LLM.swift β β RAGModel.swift β
β (UI Layer) βββββΊβ (Orchestrator) βββββΊβ (Vector DB) β
βββββββββββββββββββ βββββββββββββββββββ βββββββββββββββββββ
β
βΌ
βββββββββββββββββββ
βWebSearchService β
β (Web Scraping) β
βββββββββββββββββββ
Data Flow
- User Input β AeruView captures user queries
- Query Processing β LLM class determines search strategy
- Context Retrieval β RAGModel searches vector database OR WebSearchService scrapes web
- AI Generation β FoundationModels generates contextual responses
- UI Updates β Streaming responses update the interface in real-time
Key Technologies
- SwiftUI: Reactive UI framework
- Combine: Reactive programming for data flow
- FoundationModels: Appleβs ML framework
- Vector Embeddings: NaturalLanguage + Accelerate
- Web Scraping: URLSession + SwiftSoup
π€ Contributing
We welcome contributions! Hereβs how you can help:
Development Setup
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and test thoroughly
- Commit with clear messages:
git commit -m 'Add amazing feature' - Push to your branch:
git push origin feature/amazing-feature - Open a Pull Request
Code Standards
- Follow Swift API Design Guidelines
- Use SwiftUI best practices
- Include unit tests for new functionality
- Maintain documentation for public APIs
- Ensure Xcode builds without warnings
Areas for Contribution
- π Bug Fixes: Help improve stability
- β¨ Features: Add new capabilities
- π Documentation: Improve guides and examples
- π§ͺ Testing: Expand test coverage
- π¨ UI/UX: Enhance user experience
Wishlist Updates
- π€ MCP Server Support: Create curated list of MCP Servers to connect and use on-device
- π€ Voice Mode: Enable voice mode to interact with the AI hands free
π License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
π Acknowledgments
- Apple: For FoundationModels and NaturalLanguage frameworks
- SVDB: Vector database library
- SwiftSoup: HTML parsing capabilities
- Open Source Community: For inspiration and support
Built with β€οΈ for the iOS community