Repository navigation
[GH-703] Semantic: Add ingestion trigger configuration. - #755
Conversation
In addition adds in time based trigger.
There was a problem hiding this comment.
Pull request overview
This PR adds configurable ingestion trigger parameters to the Semantic Memory system, addressing issue #703. The changes introduce both message count and time-based age triggers for controlling when ingestion occurs.
Key changes:
- Adds
ingestion_trigger_messagesandingestion_trigger_ageconfiguration fields toSemanticMemoryConfwith support for ISO duration strings and numeric seconds - Introduces
created_attimestamp tracking for history entries across all storage implementations - Renames
feature_update_message_limittouningested_message_limitfor clarity throughout the codebase
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
src/memmachine/common/configuration/__init__.py |
Adds ingestion trigger configuration fields to SemanticMemoryConf |
src/memmachine/common/configuration/mixin_confs.py |
Adds timedelta serialization support for YAML output |
src/memmachine/common/resource_manager/semantic_manager.py |
Wires new configuration parameters to semantic service initialization |
src/memmachine/semantic_memory/semantic_memory.py |
Renames parameter, adds time-based filtering to background ingestion task |
src/memmachine/semantic_memory/storage/storage_base.py |
Adds older_than parameter to get_history_set_ids interface |
src/memmachine/semantic_memory/storage/sqlalchemy_pgvector_semantic.py |
Implements created_at column and older_than filtering for PostgreSQL storage |
src/memmachine/semantic_memory/storage/neo4j_semantic_storage.py |
Implements created_at property and older_than filtering for Neo4j storage |
tests/memmachine/semantic_memory/storage/in_memory_semantic_storage.py |
Implements created_at tracking and older_than filtering for in-memory test storage |
src/memmachine/semantic_memory/storage/alembic_pg/versions/62dff1150a46_add_created_at_to_history_add.py |
Database migration to add created_at column to history table |
tests/memmachine/common/configuration/test_semantic_conf.py |
Adds tests for new configuration fields with various input formats |
tests/memmachine/semantic_memory/storage/test_semantic_storage.py |
Adds comprehensive tests for older_than filtering behavior |
| Various test files | Updates test fixtures to use renamed uningested_message_limit parameter |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@o-love I gave it a go using this config: When storing a memory it still does not trigger an ingestion |
|
@ChristianKniep I think you aren't using this branch properly. The provided config is invalid and would cause an error during startup. You can look at the tests or pr description to see usages of both. |
Adds in ingestion trigger parameters to Semantic Memory Config.
In addition adds time based age trigger.
The timedelta can be represented as an ISO string or a numeric representation in seconds.
Fixes/Closes
#703
#753
Type of change
How Has This Been Tested?