graphiti
graphiti copied to clipboard
Bulk embed
[!IMPORTANT] Adds batch embedding support for nodes and edges, improving performance by reducing asynchronous calls.
- Behavior:
- Introduces
create_entity_edge_embeddings()inedges.pyfor batch embedding ofEntityEdgeobjects.- Introduces
create_entity_node_embeddings()innodes.pyfor batch embedding ofEntityNodeobjects.- Replaces individual embedding generation with batch embedding in
extract_edges()inedge_operations.pyandextract_nodes()innode_operations.py.- Embedder Clients:
- Adds
create_batch()method toEmbedderClientinclient.py.- Implements
create_batch()ingemini.py,openai.py, andvoyage.pyfor batch embedding support.- Misc:
- Removes unused parameter in
get_relevant_edges()andget_relevant_nodes()calls inedge_operations.pyandnode_operations.py.This description was created by
for 733ad6cf41cc11b6161ab546bd9b80dbd44e6b30. You can customize this summary. It will automatically update as commits are pushed.