Table of Contents

Class VecFunctions

Namespace
Qavren.Edge.Sqlite.Vec
Assembly
Qavren.Edge.Sqlite.dll

String builders for sqlite-vec's scalar functions. No magic, no hidden state.

public static class VecFunctions
Inheritance
VecFunctions
Inherited Members

Fields

Debug

Returns build/debug information about the sqlite-vec extension.

Version

Returns the version string, e.g. v0.1.9 — note the leading v.

Methods

DistanceCosine(string, string)

Returns the cosine distance between two vector expressions.

DistanceHamming(string, string)

Returns the Hamming distance between two bit-vector expressions.

DistanceL1(string, string)

Returns the Manhattan (L1) distance between two vector expressions.

DistanceL2(string, string)

Returns the Euclidean (L2) distance between two vector expressions.

Length(string)

Returns the number of elements in a vector expression.

Normalize(string)

Returns the vector expression normalized to unit length.

ToJson(string)

Returns the vector expression rendered as a JSON array.

Type(string)

Returns a vector expression's element type as text (float32, int8 or bit).