Commit Graph

5 Commits

Author SHA1 Message Date
George
c8aa21c83d new: add sparse vectors support in discovery and recommend in local mode (#571)
* new: add sparse vectors support in discovery and recommend in local mode

* chore: remove redundant file

* chore: remove another redundant file

* fix: fix type hint for python3.8

* fix: remove redundant types from check

* refactoring: remove redundant union

* refactoring: remove redundant import

* fix: fix type hint

* fix: fix type hint

* refactoring: improve exception description

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

* refactoring: improve exception description

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

* refactoring: address review comments

---------

Co-authored-by: Luis Cossío <luis.cossio@outlook.com>
2024-04-05 12:13:20 +02:00
George
af2f2e92b1 new: check for nan vectors in local mode (#560)
* new: check for nan vectors in local mode

* tests: add tests for search with query containing nans

* refactoring: move sparse nan test to test_sparse_search

* tests: add tests for queries with nans in recommendation api

* tests: add tests for query with nan in discovery

* refactoring: update imports in discovery tests
2024-04-02 17:05:40 +02:00
George
04b36c9f5d Remove pytest import (#556)
* fix: remove redundant pytest import breaking qdrant-client

* refactoring: remove redundant imports
2024-03-27 14:57:22 +01:00
George
e90379f287 Fix sort sparse vectors (#442)
* fix: fix sparse vector sorting

* fix: fix sparse vector sort
2024-01-19 19:38:37 +01:00
Arnaud Gourlay
016032c28f Sparse vectors API and local mode (#378)
* draft

* thread sparse_vectors_config through

* test ingest sparse data

* make async_client consistent for create collection

* regen async

* align client hierarchy

* do not give up

* disable async consistency check for now

* regen

* workaround async client breakage

* generate gRPC

* new healtcheck proto files

* fix gen branch

* fix grpc generation - had to reinstall to downgrade grpcio

* bump test docker image

* wait for update when migrating

* regen REST + update config

* add sparse search congruence

* congruence scroll sparse vectors

* congruence test retrieve sparse

* more sparse tests and waiting on remote

* remove healthcheck service

* misc

* reinstate len check

* fix scoring if no overlap

* sparse distance as numpy float without rounding

* fix payload selector

* fix payload exclude

* dedicated collection name to not collide with openapi engine tests

* fix with_vector, scoring no overlap, closeness assetion

* convert float only once

* regen gRPC to exclude health_check

* code review cleanup

* validate and sort sparse vector before persistence

* regen REST

* test deletes and update with fix

* fix async client

* fix batch size

* fix async client

* don't give up

* remove validated todo

* fix sparse vectors loading test

* fix sparse vectors loading test

* rm empty

* mention sparse vectors in the fake local info

* fix upload collection wait propagation

* fix async. init_from tests

* resync async

* rework test sparse vector generation

* regen clients

* update to dev

* update REST models

* async client

* do not change it yet

* fix migration test

* do not create a sparse configuration by default

* fix backward compatibility by disabling serialization of none fields

* fix type imports

* regen gRPC

* test BatchVectorStruct REST to gRPC conversion

* test gRPC->REST conversion

* sparse grpc tests and conversions fix

* generate async client

---------

Co-authored-by: generall <andrey@vasnetsov.com>
2023-12-02 20:45:49 +01:00