graphiti-core 0.9.3__tar.gz → 0.9.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.

Files changed (64) hide show
  1. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/PKG-INFO +12 -2
  2. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/README.md +10 -0
  3. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/voyage.py +1 -1
  4. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/dedupe_nodes.py +1 -1
  5. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_edge_dates.py +1 -1
  6. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_edges.py +5 -5
  7. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_nodes.py +7 -7
  8. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/pyproject.toml +21 -24
  9. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/LICENSE +0 -0
  10. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/__init__.py +0 -0
  11. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/__init__.py +0 -0
  12. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
  13. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/client.py +0 -0
  14. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
  15. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/edges.py +0 -0
  16. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/__init__.py +0 -0
  17. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/client.py +0 -0
  18. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/gemini.py +0 -0
  19. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/openai.py +0 -0
  20. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/errors.py +0 -0
  21. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/graphiti.py +0 -0
  22. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/helpers.py +0 -0
  23. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/__init__.py +0 -0
  24. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/anthropic_client.py +0 -0
  25. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/client.py +0 -0
  26. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/config.py +0 -0
  27. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/errors.py +0 -0
  28. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/gemini_client.py +0 -0
  29. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/groq_client.py +0 -0
  30. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/openai_client.py +0 -0
  31. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/openai_generic_client.py +0 -0
  32. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/utils.py +0 -0
  33. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/__init__.py +0 -0
  34. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/edges/__init__.py +0 -0
  35. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/edges/edge_db_queries.py +0 -0
  36. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/nodes/__init__.py +0 -0
  37. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/nodes/node_db_queries.py +0 -0
  38. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/nodes.py +0 -0
  39. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/__init__.py +0 -0
  40. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/dedupe_edges.py +0 -0
  41. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/eval.py +0 -0
  42. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/invalidate_edges.py +0 -0
  43. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/lib.py +0 -0
  44. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/models.py +0 -0
  45. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/prompt_helpers.py +0 -0
  46. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/summarize_nodes.py +0 -0
  47. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/py.typed +0 -0
  48. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/__init__.py +0 -0
  49. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search.py +0 -0
  50. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_config.py +0 -0
  51. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_config_recipes.py +0 -0
  52. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_filters.py +0 -0
  53. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_utils.py +0 -0
  54. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/__init__.py +0 -0
  55. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/bulk_utils.py +0 -0
  56. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/datetime_utils.py +0 -0
  57. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/__init__.py +0 -0
  58. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/community_operations.py +0 -0
  59. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
  60. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
  61. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/node_operations.py +0 -0
  62. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
  63. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/utils.py +0 -0
  64. {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/ontology_utils/entity_types_utils.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: graphiti-core
3
- Version: 0.9.3
3
+ Version: 0.9.4
4
4
  Summary: A temporal graph building library
5
5
  License: Apache-2.0
6
6
  Author: Paul Paliychuk
7
7
  Author-email: paul@getzep.com
8
- Requires-Python: >=3.10
8
+ Requires-Python: >=3.10,<4
9
9
  Classifier: License :: OSI Approved :: Apache Software License
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.10
@@ -262,6 +262,16 @@ Make sure to replace the placeholder values with your actual Azure OpenAI creden
262
262
 
263
263
  Graphiti supports Google's Gemini models for both LLM inference and embeddings. To use Gemini, you'll need to configure both the LLM client and embedder with your Google API key.
264
264
 
265
+ Install Graphiti:
266
+
267
+ ```bash
268
+ poetry add "graphiti-core[google-genai]"
269
+
270
+ # or
271
+
272
+ uv add "graphiti-core[google-genai]"
273
+ ```
274
+
265
275
  ```python
266
276
  from graphiti_core import Graphiti
267
277
  from graphiti_core.llm_client.gemini_client import GeminiClient, LLMConfig
@@ -231,6 +231,16 @@ Make sure to replace the placeholder values with your actual Azure OpenAI creden
231
231
 
232
232
  Graphiti supports Google's Gemini models for both LLM inference and embeddings. To use Gemini, you'll need to configure both the LLM client and embedder with your Google API key.
233
233
 
234
+ Install Graphiti:
235
+
236
+ ```bash
237
+ poetry add "graphiti-core[google-genai]"
238
+
239
+ # or
240
+
241
+ uv add "graphiti-core[google-genai]"
242
+ ```
243
+
234
244
  ```python
235
245
  from graphiti_core import Graphiti
236
246
  from graphiti_core.llm_client.gemini_client import GeminiClient, LLMConfig
@@ -55,4 +55,4 @@ class VoyageAIEmbedder(EmbedderClient):
55
55
  return []
56
56
 
57
57
  result = await self.client.embed(input_list, model=self.config.embedding_model)
58
- return result.embeddings[0][: self.config.embedding_dim]
58
+ return [float(x) for x in result.embeddings[0][: self.config.embedding_dim]]
@@ -57,7 +57,7 @@ def node(context: dict[str, Any]) -> list[Message]:
57
57
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
58
58
  </PREVIOUS MESSAGES>
59
59
  <CURRENT MESSAGE>
60
- {context["episode_content"]}
60
+ {context['episode_content']}
61
61
  </CURRENT MESSAGE>
62
62
 
63
63
  <EXISTING NODES>
@@ -53,7 +53,7 @@ def v1(context: dict[str, Any]) -> list[Message]:
53
53
  {context['previous_episodes']}
54
54
  </PREVIOUS MESSAGES>
55
55
  <CURRENT MESSAGE>
56
- {context["current_episode"]}
56
+ {context['current_episode']}
57
57
  </CURRENT MESSAGE>
58
58
  <REFERENCE TIMESTAMP>
59
59
  {context['reference_timestamp']}
@@ -60,11 +60,11 @@ def edge(context: dict[str, Any]) -> list[Message]:
60
60
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
61
61
  </PREVIOUS MESSAGES>
62
62
  <CURRENT MESSAGE>
63
- {context["episode_content"]}
63
+ {context['episode_content']}
64
64
  </CURRENT MESSAGE>
65
65
 
66
66
  <ENTITIES>
67
- {context["nodes"]}
67
+ {context['nodes']}
68
68
  </ENTITIES>
69
69
 
70
70
  {context['custom_prompt']}
@@ -90,15 +90,15 @@ def reflexion(context: dict[str, Any]) -> list[Message]:
90
90
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
91
91
  </PREVIOUS MESSAGES>
92
92
  <CURRENT MESSAGE>
93
- {context["episode_content"]}
93
+ {context['episode_content']}
94
94
  </CURRENT MESSAGE>
95
95
 
96
96
  <EXTRACTED ENTITIES>
97
- {context["nodes"]}
97
+ {context['nodes']}
98
98
  </EXTRACTED ENTITIES>
99
99
 
100
100
  <EXTRACTED FACTS>
101
- {context["extracted_facts"]}
101
+ {context['extracted_facts']}
102
102
  </EXTRACTED FACTS>
103
103
 
104
104
  Given the above MESSAGES, list of EXTRACTED ENTITIES entities, and list of EXTRACTED FACTS;
@@ -68,7 +68,7 @@ def extract_message(context: dict[str, Any]) -> list[Message]:
68
68
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
69
69
  </PREVIOUS MESSAGES>
70
70
  <CURRENT MESSAGE>
71
- {context["episode_content"]}
71
+ {context['episode_content']}
72
72
  </CURRENT MESSAGE>
73
73
 
74
74
  {context['custom_prompt']}
@@ -96,10 +96,10 @@ def extract_json(context: dict[str, Any]) -> list[Message]:
96
96
 
97
97
  user_prompt = f"""
98
98
  <SOURCE DESCRIPTION>:
99
- {context["source_description"]}
99
+ {context['source_description']}
100
100
  </SOURCE DESCRIPTION>
101
101
  <JSON>
102
- {context["episode_content"]}
102
+ {context['episode_content']}
103
103
  </JSON>
104
104
 
105
105
  {context['custom_prompt']}
@@ -121,7 +121,7 @@ def extract_text(context: dict[str, Any]) -> list[Message]:
121
121
 
122
122
  user_prompt = f"""
123
123
  <TEXT>
124
- {context["episode_content"]}
124
+ {context['episode_content']}
125
125
  </TEXT>
126
126
 
127
127
  {context['custom_prompt']}
@@ -148,11 +148,11 @@ def reflexion(context: dict[str, Any]) -> list[Message]:
148
148
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
149
149
  </PREVIOUS MESSAGES>
150
150
  <CURRENT MESSAGE>
151
- {context["episode_content"]}
151
+ {context['episode_content']}
152
152
  </CURRENT MESSAGE>
153
153
 
154
154
  <EXTRACTED ENTITIES>
155
- {context["extracted_entities"]}
155
+ {context['extracted_entities']}
156
156
  </EXTRACTED ENTITIES>
157
157
 
158
158
  Given the above previous messages, current message, and list of extracted entities; determine if any entities haven't been
@@ -172,7 +172,7 @@ def classify_nodes(context: dict[str, Any]) -> list[Message]:
172
172
  {json.dumps([ep for ep in context['previous_episodes']], indent=2)}
173
173
  </PREVIOUS MESSAGES>
174
174
  <CURRENT MESSAGE>
175
- {context["episode_content"]}
175
+ {context['episode_content']}
176
176
  </CURRENT MESSAGE>
177
177
 
178
178
  <EXTRACTED ENTITIES>
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "graphiti-core"
3
3
  description = "A temporal graph building library"
4
- version = "0.9.3"
4
+ version = "0.9.4"
5
5
  authors = [
6
6
  {"name" = "Paul Paliychuk", "email" = "paul@getzep.com"},
7
7
  {"name" = "Preston Rasmussen", "email" = "preston@getzep.com"},
@@ -9,7 +9,7 @@ authors = [
9
9
  ]
10
10
  readme = "README.md"
11
11
  license = "Apache-2.0"
12
- requires-python = ">=3.10"
12
+ requires-python = ">=3.10,<4"
13
13
  packages = [{ include = "graphiti_core", from = "." }]
14
14
  dependencies = [
15
15
  "pydantic>=2.8.2",
@@ -21,7 +21,6 @@ dependencies = [
21
21
  "python-dotenv>=1.0.1",
22
22
  ]
23
23
 
24
-
25
24
  [project.urls]
26
25
  Homepage = "https://help.getzep.com/graphiti/graphiti/overview"
27
26
  Repository = "https://github.com/getzep/graphiti"
@@ -31,27 +30,25 @@ anthropic = ["anthropic>=0.49.0"]
31
30
  groq = ["groq>=0.2.0"]
32
31
  google-genai = ["google-genai>=1.8.0"]
33
32
 
34
- [dependency-groups]
35
- dev = [
36
- "mypy>=1.11.1",
37
- "groq>=0.2.0",
38
- "anthropic>=0.49.0",
39
- "google-genai>=1.8.0",
40
- "ipykernel>=6.29.5",
41
- "jupyterlab>=4.2.4",
42
- "diskcache-stubs>=5.6.3.6.20240818",
43
- "langgraph>=0.2.15",
44
- "langchain-anthropic>=0.2.4",
45
- "langsmith>=0.1.108",
46
- "langchain-openai>=0.2.6",
47
- "sentence-transformers>=3.2.1",
48
- "transformers>=4.45.2",
49
- "voyageai>=0.2.3",
50
- "pytest>=8.3.3",
51
- "pytest-asyncio>=0.24.0",
52
- "pytest-xdist>=3.6.1",
53
- "ruff>=0.7.1",
54
- ]
33
+ [tool.poetry.group.dev.dependencies]
34
+ mypy = ">=1.11.1"
35
+ groq = ">=0.2.0"
36
+ anthropic = ">=0.49.0"
37
+ google-genai = ">=1.8.0"
38
+ ipykernel = ">=6.29.5"
39
+ jupyterlab = ">=4.2.4"
40
+ diskcache-stubs = ">=5.6.3.6.20240818"
41
+ langgraph = ">=0.2.15"
42
+ langchain-anthropic = ">=0.2.4"
43
+ langsmith = ">=0.1.108"
44
+ langchain-openai = ">=0.2.6"
45
+ sentence-transformers = ">=3.2.1"
46
+ transformers = ">=4.45.2"
47
+ voyageai = ">=0.2.3"
48
+ pytest = ">=8.3.3"
49
+ pytest-asyncio = ">=0.24.0"
50
+ pytest-xdist = ">=3.6.1"
51
+ ruff = ">=0.7.1"
55
52
 
56
53
  [build-system]
57
54
  requires = ["poetry-core"]
File without changes