getzep / graphiti

Build and query dynamic, temporally-aware Knowledge Graphs
https://help.getzep.com/graphiti
Apache License 2.0
1.39k stars 75 forks source link

add search recipes #210

Closed prasmussen15 closed 2 weeks ago

prasmussen15 commented 2 weeks ago

[!IMPORTANT] Add new hybrid search configurations with cross encoder reranking for edges, nodes, and communities in search_config_recipes.py.

  • New Search Configurations:
    • Adds EDGE_HYBRID_SEARCH_CROSS_ENCODER to perform hybrid search over edges with cross encoder reranking, using bm25, cosine_similarity, and bfs methods, with a limit of 10.
    • Adds NODE_HYBRID_SEARCH_CROSS_ENCODER to perform hybrid search over nodes with cross encoder reranking, using bm25, cosine_similarity, and bfs methods, with a limit of 10.
    • Adds COMMUNITY_HYBRID_SEARCH_CROSS_ENCODER to perform hybrid search over communities with cross encoder reranking, using bm25 and cosine_similarity methods, with a limit of 3.

This description was created by Ellipsis for e20450db1ca665ee02223814344b204d4b0384fb. It will automatically update as commits are pushed.