Skip to content

Conversation

@bsbodden
Copy link
Contributor

Add vector_storage_type configuration option to enable Redis hash storage
for improved memory efficiency. Supports both "json" (default) and "hash"
storage types with automatic vector serialization.

  • Add vector_storage_type field to IndexConfig for storage type selection
  • Implement byte string serialization for hash storage using array_to_buffer
  • Maintain backward compatibility with JSON storage as default
  • Add comprehensive test coverage for hash storage functionality
  • Ensure type safety with proper schema copying and type annotations

Hash storage provides memory savings for vector data while
maintaining full compatibility with existing vector search operations.

  Add vector_storage_type configuration option to enable Redis hash storage
  for improved memory efficiency. Supports both "json" (default) and "hash"
  storage types with automatic vector serialization.

  - Add vector_storage_type field to IndexConfig for storage type selection
  - Implement byte string serialization for hash storage using array_to_buffer
  - Maintain backward compatibility with JSON storage as default
  - Add comprehensive test coverage for hash storage functionality
  - Ensure type safety with proper schema copying and type annotations

  Hash storage provides memory savings for vector data while
  maintaining full compatibility with existing vector search operations.
@bsbodden bsbodden requested review from tylerhutcherson and removed request for tylerhutcherson June 18, 2025 20:43
@bsbodden bsbodden merged commit fe88e5f into main Jun 18, 2025
19 checks passed
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.

2 participants