cognee/cognee/modules/chunking/models/DocumentChunk.py
Igor Ilic 15b7b8ef2b fix: Resolve issue with table names in SQL commands
Some SQL commands require lowercase characters in table names unless table name is wrapped in quotes. Renamed all new tables to use lowercase

Fix COG-677
2024-11-20 14:54:35 +01:00

15 lines
389 B
Python

from typing import Optional
from cognee.infrastructure.engine import DataPoint
from cognee.modules.data.processing.document_types import Document
class DocumentChunk(DataPoint):
__tablename__ = "document_chunk"
text: str
word_count: int
chunk_index: int
cut_type: str
is_part_of: Document
_metadata: Optional[dict] = {
"index_fields": ["text"],
}