powermem
powermem copied to clipboard
[Bug]: Database adaptation that does not support sparse vectors
Describe the bug
When opening the sparse vector function, using a database that does not support sparse vector function will result in an error.
Environment
0.3.0
Fast reproduce steps
- Set
OCEANBASE_INCLUDE_SPARSE=true - Using a database without sparse vector functionality
- Initialize memory
Expected behavior
- Reminder: Sparse vector function is not supported.
- Downgrade search, automatically disable sparse vector function, use original logic for search.
Actual behavior
No response
Additional context
No response
Verified, now in databases that do not support sparse vector functionality, the search function is automatically downgraded to the original search logic and will not block