parse-community / parse-community/parse-server

Vector field type and similarity search

Open
#10,605 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
21.4k
Forks
4.8k
Avg merge
7h 45m
Merged PRs (30d)
11

Description

New Feature / Enhancement Checklist
Current Limitation

There is no way to store embeddings or run a similarity search through Parse Server. If you are building anything AI related you have to bypass Parse and query the database directly, which skips ACLs, CLPs, triggers, etc.

Feature / Enhancement Description

A Vector schema field type and a query constraint like $nearVector that returns nearest neighbours sorted by similarity. Implemented per storage adapter; both backends have native support (MongoDB Atlas Vector Search, pgvector on Postgres), so this fits the same pattern we already use for full text search ($text).

Example Use Case
  1. Add a Vector field to a class, e.g. embedding with a dimension
  2. Save objects with embeddings in that field
  3. Query with $nearVector and get results ranked by similarity, with normal query constraints and ACLs still applying
Alternatives / Workarounds
  • Query the database directly (bypasses the Parse security layer)
  • Run a separate vector database next to Parse and keep it in sync manually
3rd Party References
  • MongoDB Atlas Vector Search
  • pgvector (used by Supabase)
  • Firestore vector search

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No specific files or tests are named. Start by examining the existing full-text $text search pattern and how storage adapters expose it, then review MongoDB Atlas Vector Search and pgvector constraints; done means vector fields and similarity queries work across both backends while preserving normal constraints and Parse security.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, nodejs, postgres
Domain
api, backend, databases, search, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.