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

Example

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

Hierarchy (view full)

Properties

Properties

$vector?: DataAPIVector

A raw vector