Spaces:
Sleeping
Sleeping
File size: 301 Bytes
7fdb8e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from abc import ABC
from typing import Optional
from pydantic import UUID4, Field
from rag_demo.preprocessing.base.vectordb import VectorBaseDocument
class Chunk(VectorBaseDocument, ABC):
content: str
document_id: UUID4
chunk_id: UUID4
metadata: dict = Field(default_factory=dict)
|