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