-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
weaviate: migrate from weaviate python client v3 to v4 (#463)
* upgrade to latest weaviate server * upgrade to latest weaviate client * reformat code * create client using v4 api * use v4 api to create collection * store collection obj for convenience * upgrade filters to use v4 api * upgrade batch write to use v4 api * use v4 api cursor to retrieve all docs * upgrade query with filters to use v4 api * upgrade filter documents to use v4 API * update weaviate fixture to align with v4 API * update v4 to v3 conversion logic * fix typo * fix date v4 to v3 conversion logic * hardcode limit in query filter * fix typo * upgrade weaviate server * update v4 to v3 object date conversion the property name will still appear in the object's propertities even though it is not set. So, we need to check if it is not None too * fix invert logic bug * upgrade delete function to v4 API * update bm25 search to v4 API * update count docs to v4 API * update _write to use v4 API * support optional filters in bm25 * update embedding retrieval to use v4 API * update from_dict for v4 API * fix write invalid input test * update other test_from_dict for V4 * update test_to_dict for v4 * update test_init for v4 API * try to pas test_init * pass test_init * add exception handling in _query_paginated * remove commented out code * remove dead code * remove commented out code * return weaviate traceback too when query error occurs * make _query_paginated return an iterator * refactor _to_document * remove v4 to v3 object conv fn * update to_dict serialization * update test case * update weaviate server * updates due to latest client changes * update test case due to latest client changes * Fix filter converters return types * Rework query methods * Fix batch writing errors * Handle different vector types in _to_document * Add pagination tests * Fix pagination test --------- Co-authored-by: Silvano Cerza <[email protected]>
- Loading branch information
1 parent
f95e4d0
commit 38bc78e
Showing
8 changed files
with
273 additions
and
346 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.