Schema Object

Classes

Float(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents a float.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.Number
* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[float]) ‑> float`
:

FloatList(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents a vector.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[list[float]]) ‑> list[float]`
:

### Methods

`parse(self, value: list[float]) ‑> list[float]`
:

Integer(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents an integer.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.Number
* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[int]) ‑> int`
:

Number(name: str, schema_obj: SchemaObjectT, type_: type[SFT]) : Field of a schema that represents a union of Float and Integer.

e.g.: `NumberSpace` expects a Number field as an input.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Descendants

* superlinked.framework.common.schema.schema_object.Float
* superlinked.framework.common.schema.schema_object.Integer

SchemaField(name: str, schema_obj: SchemaObjectT, type_: type[SFT]) : A SchemaField is a generic field of your @schema decorated class.

`SchemaField`s are the basic building block for inputs that will be referenced in an embedding space.
Sub-types of a `SchemaField` are typed data representations that you can use to transform and load data
to feed the vector embedding process.

### Ancestors (in MRO)

* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Descendants

* superlinked.framework.common.schema.event_schema_object.CreatedAtField
* superlinked.framework.common.schema.event_schema_object.SchemaReference
* superlinked.framework.common.schema.id_schema_object.IdField
* superlinked.framework.common.schema.schema_object.FloatList
* superlinked.framework.common.schema.schema_object.Number
* superlinked.framework.common.schema.schema_object.String
* superlinked.framework.common.schema.schema_object.StringList
* superlinked.framework.common.schema.schema_object.Timestamp

### Static methods

`combine_values(values: Sequence[SFT]) ‑> ~SFT`
:

### Methods

`parse(self, value: SFT) ‑> ~SFT`
:

SchemaObject(base_cls: type) : @schema decorated class that has multiple SchemaFields.

Use it to represent your structured data to reference during the vector embedding process.

### Descendants

* superlinked.framework.common.schema.id_schema_object.IdSchemaObject

String(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents a string value.

e.g.: `TextEmbeddingSpace` expects a String field as an input.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[str]) ‑> str`
:

StringList(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents a list of strings.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[list[str]]) ‑> list[str]`
:

### Methods

`parse(self, value: list[str]) ‑> list[str]`
:

Timestamp(name: str, schema_obj: SchemaObjectT) : Field of a schema that represents a unix timestamp.

e.g.: `RecencySpace` expects a Timestamp field as an input.

### Ancestors (in MRO)

* superlinked.framework.common.schema.schema_object.SchemaField
* superlinked.framework.common.interface.comparison_operand.ComparisonOperand
* abc.ABC
* typing.Generic

### Static methods

`combine_values(values: Sequence[int]) ‑> int`
:

Last updated