#214 · Primary category: Knowledge Base & RAG

similarity-search-kit

apple-neural-engine coreml information-retrieval nlp pretrained-models question-answering semantic-search semantic-similarity swift text-embeddings vector-embeddings

🔎 SimilaritySearchKit is a Swift package providing on-device text embeddings and semantic search functionality for iOS and macOS applications.

Project last updated:06/04/24

GitHub Stars

535

Forks

53

Contributors

10

License

Apache-2.0

Why we included this project

If you build iOS or macOS apps that need to search over local documents, this Swift package gives you a working semantic search layer without sending text to a remote API. It wraps several sentence-embedding models, including Apple's built-in NaturalLanguage embeddings and quantized MiniLM/DistilBERT variants, behind a small SimilarityIndex API, so you can index text, query it, and get ranked results with a few lines of code. The on-device design matters for privacy-sensitive use cases like searching confidential files or building offline question-answering over a local dataset, and the protocol-based architecture lets you swap in your own embedding model or distance metric. Teams already invested in Swift and CoreML will find it a natural fit, while the included example apps (PDF search, chat-with-files) show realistic integration patterns rather than toy snippets.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category