insightvault.models package

Submodules

insightvault.models.database module

class insightvault.models.database.DistanceFunction(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)

Bases: Enum

COSINE = 'cosine'
L2 = 'l2'

insightvault.models.document module

class insightvault.models.document.Document(*, id: str = <factory>, title: str, content: str, metadata: ~collections.abc.Mapping[str, ~typing.Any] = <factory>, embedding: ~collections.abc.Sequence[float] | None = None, created_at: ~datetime.datetime = <factory>, updated_at: ~datetime.datetime = <factory>)

Bases: BaseModel

Document model

Attributes:

id: str title: str content: str metadata: dict[str, Any] embedding: list[float] | None created_at: datetime updated_at: datetime

content: str
created_at: datetime
embedding: Sequence[float] | None
id: str
metadata: Mapping[str, Any]
model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

title: str
updated_at: datetime

Module contents