发布

  • fix: Neptune search node_name and has_edges return type (#2384)

    frostbyte_neo 发布于 2026-03-12 09:47:09 +00:00

    Summary

    • Add node_name parameter to Neptune Analytics search methods to match
      the interface contract
    • Fix Neptune has_edges to return edge tuples instead of booleans,
      which caused TypeError in retrieve_existing_edges when accessing
      edge[2]
    • Add defensive str() wrapping for edge[2] in
      retrieve_existing_edges

    Test plan

    • Run pipeline with Neptune Analytics backend and verify cognify
      completes without TypeError on edge saving
    • Verify Neptune Analytics search methods work with node_name
      parameter

    🤖 Generated with Claude Code

    Summary by CodeRabbit

    • Bug Fixes
    • Improved edge data retrieval logic in the graph database layer to
      ensure consistent data handling.
    • Enhanced type safety for edge relationship processing to prevent
      potential type-related errors.
    下载附件