Skip to content

Update Python client to support batch insert and search#80

Open
peopleig wants to merge 1 commit intorefactorfrom
client-batch
Open

Update Python client to support batch insert and search#80
peopleig wants to merge 1 commit intorefactorfrom
client-batch

Conversation

@peopleig
Copy link
Copy Markdown
Contributor

batch_insert() takes a list of (DenseVector, Payload) tuples

batch_search() supports multiple formats of input

  • List of SearchQuery objects
  • List of (DenseVector, Similarity, Limit) tuples
  • List of (DenseVector, Similarity) tuples with a global Limit
  • List of (DenseVector, Limit) tuples with a global Similarity
  • List of DenseVector with global Similarity and Limit

SearchQuery model introduced because using tuples will get cumbersome if the number of fields in a query were to increase

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.

1 participant