Add a memory palace mempalace to your AI Agent

https://github.com/milla-jovovich/mempalace It is a local AI Agent memory system that has become quite popular recently.,It innovatively introduces the concept of memory palace,completely offline。looks very nice,But since the code is written in python,It is still a bit complicated to integrate into mac agent,Here I record the installation process:

Installation steps

pipx

If you installed a new version of python via brew,Then in addition to creating a venv,use pipx It is a good choice,The mempalace installed in this way can be called directly without activating venv every time.。 brew install pipx

mempalace

pipx install mempalace This will install mempalace, After installation, you can use various functions normally,such as init and mine

MCP

This is the more troublesome place,Since this mcp server is a module of mempalace,You can't call it directly。The official readme does not include specific mcp configuration.,You need to write this:

    "mempalace": {
"command": "~/.local/pipx/venvs/mempalace/bin/python",
"args": ["-m", "mempalace.mcp_server"]
}

A little usage

I use this to remember my code projects,I found that actually create directly and then mine,not a good idea,Since the project is still in its early stages,, It does not have a complete file filtering mechanism,Although the initialization process will guide you to manage entities and rooms, etc.,But the final scan will still add the directoryallfile。My data file is too large,So much so that I don't even know if the code has been added,Has it been filtered?,Anyway, any search content is my data itself...

finally i found,Instead of mine entire project,Might as well let AI create and add records by itself,For example, documents in the project,Or simply ask the AI ​​to summarize and write it in。Update anytime in the future,Gradually, the memory bank becomes fuller.。

of course,Another way is to move the files that you don’t want to be indexed first.,Leave only necessary documents and the like,Then mine Move the file back when you're done。

current situation

https://github.com/milla-jovovich/mempalace/issues/37 There is an issue here , Is Chinese AI analysis,At present, this project is still controversial,But I have to say,There is currently no good completely offline external memory system。In general,worth a try。

Original article written by LogStudio:R0uter's Blog » Add a memory palace mempalace to your AI Agent

Reproduced Please keep the source and description link:https://www.logcg.com/archives/4215.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。