Member Junction
    Preparing search index...

    Interface for vector index operations (CRUD on individual vectors).

    Use VectorDBBase from @memberjunction/ai-vectordb instead, which provides a complete abstract class with proper typing (VectorRecord, BaseResponse, UpdateOptions).

    interface IVectorIndex {
        createRecord(
            record: VectorIndexRecord,
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
        createRecords(
            records: VectorIndexRecord[],
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
        deleteRecord(
            recordID: string,
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
        deleteRecords(
            recordIDs: string[],
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
        getRecord(
            recordID: string,
            options?: VectorIndexOptions,
        ): Promise<VectorIndexRecordResult>;
        getRecords(
            recordIDs: string[],
            options?: VectorIndexOptions,
        ): Promise<VectorIndexRecordsResult>;
        updateRecord(
            record: VectorIndexRecord,
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
        updateRecords(
            records: VectorIndexRecord[],
            options?: VectorIndexOptions,
        ): Promise<VectorIndexResult>;
    }
    Index

    Methods