import type { UpsertVectorParams, QueryVectorParams } from '@mastra/core/vector'; import type { FusionAlgorithm, QueryMode } from '@upstash/vector'; import type { UpstashVectorFilter } from './filter.js'; export interface UpstashSparseVector { indices: number[]; values: number[]; } export interface UpstashUpsertVectorParams extends UpsertVectorParams { sparseVectors?: UpstashSparseVector[]; } export interface UpstashQueryVectorParams extends QueryVectorParams { sparseVector?: UpstashSparseVector; fusionAlgorithm?: FusionAlgorithm; queryMode?: QueryMode; } export type UpstashUpdateVectorParams = { indexName: string; id: string; filter?: never; update: { vector?: number[]; metadata?: Record; sparseVector?: UpstashSparseVector; }; } | { indexName: string; id?: never; filter: UpstashVectorFilter; update: { vector?: number[]; metadata?: Record; sparseVector?: UpstashSparseVector; }; }; //# sourceMappingURL=types.d.ts.map