Skip to content

fix: resolve Python anti-patterns and remove duplicate rrf entry#154

Closed
Jah-yee wants to merge 577 commits into
EverMind-AI:mainfrom
Jah-yee:fix/python-anti-patterns-and-typo
Closed

fix: resolve Python anti-patterns and remove duplicate rrf entry#154
Jah-yee wants to merge 577 commits into
EverMind-AI:mainfrom
Jah-yee:fix/python-anti-patterns-and-typo

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 3, 2026

Good day,

Summary

I found and fixed the remaining Python anti-patterns in the codebase that were not addressed in previous PRs.

Changes

1. Replace == None with is None (3 instances)

  • src/biz_layer/mem_memorize.py (lines 1293, 1329, 1348)
  • Following PEP 8: use is None or is not None instead of == None or != None

2. Replace bare except with except Exception (2 instances)

  • src/biz_layer/mem_db_operations.py (line 146)
  • src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py (line 127)
  • Bare except clauses catch all exceptions including SystemExit and KeyboardInterrupt

3. Remove duplicate rrf entry in docstring

  • demo/utils/simple_memory_manager.py (line 251)
  • Clarified the remaining rrf description as Keyword + Vector + Reciprocal Rank Fusion

Testing

  • Python syntax validation passed (python3 -m py_compile)
  • All modified files compile without errors

Related Issues

感谢你们的奉献,希望能提供帮助。如果我解决得有问题或有待商妥的地方,请在下面留言,我会来处理。

Warmly,
Taizi

Yi Bai and others added 30 commits December 10, 2025 19:08
feat:support eventlog/foresight in keyword/vector/hybird search mode for v1-api

See merge request npc-work/aic/ai/evermemos-opensource!52
Resolved conflicts:
- demo/extract_memory.py: Keep V3 API config and prompt_clear_data function
- Updated type imports: Memory -> BaseMemory, ForesightItem -> Foresight
- Kept PromptManager architecture with get_prompt_by()
- Used absolute imports per project standards

Risk check passed: all imports, prompts, and extractor compatibility verified.
feat: Optimize demo and related memory chat logic

See merge request npc-work/aic/ai/evermemos-opensource!40
:global_with_meridians: utc

:global_with_meridians: utc

:global_with_meridians: utc
:global_with_meridians: utc

See merge request npc-work/aic/ai/evermemos-opensource!55
refactor:v1 api search, support rrf and agentic search, update readme

See merge request npc-work/aic/ai/evermemos-opensource!53
Feature/boundary opt

See merge request npc-work/aic/ai/evermemos-opensource!54
cyfyifanchen and others added 27 commits February 10, 2026 22:24
* docs: update the banner on github

* docs: update the image
- Remove duplicate summary_text assignment in conv_memcell_extractor.py
- Remove redundant cluster state file exports in stage1_memcells_extraction.py since cluster_storage.save_cluster_state already handles saving both cluster_state and cluster_map internally

Co-authored-by: root <root@nlu-guishangtong-sbajo4-0.nlu-guishangtong-sbajo4.lizr-a.svc.dev00-bcebj.local>
Co-authored-by: Claude <noreply@anthropic.com>
* refactor: normalize request converter parsing

* refactor: dedupe request param parsing in memory controller

* refactor: harden lightweight retrieval similarity handling

* fix: close agentic services during business shutdown
* docs: update README with community links and branding

* docs: update community links and badge labels
* docs: update README with new competition banner and examples

* docs: update light mode divider image asset link

* docs: update README with corrected spelling and added links

* docs: update README with competition and example links

* docs: remove commented section and fix light mode divider

* docs: remove divider images from README
…Mind-AI#116)

Update the OpenClaw Long-Term Memory Plugin section to reflect its release status by removing "coming this week" label. Also fix the markdown image link syntax to properly wrap the image in a link to the agent_memory branch.
…#119)

Update the link for the use case image and add reference to the EverMind + OpenClaw plugin repository. The change clarifies the project structure and provides direct access to the plugin code.
* docs: update README with corrected links and plugin info

Update the link for the use case image and add reference to the EverMind + OpenClaw plugin repository. The change clarifies the project structure and provides direct access to the plugin code.

* docs: update usecases image link to point to agent_memory branch
- Introduced the EverOS OpenClaw Plugin, enabling full-lifecycle memory management for OpenClaw through the EverOS backend.
- Added core files including index.js for plugin registration, openclaw.plugin.json for metadata, and README documentation.
- Implemented installation script for easy setup and configuration.
- Included support for memory retrieval and storage via the EverMemOS API.
- Added Chinese translation of the README for broader accessibility.
…Plugin

- Updated the searchMemories function to consolidate search requests and handle profile fetching more efficiently.
- Removed unsupported memory types from configuration and adjusted memory type handling in search logic.
- Enhanced message processing by stripping channel metadata and including pending messages in responses.
- Improved parsing of search responses to accommodate new profile data structures and pending messages.
* chore: rename project from EverMemOS to EverOS

Update all references to the project name, including:
- NOTICE and project metadata files
- Documentation and README files
- Code comments and docstrings
- Configuration files and system names
- Example data and demo references
- Adapter directories and imports
- Docker container names and labels
- Security report subject line
- Plugin descriptions and metadata

This rebranding consolidates the project under the EverOS name while maintaining full compatibility.

* docs: update README.zh.md with new project focus and structure

Update the Chinese README to reflect the project's current focus on Memory Sparse Attention (MSA) instead of the Memory Genesis Competition.
- Replace competition announcement with MSA paper and technical highlights.
- Simplify and update the table of contents.
- Reorder and comment out old badge sections.
- Update banner image and arXiv badge link.
- General cleanup and formatting improvements.
1. Replace == None with is None (PEP 8 compliance)
   - src/biz_layer/mem_memorize.py (lines 1293, 1329, 1348)

2. Replace bare except with except Exception
   - src/biz_layer/mem_db_operations.py (line 146)
   - src/infra_layer/adapters/out/search/repository/episodic_memory_milvus_repository.py (line 127)
   Bare except clauses catch all exceptions including SystemExit and KeyboardInterrupt

3. Remove duplicate rrf mode description
   - demo/utils/simple_memory_manager.py (docstring cleanup)

Testing: Python syntax validation passed (python3 -m py_compile)
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.