feat: Add Astra document store operations#2904
Open
Keyur-S-Patel wants to merge 5 commits intodeepset-ai:mainfrom
Open
feat: Add Astra document store operations#2904Keyur-S-Patel wants to merge 5 commits intodeepset-ai:mainfrom
Keyur-S-Patel wants to merge 5 commits intodeepset-ai:mainfrom
Conversation
b47ce08 to
4371bc4
Compare
4371bc4 to
578447a
Compare
Contributor
Author
|
@julian-risch this issue is similar to the one you reviewed here #2903 |
Contributor
|
@Keyur-S-Patel thank you for the contribution! I did a few minor changes. |
Contributor
Author
|
@davidsbatista ty, Can we merge this change and close this PR? |
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.
Related Issues
AstraDocumentStore#2637Proposed Changes:
Added the new document store operations requested for
AstraDocumentStore:count_documents_by_filter(filters: dict[str, Any]) -> intcount_unique_metadata_by_filter(filters: dict[str, Any], metadata_fields: list[str]) -> dict[str, int]get_metadata_fields_info() -> dict[str, dict]get_metadata_field_min_max(metadata_field: str) -> dict[str, Any]get_metadata_field_unique_values(metadata_field: str, search_term: str | None, from_: int, size: int) -> tuple[list[str], int]Implementation details:
AstraDocumentStoreAPIs on top of Astra’s existing collection capabilities.How did you test it?
hatch run test:unithatch run fmthatch run test:typesOutput for integration testsNotes for the reviewer
Checklist
Checklist
fix:,feat:,build:,chore:,ci:,docs:,style:,refactor:,perf:,test:.