graphiti-core 0.6.0__tar.gz → 0.6.1__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.6.0 → graphiti_core-0.6.1}/PKG-INFO +1 -1
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/graphiti.py +5 -3
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/summarize_nodes.py +5 -2
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/node_operations.py +1 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/pyproject.toml +1 -1
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/LICENSE +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/README.md +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/edges.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/openai.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/voyage.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/errors.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/helpers.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/anthropic_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/config.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/errors.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/groq_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/openai_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/openai_generic_client.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/utils.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/edges/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/edges/edge_db_queries.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/nodes/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/nodes/node_db_queries.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/nodes.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/dedupe_edges.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/dedupe_nodes.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/eval.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_edge_dates.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_edges.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_nodes.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/invalidate_edges.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/lib.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/models.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/prompt_helpers.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/py.typed +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_config.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_config_recipes.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_filters.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_utils.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/bulk_utils.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/datetime_utils.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/__init__.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/community_operations.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
- {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/utils.py +0 -0
|
@@ -724,7 +724,7 @@ class Graphiti:
|
|
|
724
724
|
if edge.fact_embedding is None:
|
|
725
725
|
await edge.generate_embedding(self.embedder)
|
|
726
726
|
|
|
727
|
-
resolved_nodes,
|
|
727
|
+
resolved_nodes, uuid_map = await resolve_extracted_nodes(
|
|
728
728
|
self.llm_client,
|
|
729
729
|
[source_node, target_node],
|
|
730
730
|
[
|
|
@@ -733,14 +733,16 @@ class Graphiti:
|
|
|
733
733
|
],
|
|
734
734
|
)
|
|
735
735
|
|
|
736
|
+
updated_edge = resolve_edge_pointers([edge], uuid_map)[0]
|
|
737
|
+
|
|
736
738
|
related_edges = await get_relevant_edges(
|
|
737
739
|
self.driver,
|
|
738
|
-
[
|
|
740
|
+
[updated_edge],
|
|
739
741
|
source_node_uuid=resolved_nodes[0].uuid,
|
|
740
742
|
target_node_uuid=resolved_nodes[1].uuid,
|
|
741
743
|
)
|
|
742
744
|
|
|
743
|
-
resolved_edge = await dedupe_extracted_edge(self.llm_client,
|
|
745
|
+
resolved_edge = await dedupe_extracted_edge(self.llm_client, updated_edge, related_edges)
|
|
744
746
|
|
|
745
747
|
contradicting_edges = await get_edge_contradictions(self.llm_client, edge, related_edges)
|
|
746
748
|
invalidated_edges = resolve_edge_contradictions(resolved_edge, contradicting_edges)
|
|
@@ -79,8 +79,8 @@ def summarize_context(context: dict[str, Any]) -> list[Message]:
|
|
|
79
79
|
{json.dumps(context['episode_content'], indent=2)}
|
|
80
80
|
</MESSAGES>
|
|
81
81
|
|
|
82
|
-
Given the above MESSAGES and the following ENTITY name, create a summary for the ENTITY. Your summary must only use
|
|
83
|
-
information from the provided MESSAGES. Your summary should also only contain information relevant to the
|
|
82
|
+
Given the above MESSAGES and the following ENTITY name and ENTITY CONTEXT, create a summary for the ENTITY. Your summary must only use
|
|
83
|
+
information from the provided MESSAGES and from the ENTITY CONTEXT. Your summary should also only contain information relevant to the
|
|
84
84
|
provided ENTITY.
|
|
85
85
|
|
|
86
86
|
Summaries must be under 500 words.
|
|
@@ -88,6 +88,9 @@ def summarize_context(context: dict[str, Any]) -> list[Message]:
|
|
|
88
88
|
<ENTITY>
|
|
89
89
|
{context['node_name']}
|
|
90
90
|
</ENTITY>
|
|
91
|
+
<ENTITY CONTEXT>
|
|
92
|
+
{context['node_summary']}
|
|
93
|
+
</ENTITY CONTEXT>
|
|
91
94
|
""",
|
|
92
95
|
),
|
|
93
96
|
]
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/node_operations.py
RENAMED
|
@@ -268,6 +268,7 @@ async def resolve_extracted_node(
|
|
|
268
268
|
|
|
269
269
|
summary_context = {
|
|
270
270
|
'node_name': extracted_node.name,
|
|
271
|
+
'node_summary': extracted_node.summary,
|
|
271
272
|
'episode_content': episode.content if episode is not None else '',
|
|
272
273
|
'previous_episodes': [ep.content for ep in previous_episodes]
|
|
273
274
|
if previous_episodes is not None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/bge_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/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
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/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
|
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/community_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/edge_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/graph_data_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/temporal_operations.py
RENAMED
|
File without changes
|
|
File without changes
|