Skip to content

feat(qdrant): pass search_params in find#668

Closed
AnneYang720 wants to merge 9 commits intodocarray:mainfrom
AnneYang720:feat_qdrant_search_params
Closed

feat(qdrant): pass search_params in find#668
AnneYang720 wants to merge 9 commits intodocarray:mainfrom
AnneYang720:feat_qdrant_search_params

Conversation

@AnneYang720
Copy link
Copy Markdown
Contributor

@AnneYang720 AnneYang720 commented Oct 24, 2022

Goals:
This PR is related to issue #666

  • update code
  • add test
  • update documentation

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 24, 2022

Codecov Report

Merging #668 (2c1bb62) into main (108b9d2) will decrease coverage by 10.07%.
The diff coverage is 100.00%.

@@             Coverage Diff             @@
##             main     #668       +/-   ##
===========================================
- Coverage   88.48%   78.40%   -10.08%     
===========================================
  Files         133      133               
  Lines        6528     6529        +1     
===========================================
- Hits         5776     5119      -657     
- Misses        752     1410      +658     
Flag Coverage Δ
docarray 78.40% <100.00%> (-10.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/storage/qdrant/find.py 78.43% <100.00%> (-13.57%) ⬇️
docarray/document/strawberry_type.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/array/mixins/dataloader/helper.py 0.00% <0.00%> (-100.00%) ⬇️
docarray/document/mixins/strawberry.py 16.27% <0.00%> (-79.07%) ⬇️
docarray/document/mixins/text.py 24.00% <0.00%> (-74.00%) ⬇️
docarray/array/mixins/reduce.py 26.92% <0.00%> (-73.08%) ⬇️
docarray/document/mixins/featurehash.py 15.68% <0.00%> (-64.71%) ⬇️
docarray/array/mixins/io/pushpull.py 32.50% <0.00%> (-60.00%) ⬇️
docarray/array/mixins/io/dataframe.py 41.66% <0.00%> (-58.34%) ⬇️
docarray/document/mixins/content.py 38.46% <0.00%> (-53.85%) ⬇️
... and 48 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@JoanFM JoanFM marked this pull request as draft October 24, 2022 13:08
@JoanFM
Copy link
Copy Markdown
Member

JoanFM commented Oct 24, 2022

Converting to draft until documentation is ready

@AnneYang720 AnneYang720 marked this pull request as ready for review October 24, 2022 13:22
@JoanFM JoanFM requested a review from NicholasDunham October 24, 2022 13:30
query_vector=query_vector,
query_filter=filter,
search_params=None,
search_params=rest.SearchParams(**search_params),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

u have said that search_params is an Optional[Dict], but this is not true, if I pass None in search_params this will not work.

q: 'QdrantArrayType',
limit: int = 10,
filter: Optional[Dict] = None,
search_params: Optional[Dict] = {},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set it as None as default and handle it properly

query: 'QdrantArrayType',
limit: int = 10,
filter: Optional[Dict] = None,
search_params: Optional[Dict] = {},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

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.

4 participants