Base type for a document that wishes to leverage raw vector capabilities.
export interface Idea extends VectorDoc { category: string, idea: string,}db.collection<Idea>('ideas').insertOne({ category: 'doors', idea: 'Upside down doors', $vector: [.23, .05, .95, .83, .42],}); Copy
export interface Idea extends VectorDoc { category: string, idea: string,}db.collection<Idea>('ideas').insertOne({ category: 'doors', idea: 'Upside down doors', $vector: [.23, .05, .95, .83, .42],});
Optional
A raw vector
Base type for a document that wishes to leverage raw vector capabilities.
Example