graphiti-core 0.7.2__tar.gz → 0.7.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of graphiti-core might be problematic. Click here for more details.
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/PKG-INFO +1 -1
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/nodes.py +10 -1
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/search_utils.py +5 -4
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/node_operations.py +3 -1
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/pyproject.toml +1 -1
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/LICENSE +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/README.md +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/edges.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/embedder/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/embedder/client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/embedder/openai.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/embedder/voyage.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/errors.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/graphiti.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/helpers.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/anthropic_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/config.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/errors.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/groq_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/openai_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/openai_generic_client.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/utils.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/models/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/models/edges/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/models/edges/edge_db_queries.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/models/nodes/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/models/nodes/node_db_queries.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/dedupe_edges.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/dedupe_nodes.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/eval.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/extract_edge_dates.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/extract_edges.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/extract_nodes.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/invalidate_edges.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/lib.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/models.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/prompt_helpers.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/prompts/summarize_nodes.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/py.typed +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/search.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/search_config.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/search_config_recipes.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/search/search_filters.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/bulk_utils.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/datetime_utils.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/__init__.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/community_operations.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
- {graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/utils.py +0 -0
|
@@ -514,7 +514,7 @@ def get_episodic_node_from_record(record: Any) -> EpisodicNode:
|
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
def get_entity_node_from_record(record: Any) -> EntityNode:
|
|
517
|
-
|
|
517
|
+
entity_node = EntityNode(
|
|
518
518
|
uuid=record['uuid'],
|
|
519
519
|
name=record['name'],
|
|
520
520
|
group_id=record['group_id'],
|
|
@@ -525,6 +525,15 @@ def get_entity_node_from_record(record: Any) -> EntityNode:
|
|
|
525
525
|
attributes=record['attributes'],
|
|
526
526
|
)
|
|
527
527
|
|
|
528
|
+
del entity_node.attributes['uuid']
|
|
529
|
+
del entity_node.attributes['name']
|
|
530
|
+
del entity_node.attributes['group_id']
|
|
531
|
+
del entity_node.attributes['name_embedding']
|
|
532
|
+
del entity_node.attributes['summary']
|
|
533
|
+
del entity_node.attributes['created_at']
|
|
534
|
+
|
|
535
|
+
return entity_node
|
|
536
|
+
|
|
528
537
|
|
|
529
538
|
def get_community_node_from_record(record: Any) -> CommunityNode:
|
|
530
539
|
return CommunityNode(
|
|
@@ -229,8 +229,8 @@ async def edge_similarity_search(
|
|
|
229
229
|
|
|
230
230
|
query: LiteralString = (
|
|
231
231
|
"""
|
|
232
|
-
|
|
233
|
-
|
|
232
|
+
MATCH (n:Entity)-[r:RELATES_TO]->(m:Entity)
|
|
233
|
+
"""
|
|
234
234
|
+ group_filter_query
|
|
235
235
|
+ filter_query
|
|
236
236
|
+ """\nWITH DISTINCT r, vector.similarity.cosine(r.fact_embedding, $search_vector) AS score
|
|
@@ -765,8 +765,9 @@ async def node_distance_reranker(
|
|
|
765
765
|
# rerank on shortest distance
|
|
766
766
|
filtered_uuids.sort(key=lambda cur_uuid: scores[cur_uuid])
|
|
767
767
|
|
|
768
|
-
# add back in filtered center uuid
|
|
769
|
-
|
|
768
|
+
# add back in filtered center uuid if it was filtered out
|
|
769
|
+
if center_node_uuid in node_uuids:
|
|
770
|
+
filtered_uuids = [center_node_uuid] + filtered_uuids
|
|
770
771
|
|
|
771
772
|
return filtered_uuids
|
|
772
773
|
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/node_operations.py
RENAMED
|
@@ -172,7 +172,9 @@ async def extract_nodes(
|
|
|
172
172
|
new_nodes = []
|
|
173
173
|
for name in extracted_node_names:
|
|
174
174
|
entity_type = node_classifications.get(name)
|
|
175
|
-
labels =
|
|
175
|
+
labels = (
|
|
176
|
+
['Entity'] if entity_type is None or entity_type == 'None' else ['Entity', entity_type]
|
|
177
|
+
)
|
|
176
178
|
|
|
177
179
|
new_node = EntityNode(
|
|
178
180
|
name=name,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/bge_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/cross_encoder/openai_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/llm_client/openai_generic_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/community_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/edge_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/graph_data_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.7.2 → graphiti_core-0.7.4}/graphiti_core/utils/maintenance/temporal_operations.py
RENAMED
|
File without changes
|
|
File without changes
|