etchmem 0.1.1__tar.gz → 0.1.2__tar.gz
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.
- {etchmem-0.1.1 → etchmem-0.1.2}/PKG-INFO +1 -1
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/models.py +1 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/stores/chroma_store.py +3 -1
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem.egg-info/PKG-INFO +1 -1
- {etchmem-0.1.1 → etchmem-0.1.2}/pyproject.toml +1 -1
- {etchmem-0.1.1 → etchmem-0.1.2}/LICENSE +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/README.md +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/config.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/connector/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/connector/base.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/connector/remote.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/consolidate/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/consolidate/worker.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/engine.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/recall/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/recall/recaller.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/stores/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/stores/base.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/util/__init__.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/util/affectability.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem/util/hashing.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem.egg-info/SOURCES.txt +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem.egg-info/dependency_links.txt +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem.egg-info/requires.txt +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/etchmem.egg-info/top_level.txt +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/setup.cfg +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/tests/test_consolidate_idempotent.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/tests/test_formation_buckets.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/tests/test_recall.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/tests/test_reconsolidation.py +0 -0
- {etchmem-0.1.1 → etchmem-0.1.2}/tests/test_remember_recall.py +0 -0
|
@@ -112,6 +112,7 @@ class SearchResult:
|
|
|
112
112
|
score: float # asymmetric blended score
|
|
113
113
|
source: str # "injected" | "relational" | "blended"
|
|
114
114
|
skill: str | None = None
|
|
115
|
+
created_at: float = 0.0 # unix timestamp of the original deposit
|
|
115
116
|
metadata: dict[str, Any] = field(default_factory=dict)
|
|
116
117
|
|
|
117
118
|
|
|
@@ -108,13 +108,15 @@ def _result_to_search_result(
|
|
|
108
108
|
source: str = "unknown",
|
|
109
109
|
) -> SearchResult:
|
|
110
110
|
skill = metadata.get("skill") or None
|
|
111
|
+
created_at = float(metadata.get("created_at", 0.0))
|
|
111
112
|
return SearchResult(
|
|
112
113
|
id=doc_id,
|
|
113
114
|
content=document,
|
|
114
115
|
score=weight * (1.0 - distance), # convert distance → similarity score
|
|
115
116
|
source=source,
|
|
116
117
|
skill=skill,
|
|
117
|
-
|
|
118
|
+
created_at=created_at,
|
|
119
|
+
metadata={k: v for k, v in metadata.items() if k not in ("skill", "created_at")},
|
|
118
120
|
)
|
|
119
121
|
|
|
120
122
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|