Skip to content

Document

llmfy.vector_store.document

Document

Bases: BaseModel

Container for text document with dynamic metadata

Source code in llmfy/vector_store/document.py
class Document(BaseModel):
    """Container for text document with dynamic metadata"""

    id: str
    text: str

    model_config = {
        "extra": "allow"  # Allow extra fields to be set dynamically
    }