Base type for a document that wishes to leverage raw vector capabilities.

Example

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],
});
interface VectorDoc {
    $vector?: number[];
}

Properties

Properties

$vector?: number[]

A raw vector