pymentisdb 0.9.0__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.
- pymentisdb-0.9.0/PKG-INFO +94 -0
- pymentisdb-0.9.0/README.md +66 -0
- pymentisdb-0.9.0/pymentisdb.egg-info/PKG-INFO +94 -0
- pymentisdb-0.9.0/pymentisdb.egg-info/SOURCES.txt +7 -0
- pymentisdb-0.9.0/pymentisdb.egg-info/dependency_links.txt +1 -0
- pymentisdb-0.9.0/pymentisdb.egg-info/requires.txt +6 -0
- pymentisdb-0.9.0/pymentisdb.egg-info/top_level.txt +1 -0
- pymentisdb-0.9.0/pyproject.toml +52 -0
- pymentisdb-0.9.0/setup.cfg +4 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymentisdb
|
|
3
|
+
Version: 0.9.0
|
|
4
|
+
Summary: Python client for MentisDB - semantic hash-chained memory for agents
|
|
5
|
+
Author-email: Angel Leon <gubatron@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/CloudLLM-ai/mentisdb
|
|
8
|
+
Project-URL: Documentation, https://docs.rs/mentisdb/latest/mentisdb/
|
|
9
|
+
Project-URL: Repository, https://github.com/CloudLLM-ai/mentisdb
|
|
10
|
+
Project-URL: Issues, https://github.com/CloudLLM-ai/mentisdb/issues
|
|
11
|
+
Keywords: agents,memory,llm,langchain,semantic-memory,mentisdb
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Requires-Dist: requests>=2.31.0
|
|
24
|
+
Provides-Extra: langchain
|
|
25
|
+
Requires-Dist: langchain-core>=0.1.0; extra == "langchain"
|
|
26
|
+
Requires-Dist: langchain>=0.1.0; extra == "langchain"
|
|
27
|
+
Requires-Dist: pydantic>=2.0.0; extra == "langchain"
|
|
28
|
+
|
|
29
|
+
# pymentisdb
|
|
30
|
+
|
|
31
|
+
Official Python client for [MentisDB](https://github.com/CloudLLM-ai/mentisdb) — a durable semantic memory engine for AI agents.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install pymentisdb
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
With LangChain integration:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install pymentisdb[langchain]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Quick Start
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from pymentisdb import MentisDbClient, ThoughtType
|
|
49
|
+
|
|
50
|
+
client = MentisDbClient()
|
|
51
|
+
|
|
52
|
+
# Append a thought
|
|
53
|
+
thought = client.append_thought(
|
|
54
|
+
thought_type=ThoughtType.INSIGHT,
|
|
55
|
+
content="Rate limiting is the real bottleneck."
|
|
56
|
+
)
|
|
57
|
+
print(f"Appended: {thought.id}")
|
|
58
|
+
|
|
59
|
+
# Semantic search
|
|
60
|
+
results = client.ranked_search(text="performance optimization")
|
|
61
|
+
for hit in results.results:
|
|
62
|
+
print(f"[{hit.score.total:.3f}] {hit.thought.content}")
|
|
63
|
+
|
|
64
|
+
# Context bundles
|
|
65
|
+
bundles = client.context_bundles(text="cache invalidation", limit=5)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## LangChain Integration
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from pymentisdb import MentisDbMemory
|
|
72
|
+
from langchain_openai import ChatOpenAI
|
|
73
|
+
|
|
74
|
+
memory = MentisDbMemory(
|
|
75
|
+
chain_key="my-project",
|
|
76
|
+
agent_id="assistant"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
80
|
+
chain = llm.with_memory(memory)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Configuration
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
# Remote server
|
|
87
|
+
client = MentisDbClient(base_url="http://my.mentisdb.com:9472")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Full Documentation
|
|
91
|
+
|
|
92
|
+
- [MentisDB documentation](https://docs.mentisdb.com)
|
|
93
|
+
- [REST API reference](https://docs.mentisdb.com/developer)
|
|
94
|
+
- [Python client guide](https://mentisdb.com/docs/pymentisdb-python-client.html)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# pymentisdb
|
|
2
|
+
|
|
3
|
+
Official Python client for [MentisDB](https://github.com/CloudLLM-ai/mentisdb) — a durable semantic memory engine for AI agents.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install pymentisdb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
With LangChain integration:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
pip install pymentisdb[langchain]
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```python
|
|
20
|
+
from pymentisdb import MentisDbClient, ThoughtType
|
|
21
|
+
|
|
22
|
+
client = MentisDbClient()
|
|
23
|
+
|
|
24
|
+
# Append a thought
|
|
25
|
+
thought = client.append_thought(
|
|
26
|
+
thought_type=ThoughtType.INSIGHT,
|
|
27
|
+
content="Rate limiting is the real bottleneck."
|
|
28
|
+
)
|
|
29
|
+
print(f"Appended: {thought.id}")
|
|
30
|
+
|
|
31
|
+
# Semantic search
|
|
32
|
+
results = client.ranked_search(text="performance optimization")
|
|
33
|
+
for hit in results.results:
|
|
34
|
+
print(f"[{hit.score.total:.3f}] {hit.thought.content}")
|
|
35
|
+
|
|
36
|
+
# Context bundles
|
|
37
|
+
bundles = client.context_bundles(text="cache invalidation", limit=5)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## LangChain Integration
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from pymentisdb import MentisDbMemory
|
|
44
|
+
from langchain_openai import ChatOpenAI
|
|
45
|
+
|
|
46
|
+
memory = MentisDbMemory(
|
|
47
|
+
chain_key="my-project",
|
|
48
|
+
agent_id="assistant"
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
52
|
+
chain = llm.with_memory(memory)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Configuration
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
# Remote server
|
|
59
|
+
client = MentisDbClient(base_url="http://my.mentisdb.com:9472")
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Full Documentation
|
|
63
|
+
|
|
64
|
+
- [MentisDB documentation](https://docs.mentisdb.com)
|
|
65
|
+
- [REST API reference](https://docs.mentisdb.com/developer)
|
|
66
|
+
- [Python client guide](https://mentisdb.com/docs/pymentisdb-python-client.html)
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pymentisdb
|
|
3
|
+
Version: 0.9.0
|
|
4
|
+
Summary: Python client for MentisDB - semantic hash-chained memory for agents
|
|
5
|
+
Author-email: Angel Leon <gubatron@gmail.com>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/CloudLLM-ai/mentisdb
|
|
8
|
+
Project-URL: Documentation, https://docs.rs/mentisdb/latest/mentisdb/
|
|
9
|
+
Project-URL: Repository, https://github.com/CloudLLM-ai/mentisdb
|
|
10
|
+
Project-URL: Issues, https://github.com/CloudLLM-ai/mentisdb/issues
|
|
11
|
+
Keywords: agents,memory,llm,langchain,semantic-memory,mentisdb
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
Requires-Dist: requests>=2.31.0
|
|
24
|
+
Provides-Extra: langchain
|
|
25
|
+
Requires-Dist: langchain-core>=0.1.0; extra == "langchain"
|
|
26
|
+
Requires-Dist: langchain>=0.1.0; extra == "langchain"
|
|
27
|
+
Requires-Dist: pydantic>=2.0.0; extra == "langchain"
|
|
28
|
+
|
|
29
|
+
# pymentisdb
|
|
30
|
+
|
|
31
|
+
Official Python client for [MentisDB](https://github.com/CloudLLM-ai/mentisdb) — a durable semantic memory engine for AI agents.
|
|
32
|
+
|
|
33
|
+
## Installation
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
pip install pymentisdb
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
With LangChain integration:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install pymentisdb[langchain]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Quick Start
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from pymentisdb import MentisDbClient, ThoughtType
|
|
49
|
+
|
|
50
|
+
client = MentisDbClient()
|
|
51
|
+
|
|
52
|
+
# Append a thought
|
|
53
|
+
thought = client.append_thought(
|
|
54
|
+
thought_type=ThoughtType.INSIGHT,
|
|
55
|
+
content="Rate limiting is the real bottleneck."
|
|
56
|
+
)
|
|
57
|
+
print(f"Appended: {thought.id}")
|
|
58
|
+
|
|
59
|
+
# Semantic search
|
|
60
|
+
results = client.ranked_search(text="performance optimization")
|
|
61
|
+
for hit in results.results:
|
|
62
|
+
print(f"[{hit.score.total:.3f}] {hit.thought.content}")
|
|
63
|
+
|
|
64
|
+
# Context bundles
|
|
65
|
+
bundles = client.context_bundles(text="cache invalidation", limit=5)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## LangChain Integration
|
|
69
|
+
|
|
70
|
+
```python
|
|
71
|
+
from pymentisdb import MentisDbMemory
|
|
72
|
+
from langchain_openai import ChatOpenAI
|
|
73
|
+
|
|
74
|
+
memory = MentisDbMemory(
|
|
75
|
+
chain_key="my-project",
|
|
76
|
+
agent_id="assistant"
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
llm = ChatOpenAI(model="gpt-4")
|
|
80
|
+
chain = llm.with_memory(memory)
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Configuration
|
|
84
|
+
|
|
85
|
+
```python
|
|
86
|
+
# Remote server
|
|
87
|
+
client = MentisDbClient(base_url="http://my.mentisdb.com:9472")
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Full Documentation
|
|
91
|
+
|
|
92
|
+
- [MentisDB documentation](https://docs.mentisdb.com)
|
|
93
|
+
- [REST API reference](https://docs.mentisdb.com/developer)
|
|
94
|
+
- [Python client guide](https://mentisdb.com/docs/pymentisdb-python-client.html)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pymentisdb"
|
|
7
|
+
version = "0.9.0"
|
|
8
|
+
description = "Python client for MentisDB - semantic hash-chained memory for agents"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
authors = [
|
|
12
|
+
{name = "Angel Leon", email = "gubatron@gmail.com"}
|
|
13
|
+
]
|
|
14
|
+
keywords = ["agents", "memory", "llm", "langchain", "semantic-memory", "mentisdb"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Operating System :: OS Independent",
|
|
20
|
+
"Programming Language :: Python :: 3",
|
|
21
|
+
"Programming Language :: Python :: 3.10",
|
|
22
|
+
"Programming Language :: Python :: 3.11",
|
|
23
|
+
"Programming Language :: Python :: 3.12",
|
|
24
|
+
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
|
25
|
+
]
|
|
26
|
+
requires-python = ">=3.10"
|
|
27
|
+
dependencies = [
|
|
28
|
+
"requests>=2.31.0",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[project.optional-dependencies]
|
|
32
|
+
langchain = [
|
|
33
|
+
"langchain-core>=0.1.0",
|
|
34
|
+
"langchain>=0.1.0",
|
|
35
|
+
"pydantic>=2.0.0",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[project.urls]
|
|
39
|
+
Homepage = "https://github.com/CloudLLM-ai/mentisdb"
|
|
40
|
+
Documentation = "https://docs.rs/mentisdb/latest/mentisdb/"
|
|
41
|
+
Repository = "https://github.com/CloudLLM-ai/mentisdb"
|
|
42
|
+
Issues = "https://github.com/CloudLLM-ai/mentisdb/issues"
|
|
43
|
+
|
|
44
|
+
[tool.setuptools.packages.find]
|
|
45
|
+
where = ["."]
|
|
46
|
+
include = ["pymentisdb*"]
|
|
47
|
+
|
|
48
|
+
[tool.setuptools.package-data]
|
|
49
|
+
pymentisdb = ["py.typed"]
|
|
50
|
+
|
|
51
|
+
[tool.pytest.ini_options]
|
|
52
|
+
testpaths = ["tests"]
|