Add configurable case-insensitive search
- Add MEM0_CASE_INSENSITIVE config option (default: false) - When enabled, searches with both original and lowercase query - Merges results, keeping highest score for each memory - Fixes case sensitivity issues with Qdrant embeddings - Generalize after-install.md with placeholders instead of personal values
This commit is contained in:
+18
-17
@@ -13,9 +13,9 @@ If not running:
|
||||
docker run -d -p 8000:8000 mem0ai/mem0:latest
|
||||
```
|
||||
|
||||
For your setup on 10.0.0.150:8889:
|
||||
For your setup:
|
||||
```bash
|
||||
curl http://10.0.0.150:8889/health
|
||||
curl http://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>/health
|
||||
```
|
||||
|
||||
### 2. Configure the Plugin
|
||||
@@ -28,8 +28,8 @@ nano ~/.hermes/.env
|
||||
|
||||
Add or update:
|
||||
```env
|
||||
MEM0_BASE_URL=http://10.0.0.150:8889
|
||||
MEM0_USER_ID=henry_hofmann
|
||||
MEM0_BASE_URL=http://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>
|
||||
MEM0_USER_ID=<YOUR_USER_ID>
|
||||
MEM0_AGENT_ID=hermes
|
||||
```
|
||||
|
||||
@@ -37,8 +37,8 @@ Or create a config file:
|
||||
```bash
|
||||
cat > ~/.hermes/mem0-local.json << 'EOF'
|
||||
{
|
||||
"base_url": "http://10.0.0.150:8889",
|
||||
"user_id": "henry_hofmann",
|
||||
"base_url": "http://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>",
|
||||
"user_id": "<YOUR_USER_ID>",
|
||||
"agent_id": "hermes",
|
||||
"rerank": true,
|
||||
"timeout": 10.0
|
||||
@@ -71,8 +71,8 @@ The plugin supports two configuration methods that work together:
|
||||
|
||||
Edit `~/.hermes/.env`:
|
||||
```env
|
||||
MEM0_BASE_URL=http://10.0.0.150:8889
|
||||
MEM0_USER_ID=henry_hofmann
|
||||
MEM0_BASE_URL=http://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>
|
||||
MEM0_USER_ID=<YOUR_USER_ID>
|
||||
MEM0_AGENT_ID=hermes
|
||||
```
|
||||
|
||||
@@ -81,8 +81,8 @@ MEM0_AGENT_ID=hermes
|
||||
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://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>",
|
||||
"user_id": "<YOUR_USER_ID>",
|
||||
"agent_id": "hermes",
|
||||
"rerank": true,
|
||||
"timeout": 10.0
|
||||
@@ -92,9 +92,10 @@ Create `~/.hermes/mem0-local.json` to override specific settings:
|
||||
**Note**: Config file values override environment variables. Use `.env` for defaults and JSON for overrides.
|
||||
|
||||
Key variables:
|
||||
- `MEM0_BASE_URL` — Local server URL (your setup: `http://10.0.0.150:8889`)
|
||||
- `MEM0_USER_ID` — User identifier for memory scoping (your setup: `henry_hofmann`)
|
||||
- `MEM0_BASE_URL` — Local server URL (default: `http://localhost:8000`)
|
||||
- `MEM0_USER_ID` — User identifier for memory scoping (default: `hermes-user`)
|
||||
- `MEM0_AGENT_ID` — Agent identifier (default: `hermes`)
|
||||
- `MEM0_CASE_INSENSITIVE` — Enable case-insensitive search (default: `false`)
|
||||
- `rerank` — Enable reranking for higher precision (default: `true`)
|
||||
- `timeout` — Request timeout in seconds (default: `10.0`)
|
||||
|
||||
@@ -120,12 +121,12 @@ No tool call needed — instant context!
|
||||
|
||||
## Migration from Hardcoded Config
|
||||
|
||||
Your previous hardcoded configuration:
|
||||
If you had a previous hardcoded configuration like:
|
||||
```yaml
|
||||
mem0:
|
||||
enabled: true
|
||||
api_url: http://localhost:8889
|
||||
user_id: henry_hofmann
|
||||
user_id: <your_user_id>
|
||||
collection_name: hermes_memory
|
||||
mode: local
|
||||
transparent:
|
||||
@@ -155,9 +156,9 @@ Is now replaced by the plugin with:
|
||||
If memory doesn't work:
|
||||
|
||||
1. **Check server connectivity**:
|
||||
```bash
|
||||
curl http://10.0.0.150:8889/health
|
||||
```
|
||||
```bash
|
||||
curl http://<YOUR_MEM0_HOST>:<YOUR_MEM0_PORT>/health
|
||||
```
|
||||
|
||||
2. **Check gateway logs**:
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user