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.

Files changed (61) hide show
  1. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/PKG-INFO +1 -1
  2. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/graphiti.py +5 -3
  3. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/summarize_nodes.py +5 -2
  4. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/node_operations.py +1 -0
  5. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/pyproject.toml +1 -1
  6. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/LICENSE +0 -0
  7. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/README.md +0 -0
  8. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/__init__.py +0 -0
  9. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/__init__.py +0 -0
  10. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
  11. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/client.py +0 -0
  12. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
  13. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/edges.py +0 -0
  14. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/__init__.py +0 -0
  15. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/client.py +0 -0
  16. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/openai.py +0 -0
  17. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/embedder/voyage.py +0 -0
  18. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/errors.py +0 -0
  19. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/helpers.py +0 -0
  20. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/__init__.py +0 -0
  21. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/anthropic_client.py +0 -0
  22. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/client.py +0 -0
  23. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/config.py +0 -0
  24. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/errors.py +0 -0
  25. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/groq_client.py +0 -0
  26. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/openai_client.py +0 -0
  27. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/openai_generic_client.py +0 -0
  28. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/llm_client/utils.py +0 -0
  29. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/__init__.py +0 -0
  30. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/edges/__init__.py +0 -0
  31. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/edges/edge_db_queries.py +0 -0
  32. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/nodes/__init__.py +0 -0
  33. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/models/nodes/node_db_queries.py +0 -0
  34. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/nodes.py +0 -0
  35. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/__init__.py +0 -0
  36. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/dedupe_edges.py +0 -0
  37. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/dedupe_nodes.py +0 -0
  38. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/eval.py +0 -0
  39. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_edge_dates.py +0 -0
  40. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_edges.py +0 -0
  41. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/extract_nodes.py +0 -0
  42. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/invalidate_edges.py +0 -0
  43. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/lib.py +0 -0
  44. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/models.py +0 -0
  45. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/prompts/prompt_helpers.py +0 -0
  46. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/py.typed +0 -0
  47. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/__init__.py +0 -0
  48. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search.py +0 -0
  49. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_config.py +0 -0
  50. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_config_recipes.py +0 -0
  51. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_filters.py +0 -0
  52. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/search/search_utils.py +0 -0
  53. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/__init__.py +0 -0
  54. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/bulk_utils.py +0 -0
  55. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/datetime_utils.py +0 -0
  56. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/__init__.py +0 -0
  57. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/community_operations.py +0 -0
  58. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
  59. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
  60. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
  61. {graphiti_core-0.6.0 → graphiti_core-0.6.1}/graphiti_core/utils/maintenance/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: graphiti-core
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
@@ -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, _ = await resolve_extracted_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
- [edge],
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, edge, related_edges)
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
  ]
@@ -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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "graphiti-core"
3
- version = "0.6.0"
3
+ version = "0.6.1"
4
4
  description = "A temporal graph building library"
5
5
  authors = [
6
6
  "Paul Paliychuk <paul@getzep.com>",
File without changes
File without changes