From 0567fa3a671d4e122a632856dcdb1a3171a9c7be Mon Sep 17 00:00:00 2001 From: Yusuke Matsui Date: Sat, 6 Aug 2022 12:12:52 +0900 Subject: [PATCH 1/3] explain a bit more in README --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index eff0065..a95017b 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,12 @@ e = rii.Rii(fine_quantizer=nanopq.PQ(M=32).fit(vecs=Xt)).add_configure(vecs=X) ```python # The search can be conducted over a subset of the database -target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234], dtype=np.int64) # Specified by IDs +target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234]) +# For windows, you must specify dtype=np.int64 as follows. +# target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234], dtype=np.int64) + + +# Specified by IDs ids, dists = e.query(q=q, topk=3, target_ids=target_ids) print(ids, dists) # e.g., [728 85 132] [14.80522156 15.92787838 16.28690338] ``` From 271839a6cb1b29387bef3bc35bbf24cb58cba0b3 Mon Sep 17 00:00:00 2001 From: Yusuke Matsui Date: Sat, 6 Aug 2022 12:16:44 +0900 Subject: [PATCH 2/3] typo --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index a95017b..e051c5f 100644 --- a/README.md +++ b/README.md @@ -113,12 +113,10 @@ e = rii.Rii(fine_quantizer=nanopq.PQ(M=32).fit(vecs=Xt)).add_configure(vecs=X) ```python # The search can be conducted over a subset of the database -target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234]) +target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234]) # Specified by IDs # For windows, you must specify dtype=np.int64 as follows. # target_ids = np.array([85, 132, 236, 551, 694, 728, 992, 1234], dtype=np.int64) - -# Specified by IDs ids, dists = e.query(q=q, topk=3, target_ids=target_ids) print(ids, dists) # e.g., [728 85 132] [14.80522156 15.92787838 16.28690338] ``` From 367775d8efe45dadf10d9955fbfcaabc4e452a13 Mon Sep 17 00:00:00 2001 From: Yusuke Matsui Date: Sat, 6 Aug 2022 12:32:27 +0900 Subject: [PATCH 3/3] updated version to 0.2.9 --- docs/source/changelog.rst | 5 +++++ rii/__init__.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index dabb18e..b89c600 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -1,6 +1,11 @@ Changelog ============= +v0.2.9 (August 06, 2022) +---------------------------- +- `#45 `_ Support for modern Windows CI (windows-2022). Support Python 3.9 and 3.10. Drop the support for Python 3.5. + + v0.2.8 (September 12, 2021) ---------------------------- - `#42 `_, `#43 `_ Support Windows diff --git a/rii/__init__.py b/rii/__init__.py index cb03958..ce9d8f5 100644 --- a/rii/__init__.py +++ b/rii/__init__.py @@ -1,5 +1,5 @@ __all__ = ['Rii'] -__version__ = '0.2.8' +__version__ = '0.2.9' from .rii import Rii