Skip to content

AI provider adapter for embeddings #10608

Description

@dblythy

New Feature / Enhancement Checklist

Current Limitation

There is no standard way to configure an AI provider on the server. Everyone wires up their own SDK in Cloud Code, and server side features that need embeddings (like auto-embedding, #10606) have no provider to call.

Feature / Enhancement Description

An adapter in the existing pattern (like MailAdapter): configure a provider once in the server options, exposed in Cloud Code as something like Parse.AI.embed(). Embeddings are the priority since server internals need them; completions could be added later if there is demand, since you can already npm install any SDK in Cloud Code for that.

Example Use Case

  1. Configure the adapter with a provider (OpenAI, Anthropic, local model, whatever implements the interface)
  2. Call Parse.AI.embed(text) in Cloud Code
  3. Auto-embedding (Auto-embedding of text fields into vector fields #10606) uses the same adapter internally

Alternatives / Workarounds

Install a provider SDK directly in Cloud Code. Fine for app code, but nothing inside Parse Server can rely on it.

3rd Party References

Blocks #10606

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions