一个模拟人类大脑结构的开源AI桌宠助手
Project description
🧠 HippoCortex - 类脑AI桌宠助手
一个模拟人类大脑结构的开源AI桌宠助手,拥有自主意识、长期记忆和学习能力。
✨ 核心特性
- 🧠 类脑认知架构:模拟人脑海马体-皮层分工,多专家分区处理不同类型知识
- 💾 长期记忆系统:支持短期→长期→永久记忆分级,自然遗忘与睡眠巩固
- ⚡ 赫布学习机制:遵循"共同激活,连接强化"原则,越用越聪明
- 🌙 睡眠记忆巩固:自动修剪无效突触,强化核心记忆,生成梦境
- 💬 主动交互能力:会主动说话、分享想法、提问,不是被动问答机器
- 🎨 图文多模态:支持图片理解和视觉想象,能"看到"并"想象"画面
- 📚 自主学习能力:会自己读书学习,不断增长知识
- 📊 脑状态可视化:实时显示疲劳度、记忆数、突触连接热力图
🚀 快速开始
前置要求
- Python 3.11+
- Ollama 已安装并运行
安装
pip install hippocortex
运行
bash
运行
hippocortex
首次运行
程序会自动下载所需的 AI 模型:
gemma3:4b - 大语言模型
bge-m3 - 向量嵌入模型
🎮 使用说明
基本交互
点击桌宠头像打开聊天窗口
可以发送文字和图片
桌宠会根据对话内容学习和记忆
核心功能
聊天:自然语言对话,支持上下文理解
睡眠:点击 "睡眠" 按钮,让 AI 休息并巩固记忆
学习:AI 会在空闲时自动读书学习
走神:AI 空闲时会进入走神状态,回忆和联想记忆
分析:右键菜单可以分析大脑突触连接热力图
🧠 大脑状态说明
表格
状态 说明
🧠 大脑已唤醒 正常工作状态
🌙 走神中... 正在回忆和联想记忆
💬 有话想对你说... 有主动意图要表达
🌙 睡眠巩固中... 正在睡眠,整理记忆
❌ 思考失败 遇到错误
🛠️ 开发
本地运行
bash
运行
git clone https://github.com/a123547879/HippoCortex.git
cd HippoCortex
pip install -r requirements.txt
cd src
python MainTest5.py
项目结构
plaintext
hippocortex/
├── core/ # 核心认知模块
│ ├── BrainCore.py # 大脑核心
│ ├── Hippocampus.py # 海马体
│ └── Cortex.py # 大脑皮层
├── experts/ # 多专家系统
│ ├── ConceptExpert.py
│ ├── SpatialExpert.py
│ ├── AbstractExpert.py
│ └── VisualExpert.py
├── services/ # 服务模块
│ ├── IntentionService.py
│ ├── MindWanderingService.py
│ └── BookReadingService.py
├── ui/ # 用户界面
│ └── brain_pet_window.py
└── main.py # 程序入口
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dyao_hippocortex-3.0.2.tar.gz
(16.4 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dyao_hippocortex-3.0.2.tar.gz.
File metadata
- Download URL: dyao_hippocortex-3.0.2.tar.gz
- Upload date:
- Size: 16.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97749fdf9ae9658c1b01201f43d08ec8bee60f51d723bc33bc445c9441e8aaf4
|
|
| MD5 |
b5df58d5b96fce758accd924321f108f
|
|
| BLAKE2b-256 |
f5137d811af180c4bd93ca67cce12cb2fab68bc572e513e105bd1717f64148e8
|
File details
Details for the file dyao_hippocortex-3.0.2-py3-none-any.whl.
File metadata
- Download URL: dyao_hippocortex-3.0.2-py3-none-any.whl
- Upload date:
- Size: 16.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d14be6c8540e4c2feac821c64757269ebff0935e5d18106cc27b6a2086b4efff
|
|
| MD5 |
7da00a6af218c96835adcb0c8b33ff10
|
|
| BLAKE2b-256 |
b4d44e07bd0f495d2e7a4e957e4e09a363b1d3afe050048f8e5b599489960e52
|