cognee/cognee/tasks/summarization/models.py
2024-11-12 15:37:03 +01:00

11 lines
328 B
Python

from cognee.infrastructure.engine import DataPoint
from cognee.modules.chunking.models.DocumentChunk import DocumentChunk
from cognee.modules.data.processing.document_types import Document
class TextSummary(DataPoint):
text: str
made_from: DocumentChunk
_metadata: dict = {
"index_fields": ["text"],
}