superlocalmemory 3.3.10 → 3.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "superlocalmemory",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.11",
|
|
4
4
|
"description": "Information-geometric agent memory with mathematical guarantees. 4-channel retrieval, Fisher-Rao similarity, zero-LLM mode, EU AI Act compliant. Works with Claude, Cursor, Windsurf, and 17+ AI tools.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-memory",
|
package/pyproject.toml
CHANGED
|
@@ -115,7 +115,7 @@ class EncodingConfig:
|
|
|
115
115
|
|
|
116
116
|
# Fact extraction
|
|
117
117
|
chunk_size: int = 10 # Conversation turns per extraction chunk
|
|
118
|
-
max_facts_per_chunk: int =
|
|
118
|
+
max_facts_per_chunk: int = 10 # V3.3.11: increased from 5 to preserve more details
|
|
119
119
|
min_fact_confidence: float = 0.3
|
|
120
120
|
|
|
121
121
|
# Entity resolution
|
|
@@ -166,6 +166,27 @@ def run_store(
|
|
|
166
166
|
turns=[content], session_id=session_id,
|
|
167
167
|
session_date=parsed_date, speaker_a=speaker,
|
|
168
168
|
)
|
|
169
|
+
|
|
170
|
+
# V3.3.11: Also store raw content as a verbatim fact to preserve details
|
|
171
|
+
# that fact extraction may abstract away (dates, names, specifics).
|
|
172
|
+
# This ensures BM25 and semantic search can always find the original text.
|
|
173
|
+
if content.strip() and len(content.strip()) >= 20:
|
|
174
|
+
import uuid
|
|
175
|
+
verbatim = AtomicFact(
|
|
176
|
+
fact_id=uuid.uuid4().hex[:16],
|
|
177
|
+
content=content.strip(),
|
|
178
|
+
fact_type=FactType.EPISODIC,
|
|
179
|
+
entities=[],
|
|
180
|
+
session_id=session_id,
|
|
181
|
+
observation_date=parsed_date,
|
|
182
|
+
confidence=0.9,
|
|
183
|
+
importance=0.5,
|
|
184
|
+
)
|
|
185
|
+
# Avoid duplicate if extraction already produced the exact same text
|
|
186
|
+
extracted_texts = {f.content.strip().lower() for f in facts}
|
|
187
|
+
if verbatim.content.strip().lower() not in extracted_texts:
|
|
188
|
+
facts.append(verbatim)
|
|
189
|
+
|
|
169
190
|
if not facts:
|
|
170
191
|
return []
|
|
171
192
|
|