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
15 lines
389 B
Python
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"],
|
|
}
|