Skip to content

feat(store): add hash storage support for vector data #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2025

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.

1 participant