IRISLIB database
Vector Class Reference

Datatype class for storing vector content, such as embeddings, in the native $vector format. More...

Inheritance diagram for Vector:
Collaboration diagram for Vector:

Static Public Member Functions

_.Library.Vector DisplayToLogical (_, _.Library.String val)
 DisplayToLogical - If this is passed a dynamic array e.g. More...
 
- Static Public Member Functions inherited from DataType
_.Library.Status IsValid (_, _.Library.RawString val)
 Return $$$OK if the value is valid for the datatype, or an error code otherwise.
 

Static Public Attributes

 DATATYPE = None
 Datatype class for storing vector content, such as embeddings, in the native $vector format. More...
 
 LEN = None
 The number of elements the vector can contain.
 
- Static Public Attributes inherited from DataType
 INDEXNULLMARKER = None
 Override this parameter value to specify what value should be used as a null marker when a property of the type is used in a subscript of an index map. More...
 

Detailed Description

Datatype class for storing vector content, such as embeddings, in the native $vector format.

See also the TO_VECTOR() SQL function to convert user input to the VECTOR datatype

Member Function Documentation

◆ DisplayToLogical()

_.Library.Vector DisplayToLogical (   _,
_.Library.String  val 
)
static

DisplayToLogical - If this is passed a dynamic array e.g.

'Set dynArray=[1,2,3,4]' then detect this with $isobject(val) and then if it is an oref then test if it is a dynamic array and if so then walk this turning it into a vector so we can support JSON and dynamic arrays.

Member Data Documentation

◆ DATATYPE

DATATYPE = None
static

Datatype class for storing vector content, such as embeddings, in the native $vector format.

See also the TO_VECTOR() SQL function to convert user input to the VECTOR datatype

The default type value used for this data type of vector.