Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /tasks /graph /exceptions /exceptions.py
| from cognee.exceptions import ( | |
| CogneeValidationError, | |
| CogneeConfigurationError, | |
| ) | |
| from fastapi import status | |
| class InvalidDataChunksError(CogneeValidationError): | |
| def __init__(self, detail: str): | |
| super().__init__( | |
| message=f"Invalid data_chunks: {detail}", | |
| name="InvalidDataChunksError", | |
| status_code=status.HTTP_400_BAD_REQUEST, | |
| ) | |
| class InvalidGraphModelError(CogneeValidationError): | |
| def __init__(self, got): | |
| super().__init__( | |
| message=f"graph_model must be a subclass of BaseModel (got {got}).", | |
| name="InvalidGraphModelError", | |
| status_code=status.HTTP_400_BAD_REQUEST, | |
| ) | |
| class InvalidOntologyAdapterError(CogneeConfigurationError): | |
| def __init__(self, got): | |
| super().__init__( | |
| message=f"ontology_adapter lacks required interface (got {got}).", | |
| name="InvalidOntologyAdapterError", | |
| status_code=status.HTTP_500_INTERNAL_SERVER_ERROR, | |
| ) | |
| class InvalidChunkGraphInputError(CogneeValidationError): | |
| def __init__(self, detail: str): | |
| super().__init__( | |
| message=f"Invalid chunk inputs or LLM Chunkgraphs: {detail}", | |
| name="InvalidChunkGraphInputError", | |
| status_code=status.HTTP_400_BAD_REQUEST, | |
| ) | |
Xet Storage Details
- Size:
- 1.32 kB
- Xet hash:
- 662852c8a3370f75ddfe0c089f8809ec88cc758492941e2e966e2b3d7b73d9e1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.