Give your AI long-term memory in 1 command. SQLite-based, no setup, no servers.
Project description
AI-IQ
Give your AI long-term memory in 1 command.
LLMs forget everything. AI-IQ makes them remember.
Install
pip install ai-iq
Quick Start
from ai_iq import Memory
memory = Memory()
# Add memories
memory.add("User prefers dark mode", tags=["preference", "ui"])
memory.add("Redis bug fixed with network_mode: host", category="learning")
# Search (hybrid keyword + semantic)
results = memory.search("redis networking")
for r in results:
print(f"#{r['id']}: {r['content']}")
# Update and delete
memory.update(1, "User STRONGLY prefers dark mode")
memory.delete(1)
CLI
memory-tool add learning "Docker needs network_mode: host" --project MyApp
memory-tool search "docker networking"
memory-tool dream # Consolidate duplicates, detect conflicts
Claude Code Plugin
Use AI-IQ directly in Claude Code with auto-capture:
/plugin marketplace add kobie3717/ai-iq
/plugin install ai-iq
See CLAUDE_CODE_PLUGIN.md for details.
Why AI-IQ?
- Single SQLite file = your AI's brain — No servers, no vector DB, no setup
- No cloud dependencies — Works offline, owns your data, zero API keys
- Works with any Python agent — Not locked to Claude, OpenAI, or any vendor
- Hybrid search — Keyword (FTS5) + semantic (vector) + graph traversal
- Memories decay naturally — FSRS-6 algorithm like human memory
Advanced Features
See docs/REFERENCE.md for complete documentation:
- Beliefs & Predictions — Confidence tracking with Bayesian updates
- Knowledge Graph — Entities, relationships, spreading activation
- Dream Mode — REM-like consolidation (dedup, conflict detection)
- Identity Layer — Auto-discovers behavioral traits
- Narrative Memory — Builds cause-effect stories from causal graph
- Meta-Learning — Search improves from feedback loops
Example
See examples/chatbot_with_memory.py
Documentation
Complete Reference • Examples • Architecture
Requirements
Python 3.8+ and SQLite 3.37+. Optional: pip install ai-iq[full] for semantic search.
License
MIT
Links
- GitHub: github.com/kobie3717/ai-iq
- PyPI: pypi.org/project/ai-iq
- Discord: discord.gg/Y2jCXNGgE
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
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 ai_iq-5.6.0.tar.gz.
File metadata
- Download URL: ai_iq-5.6.0.tar.gz
- Upload date:
- Size: 162.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb7eb5473f9498defe22dee79371ea63afa320a7d74e5cb3862083dc78d131b5
|
|
| MD5 |
3ab4d3e135e2f2a81f68fd540f7856ca
|
|
| BLAKE2b-256 |
42350f507bc0a308dab19c58ba7d446518c9eedb1473d6c7d46d3b946d2687b0
|
File details
Details for the file ai_iq-5.6.0-py3-none-any.whl.
File metadata
- Download URL: ai_iq-5.6.0-py3-none-any.whl
- Upload date:
- Size: 125.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f35b007a9b05e33f0fffb5d0c62b55c9bedfb72c75a1cc54d74d59aa8bfe68ef
|
|
| MD5 |
9d9aacd16c400a11c2ba903db391704f
|
|
| BLAKE2b-256 |
717825761a981d9078835ab99b12bbae91026b954efde2abbb3cb41f6b3230bf
|