Edge AI: Retrieval as a Tool with NLContextualEmbedding and Foundation Models
Part 3 of the Edge AI on iOS series. Build a complete on-device RAG pipeline in Swift with no dependencies: NLContextualEmbedding for semantic search, Foundation Models for generation, and the surprising thing that happens when retrieval is a tool the model calls.