Skip to content

Conversation

KShivendu
Copy link
Member

@KShivendu KShivendu commented Apr 9, 2024

This PR does two things:

  • Use Query and Record in all the engines.
  • Introduces Ruff linter (written in Rust 🦀 ) in precommit hooks to run type checks and help maintain code quality.

Part of sparse vectors CI benchmark PR. #114

@KShivendu KShivendu force-pushed the feat/refactor-all-engines branch from 4918d02 to a7e6698 Compare April 12, 2024 11:26
@KShivendu KShivendu requested a review from joein April 16, 2024 09:32
@KShivendu KShivendu requested a review from joein April 16, 2024 15:04
@@ -41,16 +42,16 @@ def init_client(cls, host, distance, connection_params: dict, search_params: dic
cls._ft = cls.conns[random.randint(0, len(cls.conns)) - 1].ft()
Copy link
Member

Choose a reason for hiding this comment

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

cls.conns, cls._is_cluster, cls._ft, cls.knn_conditions require definitions on class level (values are not required, only type hints)

@joein joein self-requested a review April 16, 2024 17:24
@KShivendu KShivendu merged commit 174ef91 into feat/sparse-ci-benchmarks Apr 16, 2024
KShivendu added a commit that referenced this pull request Apr 17, 2024
* feat: Add sparse vectors benchmark support in Qdrant

* fix: Self review

* feat: Add sparse dataset for CI benchmarks

* feat: Introduce SparseVector class

* feat: Disallow sparse vector dataset being run with non sparse vector engine configs

* feat: use different engine config to run sparse vector benchmarks

* fix: use different engine config to run sparse vector benchmarks

* feat: Optimize CI benchmarks workflow

* feat: Add 1M sparse dataset

* fix: remove scipy, read csr matrix manually (#117)

* fix: remove scipy, read csr matrix manually

* fix: Dataset query reader should have sparse_vector=None by default

* refactor: Changes based on feedback

* refactoring: refactor sparse vector support (#118)

* refactoring: refactor sparse vector support

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* feat: Use pydantic construct

* refactor: Update all engines to use Query and Record dataclasses (#116)

* refactor: Update all engines to use Query and Record dataclasses

* feat: Add ruff in pre-commit hooks

* fix: Type mismatches

* fix: Redis search client types and var names

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: Type issues detected by linter

* fix: iter_batches func type

* refactor: knn_conditions should be class level constant

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* fix: Type issue

* fix: Allow python 3.8 since scipy is now removed

* fix: Add missing redis-m-16-ef-128 config

* fix: redis container port

* fix linter

---------

Co-authored-by: George <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: generall <[email protected]>
@KShivendu KShivendu deleted the feat/refactor-all-engines branch April 17, 2024 14:55
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.

2 participants