Spaces:
Build error
Build error
Download llm_engineering/domain/cleaned_documents.py from SkazuHD/docker-test: direct link, hf CLI and curl.
- Browser
- Download file 924 Bytes
-
https://huggingface.co/spaces/SkazuHD/docker-test/resolve/main/llm_engineering/domain/cleaned_documents.py
- Command line
-
hf download hf://spaces/SkazuHD/docker-test/llm_engineering/domain/cleaned_documents.py
-
curl -L -o cleaned_documents.py https://huggingface.co/spaces/SkazuHD/docker-test/resolve/main/llm_engineering/domain/cleaned_documents.py
924 Bytes
| from abc import ABC | |
| from typing import Optional | |
| from pydantic import UUID4 | |
| from .base import VectorBaseDocument | |
| from .types import DataCategory | |
| class CleanedDocument(VectorBaseDocument, ABC): | |
| content: str | |
| platform: str | |
| author_id: UUID4 | |
| author_full_name: str | |
| class CleanedPostDocument(CleanedDocument): | |
| image: Optional[str] = None | |
| class Config: | |
| name = "cleaned_posts" | |
| category = DataCategory.POSTS | |
| use_vector_index = False | |
| class CleanedArticleDocument(CleanedDocument): | |
| link: str | |
| class Config: | |
| name = "cleaned_articles" | |
| category = DataCategory.ARTICLES | |
| use_vector_index = False | |
| class CleanedRepositoryDocument(CleanedDocument): | |
| name: str | |
| link: str | |
| class Config: | |
| name = "cleaned_repositories" | |
| category = DataCategory.REPOSITORIES | |
| use_vector_index = False | |