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.
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/PKG-INFO +12 -2
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/README.md +10 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/voyage.py +1 -1
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/dedupe_nodes.py +1 -1
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_edge_dates.py +1 -1
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_edges.py +5 -5
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/extract_nodes.py +7 -7
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/pyproject.toml +21 -24
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/LICENSE +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/bge_reranker_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/openai_reranker_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/edges.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/gemini.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/embedder/openai.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/errors.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/graphiti.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/helpers.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/anthropic_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/config.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/errors.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/gemini_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/groq_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/openai_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/openai_generic_client.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/llm_client/utils.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/edges/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/edges/edge_db_queries.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/nodes/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/models/nodes/node_db_queries.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/nodes.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/dedupe_edges.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/eval.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/invalidate_edges.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/lib.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/models.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/prompt_helpers.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/prompts/summarize_nodes.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/py.typed +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_config.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_config_recipes.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_filters.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/search/search_utils.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/bulk_utils.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/datetime_utils.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/__init__.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/community_operations.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/edge_operations.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/graph_data_operations.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/node_operations.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/temporal_operations.py +0 -0
- {graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/utils.py +0 -0
- {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
|
+
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[
|
|
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[
|
|
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[
|
|
63
|
+
{context['episode_content']}
|
|
64
64
|
</CURRENT MESSAGE>
|
|
65
65
|
|
|
66
66
|
<ENTITIES>
|
|
67
|
-
{context[
|
|
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[
|
|
93
|
+
{context['episode_content']}
|
|
94
94
|
</CURRENT MESSAGE>
|
|
95
95
|
|
|
96
96
|
<EXTRACTED ENTITIES>
|
|
97
|
-
{context[
|
|
97
|
+
{context['nodes']}
|
|
98
98
|
</EXTRACTED ENTITIES>
|
|
99
99
|
|
|
100
100
|
<EXTRACTED FACTS>
|
|
101
|
-
{context[
|
|
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[
|
|
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[
|
|
99
|
+
{context['source_description']}
|
|
100
100
|
</SOURCE DESCRIPTION>
|
|
101
101
|
<JSON>
|
|
102
|
-
{context[
|
|
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[
|
|
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[
|
|
151
|
+
{context['episode_content']}
|
|
152
152
|
</CURRENT MESSAGE>
|
|
153
153
|
|
|
154
154
|
<EXTRACTED ENTITIES>
|
|
155
|
-
{context[
|
|
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[
|
|
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.
|
|
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
|
-
[
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/cross_encoder/bge_reranker_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.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
|
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.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
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/community_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/edge_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/graph_data_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/node_operations.py
RENAMED
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/maintenance/temporal_operations.py
RENAMED
|
File without changes
|
|
File without changes
|
{graphiti_core-0.9.3 → graphiti_core-0.9.4}/graphiti_core/utils/ontology_utils/entity_types_utils.py
RENAMED
|
File without changes
|