Skip to main content

SingleStore Extension Commands

SingleStore extension commands are custom commands unique to SingleStore Kai for MongoDB. You can run the following extension commands using a SingleStore Kai-enabled endpoint.

Function

Description

createCollection

Creates a new collection.

dotProduct

Returns the scalar product of two vector inputs.

euclideanDistance

Returns the scalar Euclidean distance between two vector inputs.

getDefaultCollectionOptions

Returns the defaults that are used when a collection is created implicitly by a write command.

setDefaultCollectionOptions

Sets the defaults that are used when a collection is created implicitly by a write command.

sql

Runs the specified SQL statement.