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