Remove hardcoded personal references and update README with config options
- Generalized OpenAPI spec reference in client.py - Removed personal IP addresses and user IDs from README - Added MEM0_PREFETCH_LIMIT and MEM0_PREFETCH_SCORE_THRESHOLD to documentation - Updated example configurations with generic values
This commit is contained in:
@@ -42,10 +42,7 @@ Self-hosted Mem0 memory provider for Hermes-Agent. Provides semantic memory sear
|
||||
curl http://localhost:8000/health
|
||||
```
|
||||
|
||||
Your setup uses port 8889:
|
||||
```bash
|
||||
curl http://10.0.0.150:8889/health
|
||||
```
|
||||
Adjust the URL/port as needed for your setup.
|
||||
|
||||
## Installation
|
||||
|
||||
@@ -98,35 +95,30 @@ Set in `~/.hermes/.env`:
|
||||
| `MEM0_BASE_URL` | Local Mem0 server URL | `http://localhost:8000` |
|
||||
| `MEM0_USER_ID` | User identifier | `hermes-user` |
|
||||
| `MEM0_AGENT_ID` | Agent identifier | `hermes` |
|
||||
| `MEM0_PREFETCH_LIMIT` | Max memories to prefetch before LLM call | `3` |
|
||||
| `MEM0_PREFETCH_SCORE_THRESHOLD` | Min similarity score % to include memory (0-100) | `60` |
|
||||
|
||||
Example:
|
||||
```env
|
||||
MEM0_BASE_URL=http://10.0.0.150:8889
|
||||
MEM0_USER_ID=henry_hofmann
|
||||
MEM0_AGENT_ID=hermes
|
||||
```
|
||||
```env
|
||||
MEM0_BASE_URL=http://localhost:8000
|
||||
MEM0_USER_ID=my-user
|
||||
MEM0_AGENT_ID=hermes
|
||||
MEM0_PREFETCH_LIMIT=3
|
||||
MEM0_PREFETCH_SCORE_THRESHOLD=60
|
||||
```
|
||||
|
||||
### Method 2: Config File (Optional Overrides)
|
||||
|
||||
Create `~/.hermes/mem0-local.json` to override specific settings:
|
||||
```json
|
||||
{
|
||||
"base_url": "http://10.0.0.150:8889",
|
||||
"user_id": "henry_hofmann",
|
||||
"base_url": "http://localhost:8000",
|
||||
"user_id": "my-user",
|
||||
"agent_id": "hermes",
|
||||
"rerank": true,
|
||||
"timeout": 10.0
|
||||
}
|
||||
```
|
||||
|
||||
Example for your setup:
|
||||
```json
|
||||
{
|
||||
"base_url": "http://10.0.0.150:8889",
|
||||
"user_id": "henry_hofmann",
|
||||
"agent_id": "hermes",
|
||||
"rerank": true,
|
||||
"timeout": 10.0
|
||||
"timeout": 10.0,
|
||||
"prefetch_limit": 3,
|
||||
"prefetch_score_threshold": 60
|
||||
}
|
||||
```
|
||||
|
||||
@@ -218,7 +210,7 @@ After 5 consecutive API failures, the plugin pauses requests for 120 seconds to
|
||||
|
||||
### Connection issues
|
||||
|
||||
If your Mem0 server is on a different machine (like your 10.0.0.150):
|
||||
If your Mem0 server is on a different machine:
|
||||
- Ensure firewall allows connections on port 8889
|
||||
- Verify the server binds to 0.0.0.0, not just localhost
|
||||
- Check network routing between Hermes-Agent and Mem0 server
|
||||
|
||||
Reference in New Issue
Block a user