Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /tests /utils /extract_summary.py
| from uuid import uuid5 | |
| from cognee.modules.chunking.models import DocumentChunk | |
| from cognee.shared.data_models import SummarizedContent | |
| from cognee.tasks.summarization.models import TextSummary | |
| def extract_summary(document_chunk: DocumentChunk, summary=SummarizedContent) -> TextSummary: | |
| return TextSummary( | |
| id=uuid5(document_chunk.id, "TextSummary"), | |
| text=summary.summary, | |
| made_from=document_chunk, | |
| source_chunk_id=str(document_chunk.id), | |
| belongs_to_set=document_chunk.belongs_to_set, | |
| ) | |
Xet Storage Details
- Size:
- 538 Bytes
- Xet hash:
- 4b597f6e0d527ffae413b753884fe6da4895e5bfd6e1c44e7c3e47add138429e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.