Commit Graph

375 Commits

Author SHA1 Message Date
tellet-q
bc2d47276b tests: Add more test cases 2024-06-28 16:31:22 +02:00
tellet-q
2a4a6bdb9a tests: Add 2 cases (no query, no prefetch and on filtered prefetch). 2024-06-28 16:31:18 +02:00
Arnaud Gourlay
b96646c1ce Merge pull request #669 from qdrant/query-local-mode-tests-lookup-from
Add lookup_from test
2024-06-28 16:28:33 +02:00
tellet-q
b24fff38df Update async client 2024-06-28 15:53:36 +02:00
tellet-q
5f02bad5a1 Raise ValueError if vector name not found 2024-06-28 15:50:23 +02:00
tellet-q
f2330ed228 Fix make negative test fail 2024-06-28 15:44:10 +02:00
tellet-q
d6211808bc Fix positive flow and add negative tests 2024-06-28 15:42:00 +02:00
tellet-q
2514a4aa32 tests: Add lookup_from test 2024-06-28 14:27:46 +02:00
Arnaud Gourlay
a34262d53c Merge pull request #667 from qdrant/fix-local-maxsim
fix: fix maxsim
2024-06-28 11:59:13 +02:00
George Panchuk
38fe29633b fix: wait for upload collection 2024-06-28 12:35:33 +03:00
George Panchuk
0176f2fe27 fix: fix maxsim 2024-06-28 12:23:53 +03:00
George
6400c8316b fix: increase context search limit (#666)
* fix: increase context search limit

* fix: reduce collection size for context test
2024-06-28 10:10:44 +03:00
Arnaud Gourlay
37e167d2e2 add init tests for sparse & multi 2024-06-27 19:59:08 +02:00
Luis Cossío
c3e8ec00e5 Local mode for Query 2024-06-27 19:46:25 +02:00
Arnaud Gourlay
23ef4c6f86 Merge pull request #664 from qdrant/fix-query-checks
fix: fix isinstance check, query conversion, query batch request
2024-06-27 19:22:18 +02:00
George Panchuk
f77ad3567a fix: regen async 2024-06-27 18:34:41 +03:00
George Panchuk
c599e20268 fix: fix isinstance check, query conversion, query batch request 2024-06-27 18:31:41 +03:00
Arnaud Gourlay
32e9595d62 Merge pull request #662 from qdrant/update-query-points-signature
new: update query signature, id type and return type
2024-06-26 17:16:09 +02:00
George Panchuk
40e0c62a4f new: update query signature, id type and return type 2024-06-26 17:42:39 +03:00
Andrey Vasnetsov
6ff600c94b rollback fast-embed query method (#658)
* rollback fastembed query method

* un-deprecate query

* fix: regen async, roll back generator tmp workaround

* fix: don't skip fastembed tests

* new: add query batch points interface, fix minor bugs (#660)

* new: add query batch points interface, fix minor bugs

* fix: do not exclude ids from lookup collection from search (#661)

* Update qdrant_client/qdrant_client.py

Co-authored-by: Luis Cossío <luis.cossio@outlook.com>

---------

Co-authored-by: Luis Cossío <luis.cossio@outlook.com>

* fix: regen async

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
Co-authored-by: Luis Cossío <luis.cossio@outlook.com>
2024-06-26 17:13:40 +03:00
George
00da88e947 new: add query interface draft (#655)
* new: add query interface draft

* fix: temporarily update fastembed generator

* review fixes

* generate async client

* generate async client

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2024-06-25 09:21:28 +02:00
George
31aca81b88 new: update prefetch structure, fix start from pydantic v1 bug (#656)
* new: update prefetch structure, fix start from pydantic v1 bug

* fix: fix missing multivec_config replacement in local mode
2024-06-24 12:19:12 +02:00
George
9ea4db1291 new: add conversions pt.1 (#654)
* new: add conversions pt.1

* fix: fix multivec param name

* fix: fix other multivec config param

* fix: fix sparse index config conversion, multivector config typo

* fix: fix empty vectors conversion, fix sparse vector test

* fix: fix legacy sparse vectors usage

* new: add convert query interface

* fix: fix order value conversion

* fix: fix conversion bugs, add tests

* fix: increase coverage

* fix: increase test coverage 2

* fix: fix bugs, increase test coverage

* fix: fix query isinstance check in tests

* minor refactoring

* new: convert flat filter

* fix: add missing min should check

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2024-06-23 15:36:25 +02:00
George
08e0fc37f3 multivectors in local mode pt.1 (#651)
* draft: multivectors in local mode pt.1

* fix: fix types, update multi distances

* fix: fix mypy

* fix: regen async

* fix: fix dot product

* fix: fix insertion

* fix: fix context pair condition

* fix: fix loading multivectors
2024-06-22 15:42:23 +02:00
Andrey Vasnetsov
815a784469 Update openapi v1 10 x (#622)
* update api with conversions

* introduce IDF modifier for sparse vectors in local mode

* generate stuff

* regen async

* Update tests/fixtures/points.py

* fix: address review comments

* upd models

* fix: update grpc overwrite payload conversion, fix order by conversion (#653)

---------

Co-authored-by: George <george.panchuk@qdrant.tech>
2024-06-20 17:55:35 +02:00
George
a23dce3755 fix: fix bool filters for pydantic<2.6 (#646) 2024-06-13 19:44:21 +02:00
George
af4941ec51 fix: fix integer index conversion (#640) 2024-06-07 17:29:33 +02:00
Luis Cossío
597731f0ca allow string RecommendStrategy with prefer_grpc=True (#637) 2024-06-05 19:42:51 -04:00
George
5ca9f9a9ab new: return copy of payload (#627)
* new: return copy of payload

* new: deepcopy new payload (#628)
2024-05-21 18:30:02 +02:00
Andrey Vasnetsov
8556cc86d6 Drop black (#623)
* replace black with ruff

* use line length

* remove isort

* regen async

* regen async

* fix ruff version [no-ci]
2024-05-07 20:47:27 +02:00
George
3bdb6f6719 new: add gpu support for fastembed, add fastembed providers (#612)
* new: add gpu support for fastembed, add fastembed providers

* new: update fastembed, add fastembed-gpu, add type alias for onnx providers

* new: update readme

* fix: fix poetry.lock
2024-05-03 21:23:44 +02:00
Anush
6df732478a fix: QdrantClient __init__ docstring fix (#619) 2024-05-02 21:23:39 +02:00
Arnaud Gourlay
b97b5faf26 Merge pull request #617 from qdrant/fix-local-mode-geo-box-antimeridian-crossing
Fix local mode geo box for antimeridian crossing
2024-05-02 11:35:04 +02:00
Arnaud Gourlay
d1063b1d75 Fix local mode geo box for antimeridian crossing 2024-05-02 11:20:46 +02:00
Andrey Vasnetsov
720746321f V1.9.x (#608)
* update models

* up backward compatibility version

* refactoring: address review comment

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-22 14:28:02 +02:00
George
987ce2821a fix: align formatters versions (#602) 2024-04-19 15:55:51 +02:00
George
96db3864ca new: convert nan and inf in local mode to none (#603)
* tests: update nan payload tests with pydantic 2.7

* fix: update local mode to mimic pydantic>=2.7.0

* fix: fix mypy

* fix: do not convert bytes

* fix: allow nan values in payload in local mode
2024-04-19 15:55:02 +02:00
SamirPS
e0c4d7bc5c Merge pull request #527 from rishabgit/docs-typo
docs: small typo fix of extra word in quickstart
2024-04-18 22:01:52 +02:00
Andrey Vasnetsov
0ccac25f3c deprecate recreate_collection (#601)
* add deprecation warning

* async client

* fmt

* fix: replace logging.warning with warnings.warn

* refactoring: update warning

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-18 17:26:46 +02:00
Andrey Vasnetsov
67103fca36 do not use vectors_count in test and in local mode (#600)
* do not use vectors_count in test and in local mode

* fix: remove indexed vectors count comparison in sparse vector tests

* tests: return tests for full snapshot, increase timeout

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-18 17:26:33 +02:00
George
16814b4bb9 fix: fix field schema type conversion (#605)
* fix: fix field schema type conversion

* fix: fix names

* fix: fix payload schema type datetime call
2024-04-17 18:36:02 +02:00
Arnaud Gourlay
33727ecef1 Merge pull request #599 from qdrant/tackle-warning-scalar-divide
Remove warning for scalar divide with inf
2024-04-16 19:55:31 +02:00
Arnaud Gourlay
45d66df977 Remove warning for scalar divide with inf 2024-04-16 16:20:16 +02:00
Olli-Pekka Heinisuo
d957ca7ba7 Feat: bearer token authentication support (#591)
* bearer token authentication provider support

* add tests and checks, move auth file to separate dir

* fix error message

* remove locks

* rename var

* refactoring: refactor exceptions, fix mypy

* fix: regen async

* tests: extend token tests to check token updates

* new: add warning when auth token provider is used with an insecure connection

* fix: propagate auth token to rest client even with prefer_grpc set

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-16 15:42:21 +02:00
George
12141f61e6 fix: prevent access to a closed instance methods in local mode (#594)
* fix: prevent access to a closed method instance in local mode

* fix: regen async
2024-04-15 20:00:08 +02:00
George
98f984c749 fix: replace vectors_count with count api (#588) 2024-04-10 18:49:33 +02:00
George
9ef5c0afc4 fix: fix set_parse_model property in async (#583)
* fix: fix set_parse_model property in async

* fix: fix remaining async methods
2024-04-10 18:48:19 +02:00
George
e7fe4febfa new: update fastembed with fix for sparse models parallelism (#584) 2024-04-10 18:48:09 +02:00
Apostolos Matsagkas
fdcbf41ba8 fix: Fix read consistency when performing batch search (#589)
* Fix read consistency when performing batch search

* fix: regen async

* fix: add tests to check read consistency

---------

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-10 18:11:09 +02:00
Yasyf Mohamedali
07404f2e8b Remove async from sparse_embedding_model_name property (#581)
* Remove async from sparse_embedding_model_name property

Co-authored-by: George Panchuk <george.panchuk@qdrant.tech>
2024-04-05 19:19:35 +02:00