Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /tests /subprocesses /writer.py
| import asyncio | |
| import time | |
| import uuid | |
| from cognee.infrastructure.databases.graph.ladybug.adapter import LadybugAdapter | |
| from cognee.modules.data.processing.document_types import PdfDocument | |
| from common import get_kuzu_db_path | |
| def create_node(name): | |
| return PdfDocument( | |
| id=uuid.uuid4(), | |
| name=name, | |
| raw_data_location=name, | |
| external_metadata="test_external_metadata", | |
| mime_type="test_mime", | |
| ) | |
| async def main(): | |
| adapter = LadybugAdapter(get_kuzu_db_path()) | |
| nodes = [create_node(f"Node{i}") for i in range(5)] | |
| print("Writer: Starting...") | |
| await adapter.add_nodes(nodes) | |
| print("writer finished...") | |
| time.sleep(10) | |
| if __name__ == "__main__": | |
| asyncio.run(main()) | |
Xet Storage Details
- Size:
- 740 Bytes
- Xet hash:
- c31e2d6dfca8784e7cc6d94bc8647a74def06fe038df10ff15dce0a012f66bb3
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.