Skip to content

fix: Harden benchmark infrastructure and resolve OSS data integrity#5

Open
ixchio wants to merge 1 commit into
mem0ai:mainfrom
ixchio:fix/benchmark-hardening
Open

fix: Harden benchmark infrastructure and resolve OSS data integrity#5
ixchio wants to merge 1 commit into
mem0ai:mainfrom
ixchio:fix/benchmark-hardening

Conversation

@ixchio
Copy link
Copy Markdown

@ixchio ixchio commented May 7, 2026

Description

This PR addresses structural reliability and temporal data integrity issues within the benchmark infrastructure.

Changes

  1. Temporal Integrity in OSS Server: Added explicit timestamp support to the AddRequest model and injected it into metadata["created_at"]. This prevents the silent dropping of observation dates during ingestion and ensures temporal reasoning benchmarks function correctly.
  2. Missing User Profiles: Fully implemented the get_user_profile functionality within Mem0Client so it supports both oss (via memory aggregation) and cloud modes to prevent runtime missing attribute errors.
  3. Resource Leak Remediation: Refactored the ingestion loops across the locomo, beam, and longmemeval runners. Debug file descriptors are now safely wrapped in robust try...finally structures to guarantee release upon exit or exception, mitigating OSError: [Errno 24] during high-volume batch executions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant