返回顶部
n

neural-memory神经记忆

神经网络启发的记忆系统,支持激活扩散和联想检索。安装后即可使用本地模式,配置 LLM 后可启用智能意图分析。/ Neural network-inspired memory with activation spreading. Works out-of-box in local mode; configure LLM for smart intent analysis.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
198
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

neural-memory

Neural Memory / 神经记忆系统

Works out of the box! / 开箱即用!

No configuration required for basic usage. Install and start using immediately.
基础使用无需配置,安装后即可立即使用。



Quick Start / 快速开始

1. Install / 安装

bash
npx clawhub install neural-memory-cn

2. Initialize / 初始化

python
import sys
sys.path.insert(0, ~/.openclaw/skills/neural-memory-cn/scripts)

from thinking import ThinkingModule

Auto-detects and creates storage / 自动检测并创建存储

memory = ThinkingModule()

Start using! / 开始使用!

result = memory.think(民航安全) print(result)

3. Learn New Knowledge / 学习新知识

python
memory.learnandthink(
content=深度学习是机器学习的一个分支...,
concept_name=深度学习,
concept_type=concept,
tags=[AI, 机器学习]
)
memory.save()



Usage Modes / 使用模式


ModeDescriptionLLM Required
smartIntent analysis + activation spreading / 意图分析 + 激活扩散Optional
exact
Direct neuron lookup / 直接神经元查找 | No |
| associative | Hybrid mode / 混合模式 | Optional |

python

Local mode (no LLM needed) / 本地模式(无需 LLM)


result = memory.think(民航安全怎么样, mode=smart)

Exact lookup / 精确查找

result = memory.think(中医, mode=exact)

Optional: Enable LLM for Better Analysis / 可选:启用 LLM 获得更好分析

English: For enhanced intent understanding, configure an LLM provider.

中文: 要增强意图理解能力,可配置 LLM 提供商。

Method 1: Environment Variables / 方式1:环境变量

bash
export NEURALMEMORYLLMAPIKEY=your-api-key
export NEURALMEMORYLLMBASEURL=https://openrouter.ai/api/v1
export NEURALMEMORYLLM_MODEL=openai/gpt-3.5-turbo

Method 2: Setup Script / 方式2:安装脚本

bash
python ~/.openclaw/skills/neural-memory-cn/scripts/setup.py \
--api-key your-key \
--base-url https://openrouter.ai/api/v1 \
--model openai/gpt-3.5-turbo

Method 3: Edit Config / 方式3:编辑配置文件

Edit ~/.openclaw/neural-memory/config.yaml:

yaml
thinking:
intent:
use_llm: true
llmapikey: your-key
llmbaseurl: https://openrouter.ai/api/v1
llm_model: openai/gpt-3.5-turbo



Core Concepts / 核心概念


ConceptDescription (EN)Description (CN)
NeuronKnowledge unit (concept, fact, experience)知识单元(概念、事实、经验)
Synapse
Connection between neurons with weight | 神经元间的连接,带权重 |
| Activation Spreading | Memory retrieval through association | 通过联想进行记忆检索 |
| Intent Layer | Query understanding (optional LLM) | 查询理解(可选 LLM) |


Define Knowledge Domains / 定义知识领域

Edit domain_hints.json for accurate spreading:

json
{
民航: [民航安全, 人为因素, SMS],
中医: [中医诊断, 中药],
系统思维: [AnyLogic, 系统动力学]
}



API Summary / API 摘要

python

Query / 查询


result = memory.think(query, mode=smart)

Learn / 学习

memory.learnandthink(content, name, type, tags)

Get stats / 获取统计

stats = memory.getthinkingstats()

Save / 保存

memory.save()

File Structure / 文件结构

~/.openclaw/neural-memory/
├── config.yaml # Configuration / 配置文件
└── memorylongterm/
├── neurons.json # All neurons / 所有神经元
├── synapses/ # Connections / 连接
└── domain_hints.json # Domain definitions / 领域定义



Documentation / 文档

  • - API Reference: references/api.md
  • Architecture: references/architecture.md

Troubleshooting / 故障排除

IssueSolution
Module not foundCheck sys.path points to scripts/
Empty results
Add neurons with learnandthink() | | LLM not working | Check API key and base URL in config | | Slow queries | Increase hotcachesize in config |

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 neural-memory-cn-1776297904 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 neural-memory-cn-1776297904 技能

通过命令行安装

skillhub install neural-memory-cn-1776297904

下载

⬇ 下载 neural-memory v1.0.1(免费)

文件大小: 57.48 KB | 发布时间: 2026-4-17 15:31

v1.0.1 最新 2026-4-17 15:31
- Added detailed setup and usage instructions in Chinese and English to SKILL.md.
- Explained all usage modes, including local/out-of-box usage and optional LLM integration.
- Provided configuration methods for LLM (environment variables, setup script, config file).
- Documented core concepts, file structure, API, and troubleshooting in an organized format.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部