发布

  • Add interface override paths for direct database calls (#1172)

    frostbyte_neo 发布于 2026-01-22 16:30:02 +00:00

    • Add interface override paths for direct database calls

    This PR adds override paths to GraphOperationsInterface and SearchInterface
    for functions that were previously making direct database calls without
    allowing custom implementations.

    SearchInterface additions:

    • edge_bfs_search()
    • node_bfs_search()
    • community_fulltext_search()
    • community_similarity_search()
    • get_embeddings_for_communities()
    • node_distance_reranker()
    • episode_mentions_reranker()

    GraphOperationsInterface additions:

    • get_mentioned_nodes()
    • get_communities_by_nodes()
    • clear_data()
    • get_community_clusters()
    • remove_communities()
    • determine_entity_community()
    • episodic_node_get_by_entity_node_uuid()
    • community_node_load_name_embedding()
    • edge_get_between_nodes()
    • edge_get_by_node_uuid()

    Also bumps version to 0.26.3.

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • Improve type documentation for interface methods
    • Add comprehensive docstrings with expected concrete types
    • Document return types in docstrings (e.g., list[EntityNode])
    • Document implicit assumptions for methods like node_distance_reranker
    • Add class-level type reference documentation

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

    • Improve retrieve_episodes docstring for consistency

    Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com


    Co-authored-by: Claude Opus 4.5 noreply@anthropic.com

    下载附件