← 开源
getmetal

motorhead

🧠 Motorhead is a memory and information retrieval server for LLMs.

AI EngineeringGive agent knowledgeRust
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
917
Star
88
Fork
+0
本周
10
贡献者
创建于 2023-03-29 · 更新于 2026-08-24 · 今日第 12654 名
主要开发者
Czechhsoftboyjimbolambroulabs

getmetal/motorhead 排名第 12,654,有 917 个星标。

同类别比较

getmetal/motorhead 排名第 12,654,此处有 8 个同类条目;china-qijizhifeng/agentic-harness-engineering 排名第 12,649。

同类别比较
名称排名指标
Mininglamp-OSS/octo-cli12,633
语言:
Go
星标数:
920
分叉数:
132
suekou/mcp-notion-server12,638
语言:
TypeScript
星标数:
920
分叉数:
181
简介:
A Model Context Protocol server for connecting Notion to MCP-compatible clients
aws/nova-act12,642
语言:
Python
星标数:
919
分叉数:
149
简介:
Amazon Nova Act is an AWS service for building and deploying highly reliable AI agents that automate UI-based workflows at scale.
china-qijizhifeng/agentic-harness-engineering12,649
语言:
Python
星标数:
918
分叉数:
103
cunjian/pytorch_face_landmark12,661
语言:
Python
星标数:
916
分叉数:
161
简介:
Fast and accurate face landmark detection library using PyTorch; Support 68-point semi-frontal and 39-point profile landmark detection; Support both coordinate-based and heatmap-based inference; Up to 100 FPS landmark inference speed with SOTA face detector on CPU.
google/langfun12,663
语言:
Python
星标数:
916
分叉数:
82
简介:
OO for LLMs
mindscale-noah/MindMemOS12,664
语言:
Python
星标数:
916
分叉数:
100
alchaincyf/huashu-md-html12,668
语言:
CSS
星标数:
915
分叉数:
98
简介:
md/html 双向流水线 · 三个能力一站式:万物→md / md→精美html / html→md。封装 markitdown + Pandoc + html-to-markdown + trafilatura。4 套反 AI slop 主题。Claude Code skill.
关键参数与规格
关键参数与规格
参数值
语言Rust
类别AI Engineering
子类别Give agent knowledge
关键词Memory management
星标数917
分叉数88
贡献者10
创建日期2023-03-29
更新日期2026-08-24
1 天星标数0
7 天星标数0
排名12,654
上次排名12,571
排名变化-83
7 天星标排名13,535
上次 7 天星标排名13,547
7 天星标排名变化12
总星标排名11,892
上次总星标排名11,873
总星标排名变化-19
国家USA
README 摘录

🧠 Motorhead (DEPRECATED) Support is no longer maintained for this project. Motorhead is a memory and information retrieval server for LLMs. When building chat applications using LLMs, memory handling is something that has to be built every time. Motorhead is a server to assist with that process. It provides 3 simple APIs: GET returns messages up to . POST - Send an array of messages to Motorhead to store. Either an existing or new can be used when storing messages, and the session

is automatically created if it did not previously exist. Optionally, can be send in if it needs to get loaded from another datastore. DELETE - deletes the session's message list. A max is set for the LLM to keep track of the conversation. Once that max is hit, Motorhead will process ( messages) and summarize them. Subsequent summaries, as the messages grow, are incremental. POST - searches by text query using VSS. Searches are segmented (filtered) by the session id provided automatically. Config

(default:12) - Number of max messages returned by the server. When this number is reached, a job is triggered to halve it. (default:false) - Enables long term memory using Redisearch VSS. 5-turbo) - Model used to run the incremental summarization. Use or - otherwise some weird things might happen. (default:8000) - Motorhead Server Port - Your api key to connect to OpenAI. (default: - OpenAI API Base URL Azure deployment Additional Environment Variables are required for Azure deployments: How to run With docker

-compose: Or you can use the image directly: Examples Chat JS Example Chat JS Vanilla Example Chat JS Vanilla Hosted Example Chat Python Example

常见问题

记录了多少星标和分叉?

getmetal/motorhead 有 917 个星标和 88 个分叉。

仓库排名是多少?

getmetal/motorhead 排名第 12,654。

记录的语言和类别是什么?

getmetal/motorhead 有 917 个星标,语言为 Rust,类别为 AI Engineering。

哪个仓库排名最接近?

getmetal/motorhead 与 china-qijizhifeng/agentic-harness-engineering 比较,后者排名第 12,649,有 918 个星标。

README

🧠 Motorhead (DEPRECATED)

Support is no longer maintained for this project.

[![License](https://img.shields.io/github/license/getmetal/motorhead?style=flat&label=license&logo=github&color=4f46e5&logoColor=fff)](https://github.com/getmetal/motorhead/blob/main/LICENSE)

Motorhead is a memory and information retrieval server for LLMs.

Why use Motorhead?

When building chat applications using LLMs, memory handling is something that has to be built every time. Motorhead is a server to assist with that process. It provides 3 simple APIs:

  • GET /sessions/:id/memory returns messages up to MAX_WINDOW_SIZE.
{
    "messages": [
        {
            "role": "AI",
            "content": "Electronic music and salsa are two very different genres of music, and the way people dance to them is also quite different."
        },
        {
            "role": "Human",
            "content": "how does it compare to salsa?"
        },
        {
            "role": "AI",
            "content": "Electronic music is a broad genre that encompasses many different styles, so there is no one \"right\" way to dance to it."
        },
        {
            "role": "Human",
            "content": "how do you dance electronic music?"
        },
        {
            "role": "AI",
            "content": "Colombia has a vibrant electronic music scene, and there are many talented DJs and producers who have gained international recognition."
        },
        {
            "role": "Human",
            "content": "What are some famous djs from Colombia?"
        },
        {
            "role": "AI",
            "content": "Baum opened its doors in 2014 and has quickly become one of the most popular clubs for electronic music in Bogotá."
        }
    ],
    "context": "The conversation covers topics such as clubs for electronic music in Bogotá, popular tourist attractions in the city, and general information about Colombia. The AI provides information about popular electronic music clubs such as Baum and Video Club, as well as electronic music festivals that take place in Bogotá. The AI also recommends tourist attractions such as La Candelaria, Monserrate and the Salt Cathedral of Zipaquirá, and provides general information about Colombia's diverse culture, landscape and wildlife.",
    "tokens": 744 // tokens used for incremental summarization
}
  • POST /sessions/:id/memory - Send an array of messages to Motorhead to store.
curl --location 'localhost:8080/sessions/${SESSION_ID}/memory' \
--header 'Content-Type: application/json' \
--data '{
    "messages": [{ "role": "Human", "content": "ping" }, { "role": "AI", "content": "pong" }]
}'

Either an existing or new SESSION_ID can be used when storing messages, and the session is automatically created if it did not previously exist.

Optionally, context can be send in if it needs to get loaded from another datastore.

  • DELETE /sessions/:id/memory - deletes the session's message list.

A max window_size is set for the LLM to keep track of the conversation. Once that max is hit, Motorhead will process (window_size / 2 messages) and summarize them. Subsequent summaries, as the messages grow, are incremental.

  • POST /sessions/:id/retrieval - searches by text query using VSS.
curl --location 'localhost:8080/sessions/${SESSION_ID}/retrieval' \
--header 'Content-Type: application/json' \
--data '{
    "text": "Generals gathered in their masses, just like witches in black masses"
}'

Searches are segmented (filtered) by the session id provided automatically.

Config

  • MOTORHEAD_MAX_WINDOW_SIZE (default:12) - Number of max messages returned by the server. When this number is reached, a job is triggered to halve it.
  • MOTORHEAD_LONG_TERM_MEMORY (default:false) - Enables long term memory using Redisearch VSS.
  • MOTORHEAD_MODEL (default:gpt-3.5-turbo) - Model used to run the incremental summarization. Use gpt-3.5-turbo or gpt-4 - otherwise some weird things might happen.
  • PORT (default:8000) - Motorhead Server Port
  • OPENAI_API_KEY- Your api key to connect to OpenAI.
  • REDIS_URL (required)- URL used to connect to redis.
  • OPENAI_API_BASE (default:https://api.openai.com/v1) - OpenAI API Base URL

Azure deployment

Additional Environment Variables are required for Azure deployments:

  • AZURE_DEPLOYMENT_ID
  • AZURE_DEPLOYMENT_ID_ADA
  • AZURE_API_BASE
  • AZURE_API_KEY

How to run

With docker-compose:

docker-compose build && docker-compose up

Or you can use the image docker pull ghcr.io/getmetal/motorhead:latest directly:

docker run --name motorhead -p 8080:8080 -e PORT=8080 -e REDIS_URL='redis://redis:6379' -d ghcr.io/getmetal/motorhead:latest

Examples

排名相邻
同类项目