Release v2.3.0 - #14
Merged
Merged
Conversation
LangChain and LlamaIndex packages are no longer installed by default. Users of these integrations must now install with: pip install simplevecdb[integrations] Clear ImportError messages guide existing users through the migration. Bumps version to 2.3.0.
Adds version-sync pre-commit hook and normalizes file permissions.
- Add input validation guards (k<=0, length mismatches) on all search/add methods - Fix streaming placeholder bug: empty list never matched `is None` check - Add double-close guard and context manager support to VectorDB - Add NaN/Inf/empty-list validation in metadata filters - Graceful per-collection error handling in cross-collection search - Defense-in-depth table name validation in check_migration - Batch numpy embedding→bytes conversion (~8% faster inserts) - Deduplicate .tolist() calls and use np.unique in search paths - Update README to document `simplevecdb[integrations]` extra - Skip integration tests when deps not installed - Bump dev target to Python 3.12 (requires-python stays >=3.10)
…ions - Move _batched() from core.py to utils.py, use in catalog.py batch updates - Make _normalize_key() delegate to _derive_key() instead of duplicating PBKDF2 - Use COLLECTION_NAME_PATTERN constant instead of hardcoded regex - Use DEFAULT_DISTANCE_STRATEGY/DEFAULT_QUANTIZATION in VectorDB defaults - Replace local HNSW constants in usearch_index.py with constants module - Use USEARCH_BATCH_THRESHOLD in search.py for batch vs sequential selection
- MMR: pre-normalize embeddings, vectorized matrix-vector similarity, O(1) pop replaces O(n) list.remove, hoist loop-invariant - Merge get_documents_by_ids + get_embeddings_by_ids into single SQL query (get_documents_and_embeddings_by_ids) for MMR - Skip redundant SELECT after executemany when explicit IDs provided - Collapse get_parent from 2 sequential SELECTs to 1 self-JOIN - Cache _cluster_table_ready flag to skip DDL on repeated calls - FLOAT serialize: np.asarray().tobytes() replaces struct.pack loop - np.array → np.asarray on every search/insert path to avoid copies - Placeholder strings: list multiply replaces generator in all 9 sites - Upsert loop: skip when index empty, cache int(key) per iteration - defaultdict(list) in auto_tag, hoist import random to module level - Add v2.3.0 changelog entry
Cover empty vectors, unknown algorithm, missing sklearn/hdbscan, generate_keywords edge cases (outliers, empty texts, ValueError fallback), silhouette single cluster, assign_to_nearest_centroid.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 88392d0a23
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Add comprehensive unit tests for core, search, usearch_index, catalog, encryption, embeddings/server, and async_core. Fix test_rag mock.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pip install simplevecdb[integrations]with runtime import guards and v2.3.0 migration messagingnp.asarrayovernp.array, FLOAT serialization viatobytes(), placeholder list-multiply, cluster table DDL caching,get_parentself-JOINconstants.pyrequires-python >= "3.10"maintainedTest plan
🤖 Generated with Claude Code