Skip to content

[Feature Request] Add single-record deletion/update methods to DefaultVectorDB #2014

Open
@blinko-space

Description

Problem Description :

// Need to access private properties turso has security risks
await (defaultVectorDBas any).turso.execute(`DELETE FROM ...`)

The current DefaultVectorDB class lacks methods for single-record operations. Real-world use cases require:

  1. Deleting specific vector records by ID

  2. Updating record metadata or vectors by ID
    Proposed API additions:

interface DefaultVectorDB {
  deleteById(indexName: string, id: string): Promise<void>;
  updateById(
    indexName: string,
    id: string,
    update: {
      vector?: number[];
      metadata?: Record<string, any>;
    }
  ): Promise<void>;
}

export class DefaultVectorDB extends MastraVector {

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    VectorsIssue with Mastra VectorsenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions