Skip to content

Allow ConvexVector and ConvexStorage to be used from a remote Mastra server #1

@ianmacartney

Description

@ianmacartney

Sequencing, for anyone who wants to push it forward before I do:

  1. Change the ConvexVector implementation to take in a ConvexHTTPClient and a location, like api.myMastra where functions will be exported, along with an apiKey secret you create.
  2. Add a class with no imports to Mastra's vector / memory that has a method to export a public API for all the required functions for the remote ConvexVector to hit. e.g. to be used like export { searchMessages, ... } = mastra.vectorApi({ apiKey: process.env.MASTRA_API_KEY });
  3. Add functions to that class, without importing from Mastra, so you can use it from Convex to fetch messages / search / etc. So it can be reactive, but not be exactly a subclass of MastraVector / etc.

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