Skip to content

Schema bases

AbstractQdrantMetadata

Bases: BaseModel

The metadata that is stored in qdrant for each item.

model_config = ConfigDict(extra='forbid') class-attribute instance-attribute

EmbeddedContentLocation

Bases: BaseModel

Location of embedded content in the database.

Used when the embedded content is long and not duplicated in qdrant.

additional_info = Field(default=None, description='Any additional info required to identify the exact content that was embedded') class-attribute instance-attribute

pk_id instance-attribute

tablename instance-attribute

HasIDandPayload

Bases: Protocol

id instance-attribute

payload instance-attribute

QdrantPayload

Bases: BaseModel

The payload that is stored in qdrant for each item/point.

embedded_content = Field(description='The content that was embedded, or where to find it.') class-attribute instance-attribute

id = Field(default_factory=lambda: str(uuid.uuid4()), description='Unique id to use in qdrant. Use pk in db ONLY if one qdrant entry per db entry.') class-attribute instance-attribute

metadata = Field(description='The metadata part of the payload stored with the point.') class-attribute instance-attribute

metadata_dict property

from_point(point) classmethod

stringify_uuid(v)

to_point_payload()

QdrantSearchResult

Bases: BaseModel

A result from a qdrant search.

Simplified version of the qdrant_models.ScoredPoint

payload instance-attribute

score instance-attribute

vector instance-attribute