发布

  • feat: simplified pipeline API and declarative field annotations (#2126)

    frostbyte_neo 发布于 2026-04-09 06:31:30 +00:00

    Summary

    • Three-tier pipeline abstraction: flow() for zero-config
      chaining, @step decorator for config, Pipeline builder for full
      control
    • Explicit type annotations: Pipe[T], Ctx[T], Drop sentinel,
      Batch, Stream for declaring data flow roles
    • Field role markers: Embeddable(), LLMContext(), Dedup() via
      typing.Annotated to make DataPoint field roles visible at definition
      time
    • identity_fields on DataPoint: Declarative deterministic UUID5
      generation for node deduplication
    • Ctx injection in run_tasks_base: Annotation-based context
      injection with backward-compatible deprecation path for magic context
      parameter
    • ECL role comments: Added EXTRACT/COGNIFY/LOAD role annotations to
      default cognify pipeline tasks
    • Legacy compatibility: from cognee.pipelines import Task, run_tasks still works via lazy __getattr__

    Test plan

    • 34 new pipeline tests covering flow, @step, Pipeline builder, Ctx
      injection, Drop, dataset context manager, field annotations, legacy
      compat
    • Verify existing integration tests still pass
    • Run low-level pipeline example end-to-end

    🤖 Generated with Claude Code

    Summary by CodeRabbit

    Release Notes

    • New Features

    • Added Claude plugin with agent memory and knowledge graph integration

      • Added API keys management interface
      • Added dataset sharing and permissions system
      • Added graph model creation and editing with validation
      • Added onboarding flow for new users
      • Added search with persistent history
      • Added local authentication support
    • Bug Fixes

      • Improved error handling and user feedback for failed operations
      • Fixed navigation and routing consistency
    • Refactor

      • Restructured authentication system
      • Reorganized component architecture with new providers
      • Updated data fetching mechanisms
    • Style

      • Updated UI design tokens and color system
      • Refreshed button and form component styling
      • Enhanced visual consistency across the application
    • Chores

      • Updated frontend dependencies (Mantine, Jest, testing libraries)
      • Updated environment configuration template with tiered sections
    下载附件