mirror of
https://github.com/onyx-dot-app/onyx.git
synced 2026-10-23 03:42:59 -05:00
* ran bump-pydantic * replace root_validator with model_validator * mostly working. some alternate assistant error. changed root_validator and typing_extensions * working generation chat. changed type * replacing .dict with .model_dump * argument needed to bring model_dump up to parity with dict() * fix a fewremaining issues -- working with llama and gpt * updating requirements file * more requirement updates * more requirement updates * fix to make search work * return type fix: * half way tpyes change * fixes for mypy and pydantic: * endpoint fix * fix pydantic protected namespaces * it works! * removed unecessary None initializations * better logging * changed default values to empty lists * mypy fixes * fixed array defaulting --------- Co-authored-by: hagen-danswer <hagen@danswer.ai>
20 lines
370 B
Python
20 lines
370 B
Python
from pydantic import BaseModel
|
|
|
|
from danswer.connectors.models import DocumentBase
|
|
|
|
|
|
class IngestionDocument(BaseModel):
|
|
document: DocumentBase
|
|
cc_pair_id: int | None = None
|
|
|
|
|
|
class IngestionResult(BaseModel):
|
|
document_id: str
|
|
already_existed: bool
|
|
|
|
|
|
class DocMinimalInfo(BaseModel):
|
|
document_id: str
|
|
semantic_id: str
|
|
link: str | None = None
|