Skip to content

Vector search and Embeddings saving #7049

@somasekharkakarla

Description

@somasekharkakarla

Problem

Hi @takameyer and @kneth

Currently, LLMs are in high demand. SLMs are also gaining their strength.
I want to request native support for feature vector search in Realm. This would enable developers to store embeddings (e.g., image, text, or audio vectors) and perform similarity searches directly within Realm, without relying on external vector databases.

Proposed Capabilities:

Support for storing float[] or double[] fields as feature vectors.

Native querying by similarity metrics such as:

Cosine similarity

Euclidean distance

Ability to combine vector queries with existing Realm filters (e.g., by category, user, or timestamp).

Efficient indexing to allow fast K-nearest-neighbors (KNN) queries on mobile.

Compatibility with React Native, iOS, Android, and Node.js SDKs.

Use Cases:

Mobile AI applications: On-device image, audio, or text search using embeddings.

Recommendation systems: Quickly find similar items or content for users.

Hybrid workflows: Store metadata in Realm while performing fast vector queries without a separate vector DB.

Benefits:

Reduces complexity by eliminating the need for external vector databases.

Speeds up development of AI-powered applications on mobile and web.

Expands Realm’s capabilities for next-generation apps using embeddings.

Offline first and privacy.

Priority: High — Feature vector search is increasingly critical for AI/ML applications that store and query embeddings on mobile and cloud.

Solution

No response

Alternatives

No response

How important is this improvement for you?

Dealbreaker

Feature would mainly be used with

Local Database only

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions