Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /topoteretes_cognee /cognee /pipelines /__init__.py
| """ | |
| Simplified pipeline API for Cognee. | |
| Pipeline definition uses the deferred-call pattern: | |
| classify = task(classify_documents) | |
| extract = task(extract_graph, batch_size=20) | |
| await run_pipeline([ | |
| classify(), | |
| extract(graph_model=KnowledgeGraph), | |
| ], data=raw_input) | |
| Legacy imports (from cognee.pipelines import Task, run_tasks, etc.) also work. | |
| """ | |
| from cognee.pipelines.types import ( | |
| Drop, | |
| ) | |
| # Legacy re-exports are lazy to avoid circular imports with cognee.modules.pipelines | |
| _LEGACY_IMPORTS = { | |
| "Task": "cognee.modules.pipelines.tasks.task", | |
| "task": "cognee.modules.pipelines.tasks.task", | |
| "run_tasks": "cognee.modules.pipelines.operations.run_tasks", | |
| "run_tasks_parallel": "cognee.modules.pipelines.operations.run_parallel", | |
| "run_pipeline": "cognee.modules.pipelines.operations.run_pipeline", | |
| } | |
| def __getattr__(name): | |
| if name in _LEGACY_IMPORTS: | |
| import importlib | |
| module = importlib.import_module(_LEGACY_IMPORTS[name]) | |
| return getattr(module, name) | |
| raise AttributeError(f"module {__name__!r} has no attribute {name!r}") | |
| __all__ = [ | |
| # Legacy (backward compatible, lazy-loaded) | |
| "Task", | |
| "task", | |
| "run_tasks", | |
| "run_tasks_parallel", | |
| "run_pipeline", | |
| # Type annotations | |
| "Drop", | |
| ] | |
Xet Storage Details
- Size:
- 1.3 kB
- Xet hash:
- d92f581b522b0d3ef63d172aa064a60384bd8f2d782d4416357c50dde5ba4f76
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.