graph-engine-memory 0.6.1__py3-none-any.whl

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.
Files changed (53) hide show
  1. graph_engine/__init__.py +1 -0
  2. graph_engine/__main__.py +1275 -0
  3. graph_engine/access.py +202 -0
  4. graph_engine/agent_memory.py +103 -0
  5. graph_engine/brain.py +731 -0
  6. graph_engine/brain_engine.py +559 -0
  7. graph_engine/communities.py +503 -0
  8. graph_engine/consolidation.py +191 -0
  9. graph_engine/context.py +203 -0
  10. graph_engine/decay.py +65 -0
  11. graph_engine/demo.py +165 -0
  12. graph_engine/dream.py +408 -0
  13. graph_engine/embedder.py +84 -0
  14. graph_engine/engine.py +58 -0
  15. graph_engine/entities.py +376 -0
  16. graph_engine/evals.py +1206 -0
  17. graph_engine/feedback.py +155 -0
  18. graph_engine/gaps.py +209 -0
  19. graph_engine/graph.py +133 -0
  20. graph_engine/hygiene.py +213 -0
  21. graph_engine/inference.py +251 -0
  22. graph_engine/intent.py +207 -0
  23. graph_engine/mcp/__init__.py +1 -0
  24. graph_engine/mcp/agent/instructions.md +34 -0
  25. graph_engine/mcp/format.py +66 -0
  26. graph_engine/mcp/server.py +407 -0
  27. graph_engine/merge.py +220 -0
  28. graph_engine/model.py +56 -0
  29. graph_engine/namespaces.py +74 -0
  30. graph_engine/recall.py +161 -0
  31. graph_engine/report.py +401 -0
  32. graph_engine/reranker.py +86 -0
  33. graph_engine/retrieval.py +296 -0
  34. graph_engine/review.py +95 -0
  35. graph_engine/runtime.py +83 -0
  36. graph_engine/server.py +239 -0
  37. graph_engine/similarity.py +42 -0
  38. graph_engine/store.py +63 -0
  39. graph_engine/suggester.py +63 -0
  40. graph_engine/temporal.py +216 -0
  41. graph_engine/tiers.py +135 -0
  42. graph_engine/web/app.js +578 -0
  43. graph_engine/web/index.html +169 -0
  44. graph_engine/web/report.html +39 -0
  45. graph_engine/web/report.js +50 -0
  46. graph_engine/web/review.html +104 -0
  47. graph_engine/web/review.js +211 -0
  48. graph_engine_memory-0.6.1.dist-info/METADATA +125 -0
  49. graph_engine_memory-0.6.1.dist-info/RECORD +53 -0
  50. graph_engine_memory-0.6.1.dist-info/WHEEL +5 -0
  51. graph_engine_memory-0.6.1.dist-info/entry_points.txt +3 -0
  52. graph_engine_memory-0.6.1.dist-info/licenses/LICENSE +21 -0
  53. graph_engine_memory-0.6.1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,125 @@
1
+ Metadata-Version: 2.4
2
+ Name: graph-engine-memory
3
+ Version: 0.6.1
4
+ Summary: Self-growing idea graph: Ingest β†’ Embed β†’ Suggest β†’ Visualize. A generic engine for a persistent knowledge graph backed by your own private git repo (the 'brain').
5
+ Author: SaltKing0
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/SaltKing0/graph-engine
8
+ Project-URL: Repository, https://github.com/SaltKing0/graph-engine
9
+ Project-URL: Issues, https://github.com/SaltKing0/graph-engine/issues
10
+ Project-URL: Changelog, https://github.com/SaltKing0/graph-engine/blob/main/CHANGELOG.md
11
+ Project-URL: PyPI, https://pypi.org/project/graph-engine-memory/
12
+ Keywords: knowledge-graph,memory,agent,embeddings,rag,zettelkasten
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
16
+ Classifier: Environment :: Web Environment
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: fastapi==0.141.1
21
+ Requires-Dist: uvicorn[standard]==0.35.0
22
+ Requires-Dist: httpx==0.28.1
23
+ Requires-Dist: numpy==2.3.1; python_version < "3.14"
24
+ Requires-Dist: numpy>=2.3.2; python_version >= "3.14"
25
+ Provides-Extra: st
26
+ Requires-Dist: sentence-transformers==5.0.0; extra == "st"
27
+ Provides-Extra: mcp
28
+ Requires-Dist: mcp<2,>=1.28; extra == "mcp"
29
+ Requires-Dist: sse-starlette<3,>=1.6.1; extra == "mcp"
30
+ Provides-Extra: dev
31
+ Requires-Dist: pytest==8.4.0; extra == "dev"
32
+ Dynamic: license-file
33
+
34
+ # GraphEngine πŸ•ΈοΈ
35
+
36
+ **A Git-backed knowledge graph for agents and humans.**
37
+
38
+ Store knowledge as Markdown in your own private repository. GraphEngine adds
39
+ search, relationships, memory maintenance and a web UI, with every change
40
+ recorded in Git.
41
+
42
+ ![GraphEngine β€” demo brain in the web UI](docs/screenshot.png)
43
+
44
+ - Search with embeddings and BM25; explain results and graph connections.
45
+ - Extract entities and facts with source evidence and a review queue.
46
+ - Consolidate observations, organize memory into tiers and learn from feedback.
47
+ - Connect agents through the CLI, HTTP API or optional MCP server.
48
+ - Keep separate graphs with optional role and node access control.
49
+
50
+ ## Quickstart
51
+
52
+ Requires **Python 3.11+** and **Git**. These instructions use current `main`;
53
+ published packages may have fewer features.
54
+
55
+ ```bash
56
+ git clone https://github.com/SaltKing0/graph-engine.git
57
+ cd graph-engine
58
+ python3 -m venv .venv
59
+ source .venv/bin/activate
60
+ python -m pip install -e ".[dev]"
61
+
62
+ export IG_BRAIN_PATH="$PWD/demo-brain"
63
+ export IDEAGRAPH_EMBEDDER=hash
64
+ ig init --demo
65
+ python -m uvicorn graph_engine.server:app --host 127.0.0.1 --port 8000
66
+ ```
67
+
68
+ Open <http://localhost:8000>. The demo uses deterministic hash embeddings with
69
+ no model download. For semantic search, install `python -m pip install -e ".[st]"`
70
+ and set `IDEAGRAPH_EMBEDDER=st` before starting a fresh brain.
71
+
72
+ On Windows, activate with `.venv\Scripts\Activate.ps1` and set environment
73
+ variables using PowerShell's `$env:NAME="value"` syntax.
74
+
75
+ For a released package, use `python -m pip install graph-engine-memory` in a virtual
76
+ environment. Optional extras: `[st]` for semantic embeddings, `[mcp]` for MCP.
77
+
78
+ Version 0.6.1 is the first PyPI release under the `graph-engine-memory` package name
79
+ (previously `ideagraph-live`). Install it in a fresh virtual environment and
80
+ point `IG_BRAIN_PATH` at your existing brain. The `ig` commands remain;
81
+ Python imports and the uvicorn module now use `graph_engine` instead of
82
+ `ideagraph`.
83
+
84
+ ## Everyday use
85
+
86
+ ```bash
87
+ ig ingest "User prefers short answers" --source agent
88
+ ig search "answer preferences"
89
+ ig entities "Alice works at Acme." --dry-run --json
90
+ ig pending
91
+ ig accept <edge_id>
92
+ ig explain <node_id> --query "answer preferences"
93
+ ig dream # preview memory maintenance
94
+ ```
95
+
96
+ For your own brain, set `IG_BRAIN_PATH` and run `ig init` without `--demo`.
97
+ The default path is `~/graph-engine-brain`. Connect a private remote with
98
+ `ig init --remote <url>`; Git mode commits changes and syncs with that remote.
99
+ Use one writer process per brain.
100
+
101
+ To connect an MCP client, install the MCP extra and run `ig mcp`.
102
+ It is read-only by default; `ig mcp --write` enables remember, recall and forget.
103
+ See the [MCP setup](docs/guide.md#mcp-server-ai-assistants) for client configuration.
104
+
105
+ ## Documentation
106
+
107
+ - [CLI reference](docs/guide.md#cli) and [configuration](docs/guide.md#configuration)
108
+ - [Entities and facts](docs/guide.md#extract-entities-and-facts)
109
+ - [Memory lifecycle](docs/guide.md#memory-lifecycle-promotion-and-decay),
110
+ [storage tiers and feedback](docs/guide.md#storage-tiers-and-retrieval-feedback)
111
+ - [Isolated graphs and access control](docs/guide.md#isolated-graphs-and-access-control)
112
+ - [Known limitations](docs/guide.md#known-limitations)
113
+ - [Changelog](CHANGELOG.md) and [contributing](CONTRIBUTING.md)
114
+
115
+ The engine is public; your brain is a separate repository under your control.
116
+ Extracted facts and heuristic relationships are claims to review, not verified truth.
117
+
118
+ ## Development
119
+
120
+ ```bash
121
+ python -m pip install -e ".[dev,mcp]"
122
+ python -m pytest tests/ -q
123
+ ```
124
+
125
+ MIT β€” see [LICENSE](LICENSE).
@@ -0,0 +1,53 @@
1
+ graph_engine/__init__.py,sha256=io2Me22CNz6CiFM9RI94CfHXQCrpQrjjkjgFD2s5BM0,19
2
+ graph_engine/__main__.py,sha256=R_6ZVg7Pn7O2h-wPs359CraDZk43VcSonAzG_nyOkc4,51237
3
+ graph_engine/access.py,sha256=UnA2McEWiD6EW32fl4lCVcRNeiVM73sCqK85dOyIVUc,8936
4
+ graph_engine/agent_memory.py,sha256=lYNwP50lmKpexvjvQIFbZss6zhlMlLeJi1BjKSYdjq8,4939
5
+ graph_engine/brain.py,sha256=9nv7LjXFg_AGU4pnfQc7JR7Ys8YPp-DZU7G2JIDmubc,35499
6
+ graph_engine/brain_engine.py,sha256=O1UcYaVKbyWp2Oohvl92yMiTaCm2BUaa23Qq54SZ9H8,28202
7
+ graph_engine/communities.py,sha256=hes-ZrPA4DheEI9sytwWZGu8OPLwrO43nqrvfZVH6Vg,21091
8
+ graph_engine/consolidation.py,sha256=mG80V-U91Wugg1HQw0qzGwGfTHup76aNsYF_nI2NkO8,8641
9
+ graph_engine/context.py,sha256=BfF6MdC4vrrvYQRX5rHoYl44T5MyPmSA65hLtdEJI6Y,6855
10
+ graph_engine/decay.py,sha256=T40Y5hkxILimyGlr97xkSPJXj_1KOs-87PkDvr86CCI,2264
11
+ graph_engine/demo.py,sha256=hXPt4KTtlcsJmFkV5aXyZPs_w_WSmNcx6aHv3oZzdpU,8788
12
+ graph_engine/dream.py,sha256=ZOylVWIE-NZaDndPSxmBTJvlgsqCNdu9BWbZqWCBnAM,19727
13
+ graph_engine/embedder.py,sha256=X4_yvaqnCloBKjW9QYV2kJRGDZSyiPUEHae5V7-QYrw,3030
14
+ graph_engine/engine.py,sha256=r9g5OeNir5yp9vy_znbHuWSorHSl3KSXrySLPr4RsHE,1781
15
+ graph_engine/entities.py,sha256=gK6Jvocek7NqsaAxWAxB4T2FyGbQTl8Q6gG9xBPx1jM,20104
16
+ graph_engine/evals.py,sha256=iXB-UUAbuJO5HTIJov1jubfSGwrBJBtdZHGNmIG3bZY,53343
17
+ graph_engine/feedback.py,sha256=3dO0GNWfvyPZ2E8CMgw-KCMRXI-y4XHL9ZukX-RbcBU,6797
18
+ graph_engine/gaps.py,sha256=VRV8ZoOKpmODruZaBsbE7oqv3zCBRjNcx6Mcve-mJKg,8721
19
+ graph_engine/graph.py,sha256=GhNbirNx5ff7YBQeEpEon0Fbht32lmKW96V761HYGxA,4740
20
+ graph_engine/hygiene.py,sha256=iy9stNX8I48fXPfLNVZqwem2UOmmmaL_bMqIkXsYR0E,7938
21
+ graph_engine/inference.py,sha256=d46D2attuh0XoOP-123DjprwEUZ9iqau2fOO6vPKg-Q,11910
22
+ graph_engine/intent.py,sha256=QrzYXhVu40MxNbP5KG-9RwNmSfJQItX6k7VGNsa3cqU,8973
23
+ graph_engine/merge.py,sha256=w4CAx4SkTHPlI4nJKFVcdA3o7H2ihSKVgJT13ANOUBw,9285
24
+ graph_engine/model.py,sha256=_wARULNEuSB1UhgNhzwsLa1JKxH8jooj2FbBK6l69gs,1488
25
+ graph_engine/namespaces.py,sha256=6kkUpsOgi7OqqFViQr4_5SqzOzGVWKMfMb-OpVdcKF8,2497
26
+ graph_engine/recall.py,sha256=aFDheLrbwM3vo3wrBZixG4DY9RZX90naPq1UhjqFGSc,6540
27
+ graph_engine/report.py,sha256=DNAJvEmoBuRF4Qux7nmtmxA_0fUtRAgtcx-Dd3TAqdQ,16467
28
+ graph_engine/reranker.py,sha256=gLRBpy0ftSyayOWSk5BiyZGo-sSYqn1W6gqmi0TzjqQ,3655
29
+ graph_engine/retrieval.py,sha256=Mh-gBg5N1zuNtdJRP53FKOnU93Jb248LnjaJsHk68nc,14419
30
+ graph_engine/review.py,sha256=QL4V_Q6O4kl7n2OIHBS_yif3463ZxmzqmxKa-mW_Tus,4256
31
+ graph_engine/runtime.py,sha256=Vts4V6W4T-WY2hOogvl2hQ1PczyEzmDPG74EkamKLBA,3462
32
+ graph_engine/server.py,sha256=xoRdlblz_R1ERMlYpaYz7rwFmgNmFvwh0eyZvcFEHgo,7865
33
+ graph_engine/similarity.py,sha256=n_0g1wvcRbc1iFiuNNfTGXfbArcqFT0QNBlc97Kx-C8,1841
34
+ graph_engine/store.py,sha256=6bR4o8zqIo12yYZ9KX6WMoZoZfL9mxTTn3S5omsPB44,2241
35
+ graph_engine/suggester.py,sha256=OQQ-h0sP2dPo_1H0gVpvmb8AQwA4tuxjI0TcqpTJSAg,2032
36
+ graph_engine/temporal.py,sha256=t50JtkHeIqDn_cJ7c0w_aGMMPrl_fVdvdiO7CljIQpE,7416
37
+ graph_engine/tiers.py,sha256=VNCqWeVdRtQD8smMzGUkpoBuXROYEhVAbE87zImkqfs,5760
38
+ graph_engine/mcp/__init__.py,sha256=jUT0aUlmvEZfrmA0TIao10NuLG3p-qpxGWlMnLZ6xkk,66
39
+ graph_engine/mcp/format.py,sha256=yJz-7cOfu0rbIMiXWQEjCEuUQRzgTulkwpURfYuMuTc,2252
40
+ graph_engine/mcp/server.py,sha256=mAJH8Xx-D_K_7DaYuWs-ADnEIKygzStbnBNDO_5Vtk0,17035
41
+ graph_engine/mcp/agent/instructions.md,sha256=mKDEiULBU0GltvpzFJXb6bEKA7XzA9-go6j_rBaA3Mo,1587
42
+ graph_engine/web/app.js,sha256=ppAXUrMdyj20LZxr3AghJvxTvSHWgwy8GS9rByVDYq0,31418
43
+ graph_engine/web/index.html,sha256=85maFD8kf1bUbUirT3qbovUX2qN7k5z-ci-HGIWLfiQ,16827
44
+ graph_engine/web/report.html,sha256=zPpSMHBmc_FCl4MTe6MPL1jq6zWoSlB_0llLklzW3JQ,1854
45
+ graph_engine/web/report.js,sha256=PwN-Y1Uk55ASJcRwi2GUsPJM_6ASYtSnDiHajs7r0i8,1871
46
+ graph_engine/web/review.html,sha256=gCQhPzy1X0WclF8FkekS2Qzj4Ug-7_g2dX1e27oFNyM,5717
47
+ graph_engine/web/review.js,sha256=PWDoIUNiqDGRcJXIm6av2_vZ6kQ7lO3vR8F3T73MSrQ,8726
48
+ graph_engine_memory-0.6.1.dist-info/licenses/LICENSE,sha256=jn5DTZjEHWVudlenBJ6fSb2OZuFctMRSfZFrdE-u-dE,1066
49
+ graph_engine_memory-0.6.1.dist-info/METADATA,sha256=HaYM1cpyo-04Nof5cQw30KzWwU4rwileFlCrOn6P34o,5105
50
+ graph_engine_memory-0.6.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
51
+ graph_engine_memory-0.6.1.dist-info/entry_points.txt,sha256=RnK_gnpj6P2pMt5Mrc3YGf2652GJRqOHM4QndUlRveQ,88
52
+ graph_engine_memory-0.6.1.dist-info/top_level.txt,sha256=Bs0csPGrvqBCO_b7FiwDPInTj6gCDxqfWUVVXoXrLic,13
53
+ graph_engine_memory-0.6.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ig = graph_engine.__main__:main
3
+ ig-mcp = graph_engine.mcp.server:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SaltKing0
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ graph_engine