feat(memory): add enhanced-memory plugin — two-tier store with condensation and semantic search - #33379
Closed
labaznov wants to merge 1 commit into
Closed
feat(memory): add enhanced-memory plugin — two-tier store with condensation and semantic search#33379labaznov wants to merge 1 commit into
labaznov wants to merge 1 commit into
Conversation
…sation and semantic search A new memory provider plugin that offers: - Two-tier fact storage: raw_facts → condenser → condensed - FTS5 full-text search on both tiers with auto-sync triggers - Pluggable embedding providers for semantic vector search: * Gemini API (default, 3072-dim) * OpenAI API (1536/3072-dim, supports custom base_url) * Local sentence-transformers (no API needed, cpu/cuda/mps) - Automatic fact extraction from conversations (EN + RU patterns) - Priority-based condensation with category-aware scoring - Thread-safe SQLite with WAL mode - Hooks: on_session_end, on_memory_write, on_pre_compress Categories: user_pref, project, tool, env, decision, security, general with configurable priority ranges and keyword-based boosting. Requires: Python 3.10+, SQLite 3.35+ (FTS5) Optional: pip install sqlite-vec + embedding provider (Gemini/OpenAI/local)
Collaborator
|
This must be a standalone plugin repo now, see CONTRIBUTING.md |
Author
|
ohh sry just a moment, it seems i will did it again, cancel plz |
Author
|
Done! Moved to a standalone plugin repo as per CONTRIBUTING.md: 👉 https://github.com/labaznov/hermes-enhanced-memory Includes:
Install: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A new memory provider plugin (
enhanced-memory) that offers a structured, two-tier architecture for persistent agent memory.Features
raw_facts→ condenser →condensed— raw conversational facts are periodically grouped, deduplicated, and summarized into priority-ranked condensed entriesbase_urlfor Azure/vLLM/Ollama)on_session_end,on_memory_write,on_pre_compressArchitecture
Configuration
Categories
Requirements
pip install sqlite-vec+ one of: GOOGLE_API_KEY / OPENAI_API_KEY /pip install sentence-transformersFiles
__init__.pystore.pycondenser.pyembedding_providers.pyembeddings.pyplugin.yamlREADME.mdSKILL.mdTesting
Tested locally with: