-
Notifications
You must be signed in to change notification settings - Fork 125
Vectordb upsert #155
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
Open
nick-youngblut
wants to merge
10
commits into
ArcInstitute:main
Choose a base branch
from
nick-youngblut:vectordb_upsert
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Vectordb upsert #155
Conversation
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
- Updated README to clarify that existing cell records will be updated with new embeddings and provided example dataset details. - Improved CLI argument parsing by adding custom descriptions for embedding and transcriptomic commands. - Introduced `CustomFormatter` for better help message formatting. - Added `max-workers` argument for parallel processing in embedding queries. - Refined result formatting in `run_emb_query` to include additional metadata and renamed columns for clarity. - Updated `StateVectorDB` to support merging and updating entries in LanceDB.
- Added custom descriptions for embedding commands in `add_arguments_emb`. - Improved help messages for query filtering in `add_arguments_query`. - Enhanced transcriptomic command descriptions in `add_arguments_tx` for clarity. - Introduced `CustomFormatter` for better formatting of help messages across CLI commands.
…escriptions Improve CLI descriptions
- Revised the description for the `transform` command to specify that results can be inserted into a LanceDB vector store. - Enhanced the `query` command description to indicate it searches for cells with similar embeddings in a LanceDB vector store created with the `transform` command.
- Introduced `run_emb_vectordb` command to retrieve and display summary statistics of the LanceDB vector database. - Updated `README.md` with usage instructions and output format options for the new command. - Enhanced `StateVectorDB` class with `get_database_summary` method to compute and return comprehensive database statistics. - Added argument parsing for the new command in the CLI module.
- Updated argument names in `add_arguments_infer` and `add_arguments_preprocess_infer` to use kebab-case (e.g., `--embed-key`, `--pert-col`, `--model-dir`, `--celltype-col`, `--batch-size`). - Modified help message for the `--seed` argument in `add_arguments_preprocess_infer` to remove default value mention. - Removed commented-out help handler in `add_arguments_train` for clarity.
- Updated argument names in the CLI to use kebab-case for consistency (e.g., `--output-dir`, `--num-hvgs`, `--control-condition`, `--pert-col`). - Added `--log-level` argument to allow dynamic logging level configuration across commands. - Modified logging setup in various modules to utilize the new `log_level` argument for consistent logging behavior. - Updated `README.md` with corresponding changes to command usage examples.
- Reformatted command examples in the README to use multi-line syntax for better readability. - Ensured consistency in the presentation of CLI commands for `tx predict` and `tx infer` sections.
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.
This pull request introduces several enhancements and new features to the embedding and transcriptomic workflows, focusing on improving usability, adding functionality, and refining the CLI interface. The key changes include adding a new
vectordbcommand for summarizing vector database statistics, improving CLI descriptions and formatting, and updating database operations for better metadata handling.Enhancements to embedding workflows:
vectordbcommand: Added avectordbsubcommand to summarize LanceDB vector database statistics, including dataset counts, embedding keys, and dimensions. Supports output in table, JSON, and YAML formats (src/state/_cli/_emb/_vectordb.py,src/state/__main__.py,README.md) [1] [2] [3].query_cell_id,subject_rank) and renamed columns for clarity. Added parallel processing support with a--max-workersoption (src/state/_cli/_emb/_query.py) [1] [2] [3].--dataset-nameoption for specifying dataset names during embedding transformations. Removed the--lancedb-updateoption and improved logging for database operations (src/state/_cli/_emb/_transform.py,src/state/emb/inference.py) [1] [2] [3].Improvements to CLI interface:
CustomFormatterclass to combine default and raw formatting styles for better CLI help messages (src/state/_cli/_utils.py,src/state/__main__.py) [1] [2].emb) and transcriptomic (tx) subcommands, improving usability (src/state/_cli/_emb/__init__.py,src/state/_cli/_tx/__init__.py) [1] [2].Documentation updates:
vectordbcommand and clarified examples for querying and transforming embeddings (README.md) [1] [2].