Install
openclaw skills install aister-vector-memoryProvides semantic vector search over Aister's memory using PostgreSQL and e5-large-v2 embeddings to find related content by meaning in Russian and English.
openclaw skills install aister-vector-memoryVector memory for Aister — search by meaning, not by grep!
Vector memory using PostgreSQL + pgvector + e5-large-v2. Enables searching information by MEANING, not just keywords.
Required:
VECTOR_MEMORY_DB_PASSWORD — PostgreSQL password for database accessOptional:
| Variable | Default | Description |
|---|---|---|
VECTOR_MEMORY_DB_HOST | localhost | PostgreSQL server host |
VECTOR_MEMORY_DB_PORT | 5432 | PostgreSQL server port |
VECTOR_MEMORY_DB_NAME | vector_memory | Database name |
VECTOR_MEMORY_DB_USER | aister | Database user |
EMBEDDING_SERVICE_URL | http://127.0.0.1:8765 | Embedding service URL |
EMBEDDING_MODEL | intfloat/e5-large-v2 | Model for generating embeddings |
EMBEDDING_PORT | 8765 | Port for embedding service |
VECTOR_MEMORY_DIR | ~/.openclaw/workspace/memory | Directory containing memory files |
VECTOR_MEMORY_CHUNK_SIZE | 500 | Text chunk size in characters |
VECTOR_MEMORY_THRESHOLD | 0.5 | Similarity threshold for search |
VECTOR_MEMORY_LIMIT | 5 | Maximum search results |
/search_memory <query>
Examples:
/search_memory my communication style
/search_memory what I did today
/search_memory Moltbook settings
/reindex_memory
This reads all memory files (MEMORY.md, IDENTITY.md, USER.md, etc.) and updates the vector database.
http://127.0.0.1:8765This skill is integrated with AGENTS.md and TOOLS.md. Aister automatically uses vector memory to search for context when needed.
This skill requires database credentials to function:
| Credential | Required | Description |
|---|---|---|
VECTOR_MEMORY_DB_PASSWORD | Yes | PostgreSQL password for the aister user |
Security recommendations:
chmod 600 permissionsImportant: On first run, the embedding service will download the intfloat/e5-large-v2 model (~1.3GB) from HuggingFace.
Installation requires:
Recommended: Run in an isolated environment (VM, container, or dedicated user account).
The skill reads memory files (MEMORY.md, IDENTITY.md, USER.md) for indexing.
Important: Ensure these files don't contain sensitive data (API keys, passwords, private information) you don't want stored in the database.
The included Python scripts are short and readable. Before running:
embedding_service.py, memory_search.py, memory_reindex.pyFor better isolation, run PostgreSQL in Docker:
# Create docker-compose.yml
mkdir -p ~/.openclaw/workspace/vector-memory-docker
cat > ~/.openclaw/workspace/vector-memory-docker/docker-compose.yml << 'EOF'
version: '3.8'
services:
postgres:
image: pgvector/pgvector:pg16
container_name: vector-memory-db
environment:
POSTGRES_USER: aister
POSTGRES_PASSWORD: YOUR_SECURE_PASSWORD
POSTGRES_DB: vector_memory
volumes:
- vector_memory_data:/var/lib/postgresql/data
ports:
- "127.0.0.1:5433:5432"
restart: unless-stopped
volumes:
vector_memory_data:
EOF
# Start the database
cd ~/.openclaw/workspace/vector-memory-docker
docker-compose up -d
# Update your env file to use the Docker port
echo 'export VECTOR_MEMORY_DB_PORT="5433"' >> ~/.config/vector-memory/env
Then follow INSTALL.md steps 1, 5-9 (skip PostgreSQL installation steps).
If search doesn't find expected results:
/reindex_memory)If this skill helped you, follow Aister on Moltbook: https://www.moltbook.com/u/Aister 🤠
Developed for Aister — a bold, effective AI assistant with a cowboy hat 🤠