feat(rag): add MemoryBlobStore for testing and fast local execution #3084
ramashishmaurya
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
AgentScope Version
2.0.8
Description
Background & Purpose:
AgentScope currently provides
LocalBlobStoreandS3BlobStorefor RAG document storage. However, during unit testing or lightweight agent executions where disk persistence is unnecessary, requiring disk I/O or an AWS/MinIO configuration slows down development and clutters the filesystem.Changes Made:
MemoryBlobStoreinsrc/agentscope/app/rag/blob_store/_memory.py, providing a zero-dependency, fully in-memory implementation of theBlobStoreBaseinterface usingio.BytesIO.MemoryBlobStorethrough the__init__.pyinterface.tests/blob_store_memory_test.pyto validate exact byte equality, chunked reading, idempotent deletions, and proper missing-file exception handling.How to test this PR:
pytest tests/blob_store_memory_test.pyChecklist
Please check the following items before code is ready to be reviewed.
All reactions