Skip to content

Commit cb10237

Browse files
Updating DocumentType value
1 parent 2116e5e commit cb10237

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/datacustomcode/function/feature_types/chunking.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
class DocumentType(str, Enum):
3434
"""Document type enumeration"""
3535

36-
TEXT = "Text"
37-
TITLE = "Title"
38-
TABLE = "Table"
39-
IMAGE = "Image"
40-
LIST_ITEM = "ListItem"
41-
CODE_SNIPPET = "CodeSnippet"
42-
PAGE_METADATA = "PageMetadata"
36+
TEXT = "text"
37+
TITLE = "title"
38+
TABLE = "table"
39+
IMAGE = "image"
40+
LIST_ITEM = "list_item"
41+
CODE_SNIPPET = "code_snippet"
42+
PAGE_METADATA = "page_metadata"
4343

4444

4545
class ChunkType(str, Enum):
@@ -90,7 +90,7 @@ class SearchIndexChunkingV1Metadata(BaseModel):
9090
"""Metadata for input documents"""
9191

9292
type: DocumentType = Field(
93-
default=DocumentType.TEXT, description="Document type (Text)", examples=["Text"]
93+
default=DocumentType.TEXT, description="Document type (text)", examples=["text"]
9494
)
9595
transcript_fields: SearchIndexChunkingV1TranscriptField = Field(
9696
default_factory=SearchIndexChunkingV1TranscriptField,

0 commit comments

Comments
 (0)