mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-23 11:53:08 -05:00
20 lines
356 B
Python
20 lines
356 B
Python
from pydantic import BaseModel
|
|
|
|
from danswer.connectors.models import DocumentBase
|
|
|
|
|
|
class IngestionDocument(BaseModel):
|
|
document: DocumentBase
|
|
cc_pair_id: int | None
|
|
|
|
|
|
class IngestionResult(BaseModel):
|
|
document_id: str
|
|
already_existed: bool
|
|
|
|
|
|
class DocMinimalInfo(BaseModel):
|
|
document_id: str
|
|
semantic_id: str
|
|
link: str | None
|