@mastra/core
Version:
9 lines • 647 B
TypeScript
export declare const EMBEDDING_DIMENSION_MISMATCH_ERROR_ID = "MASTRA_MEMORY_EMBEDDING_DIMENSION_MISMATCH";
/**
* Throws when a configured `embeddingDimension` does not match the length of a real embedding.
* Index names come from the configured value, so a mismatch would otherwise create an index
* named for one dimension that holds vectors of another and split recall across two indexes.
*/
export declare function assertEmbeddingDimension(configured: number | undefined, actual: number | undefined): void;
export declare function isEmbeddingDimensionMismatchError(error: unknown): boolean;
//# sourceMappingURL=embedding-dimension.d.ts.map