feat: 改进内存测试系统,添加环境变量控制和优雅降级机制 #51
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
改进内存测试系统,添加环境变量控制和优雅降级机制
主要改进
BUILD_EMBEDDINGS_FOR_MEMORY环境变量支持,可控制是否计算嵌入向量run_specific_memory_test.py支持单独运行特定测试MEMORY_TEST_USAGE.md使用文档技术细节
constants.py支持环境变量控制嵌入向量计算episodic_memory_manager.py的搜索方法选择逻辑test_memory.py中delete_event_by_id的参数名错误测试验证
这些改进使得内存测试系统更加灵活和可靠,支持不同的部署环境需求。