I fixed OpenClaw's memory using local RAG and MiniMax M2.5

Опубликовано: 16 Май 2026
на канале: Globalcobots AI
5,119
55

MiniMax Coding Plan 12% Discount: https://platform.minimax.io/subscribe...
MiniMax Platform: https://platform.minimax.io
API Documentation: https://platform.minimax.io/docs/guid...

(UPDATE) To further improve memory efficiency, I now recommend using bge-m3 instead of nomic.

By default, OpenClaw searches your documents literally, word by word. If it doesn't find an exact match, it won't return a result. In this video, I'll show you how to improve this by setting up a RAG with Ollama embeddings (free) and MiniMax M2.5 so that the agent performs semantic search and understands what you're looking for even if you don't use the exact words that are in the document.

This directly improves the agent's memory efficiency because it can now retrieve relevant information from your documents without relying on exact matches.

It's easier than it seems. In this video, I'll show you, in just three steps, how to set it up locally with Ollama and how to use the MiniMax M2.5 API, one of the most powerful AI agents currently available, to get answers based on your actual documents with much greater accuracy.

⚠️ Note: Agents can perform actions on your computer. Use them with minimal permissions and, if possible, in an isolated environment (Docker, virtual machine, or a separate computer). Always review files before deleting or modifying them, and never share passwords or sensitive data.

Resources:
OpenClaw: https://openclaw.ai/
MiniMax API: https://www.minimax.io/
Ollama: https://ollama.com/
RAG Configuration: https://gist.github.com/hugoramallo/8...

Customized AI Training
https://www.globalcobots.com

Chapters:
00:00 Solution to Amnesia in OpenClaw Agents
00:43 Differences: Literal Search vs. Semantics (RAG)
01:12 Tutorial: 3 Steps to Improve Your AI's Memory
01:53 Live Demo: Data Recovery with Local RAG
02:50 Step 1: Installing Ollama and Nomic Embed (Embeddings)
04:02 Step 2: Configuring openclaw.json and Workspace
05:00 70/30 Hybrid Search: Maximizing Efficiency
05:37 Advantages of MiniMax M2.5 in Autonomous Agents
06:35 Step 3: Restarting the Gateway and SQLite Database
07:12 Configuring Rules in agents.md for OpenClaw
08:11 How to Automate Daily Indexing (Cron Job)
08:35 Conclusions and AI Memory Optimization

#OpenClaw #RAG #AIAgents