generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Labels
architectureArchitecture and design decisionsArchitecture and design decisionstechnical-debtTechnical debt that should be addressedTechnical debt that should be addressed
Milestone
Description
Summary
Remove deprecated functionality that is no longer needed to reduce codebase complexity and dependencies.
Items to Remove
1. FAISS-based Embeddings Search
- Remove FAISS vector search implementation
- Remove
faiss-cpudependency frompyproject.toml - This will significantly reduce the virtual environment size (~38 MB for faiss + related libs)
2. File-based Backend
- Remove file-based storage repository implementation
- The project has moved to MongoDB/DocumentDB as the primary storage backend
3. EFS References from Terraform
- Remove all EFS (Elastic File System) references from Terraform infrastructure code
- EFS was used for the file-based backend which is being deprecated
Benefits
- Reduced dependencies: Removing
faiss-cpu,torch,sentence-transformerscould save ~6GB in the virtual environment - Simpler codebase: Less code paths to maintain
- Clearer architecture: Single storage backend (MongoDB/DocumentDB) instead of multiple options
Files to Review
registry/repositories/file/- File-based repository implementationregistry/embeddings/- FAISS and sentence-transformers usagepyproject.toml- Dependencies to removeterraform/- EFS module and references
Acceptance Criteria
- All FAISS-related code removed
- File-based backend code removed
- EFS Terraform resources removed
- Dependencies updated in
pyproject.toml - All tests pass after removal
- Documentation updated to reflect changes
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
architectureArchitecture and design decisionsArchitecture and design decisionstechnical-debtTechnical debt that should be addressedTechnical debt that should be addressed