instrukt.indexes.schema.EmbeddingDetails

class instrukt.indexes.schema.EmbeddingDetails(embedding_fn_cls: str, model_name: str | None = None, extra: dict[str, Any] = {})[source]

Bases: NamedTuple

Details about an embedding

Create new instance of EmbeddingDetails(embedding_fn_cls, model_name, extra)

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

embedding_fn_cls

Alias for field number 0

extra

extra information about this embedding

fn_short

Shortened functipn name.

model_name

Alias for field number 1

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

embedding_fn_cls: str

Alias for field number 0

extra: dict[str, Any]

extra information about this embedding

property fn_short: str

Shortened functipn name.

model_name: str | None

Alias for field number 1