Utility type for a document that wishes to leverage automatic vectorization (assuming the collections is vectorize-enabled).
export interface Idea extends VectorizeDoc { category: string,}db.collections<Idea>('ideas').insertOne({ category: 'doors', $vectorize: 'Upside down doors',}); Copy
export interface Idea extends VectorizeDoc { category: string,}db.collections<Idea>('ideas').insertOne({ category: 'doors', $vectorize: 'Upside down doors',});
Optional
A raw vector
A string field to be automatically vectorized
Utility type for a document that wishes to leverage automatic vectorization (assuming the collections is vectorize-enabled).
Example