Skip to content

[Integration Proposal] LLM RAG Booster β€” Gravitational Compression to reduce SimpleMem token footprint Β #62

@Tryboy869

Description

@Tryboy869

Hi SimpleMem team πŸ‘‹

I'm Daouda, builder of LLM RAG Booster β€” a zero-dependency compression layer for LLM memory that achieves 8.1Γ— compression with 100% integrity guarantee, using quantum-inspired gravitational encoding.

SimpleMem's core strength is semantic lossless compression of dialogue into atomic memory units. I'd like to propose an integration where LLM RAG Booster acts as a storage compression layer on top of SimpleMem's atomic entries β€” reducing the token footprint further when retrieving context for the LLM.


The complementarity

SimpleMem and LLM RAG Booster solve adjacent problems:

SimpleMem LLM RAG Booster
Focus Semantic compression of dialogues Storage compression of chunks
Method LLM-driven atomic encoding Gravitational Bit encoding
Output Atomic, timestamped memory units Compressed chunks, keyword-indexed
Retrieval Intent-aware 3-stage pipeline Top-K keyword scoring
Dependencies LLM API Zero (pure Python)

The combination :

SimpleMem produces high-quality atomic memory units β†’ LLM RAG Booster compresses them for storage β†’ on retrieval, only relevant units are decompressed and passed to the LLM.

This could reduce the already-efficient SimpleMem token usage even further, especially for long-running agents with hundreds of memory units.


Concrete proposal

# Concept β€” SimpleMem producing atoms, Booster storing them
from simplemem import SimpleMem
from booster import GravitationalMemory

mem   = SimpleMem()
store = GravitationalMemory(n_max=15)  # 1,240 states per atom

# Stage 1 β€” SimpleMem compresses dialogue into atomic units
mem.add_dialogue("Alice", "My name is Daouda, I work on AI memory.", "2026-01-01T10:00:00")
atoms = mem.finalize()  # β†’ atomic, timestamped facts

# Stage 2 β€” Booster compresses and stores atoms
for atom in atoms:
    store.store(atom.text, atom.timestamp)

# Stage 3 β€” Intent-aware retrieval + Booster decompression
answer = mem.ask("What is my name?", storage=store)

Links


Question

Would you be open to a discussion about using LLM RAG Booster as an optional storage backend in SimpleMem? I can prototype an adapter and open a draft PR.

Also curious: does SimpleMem currently have a pluggable storage interface, or is it tightly coupled to the current DB layer?

β€” Daouda Abdoul Anzize
πŸ“§ anzize.contact@proton.me
🐦 @Nexusstudio100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions