Skip to content

Commit

Permalink
Revert "Add asset_type field to the assets structures (#60)" (#66)
Browse files Browse the repository at this point in the history
This reverts commit 3a5d494.
  • Loading branch information
artemiyatcohere authored and luca-cohere committed Dec 13, 2024
1 parent b7710f1 commit 9684b62
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
13 changes: 0 additions & 13 deletions cohere/compass/models/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,7 @@ class CompassDocumentMetadata(ValidatedModel):
parent_document_id: str = ""


class AssetType(str, Enum):
def __str__(self) -> str:
return self.value

# A page that has been rendered as an image
PAGE_IMAGE = "page_image"
# A Markdown representation of a page's content
PAGE_MARKDOWN = "page_markdown"
# A dump of the text extracted from a document
DOCUMENT_TEXT = "document_text"


class CompassDocumentChunkAsset(BaseModel):
asset_type: AssetType
content_type: str
asset_data: str

Expand Down
3 changes: 0 additions & 3 deletions cohere/compass/models/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
# 3rd party imports
from pydantic import BaseModel

from cohere.compass.models.documents import AssetType


class AssetInfo(BaseModel):
asset_type: AssetType
content_type: str
presigned_url: str

Expand Down

0 comments on commit 9684b62

Please sign in to comment.