File size: 337 Bytes
7fdb8e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from abc import ABC
from typing import Optional

from pydantic import UUID4, BaseModel

from .vectordb import VectorBaseDocument


class CleanedDocument(VectorBaseDocument, ABC):
    content: str
    doc_id: UUID4
    doc_title: str
    # doc_url: str


class Document(BaseModel):
    text: str
    document_id: UUID4
    metadata: dict