Skip to content

Commit 7661d6c

Browse files
authored
Merge pull request #226 from weaviate/v1-34/jph-comments
Draft comments
2 parents 8f536ee + f0b552b commit 7661d6c

15 files changed

+26
-40
lines changed

_includes/code/howto/manage-data.collections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@
212212
# Test
213213
collection = client.collections.use("Article")
214214
config = collection.config.get()
215-
assert config.vector_config["default"].vector_index_config.filter_strategy == "sweeping"
215+
assert config.vector_config["default"].vector_index_config.filter_strategy == "acorn"
216216
assert isinstance(
217217
config.vector_config["default"].vector_index_config, _VectorIndexConfigHNSW
218218
)

_includes/code/howto/manage-data.import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def add_object(obj) -> None:
578578

579579
# highlight-start
580580
# Use `experimental` for server-side batching. The client will send data
581-
# in chunks and the server will dynamically manage the import process.
581+
# in batches at a rate specified by the server.
582582
with collection.batch.experimental() as batch:
583583
for data_row in data_rows:
584584
batch.add_object(

_includes/configuration/bq-compression-parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
| :---------------------- | :------ | :------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
| `bq` : `enabled` | boolean | `false` | Enable BQ. Weaviate uses binary quantization (BQ) compression when `true`. <br/><br/> The Python client does not use the `enabled` parameter. To enable BQ with the v4 client, set a `quantizer` in the collection definition. |
44
| `bq` : `rescoreLimit` | integer | -1 | The minimum number of candidates to fetch before rescoring. |
5-
| `bq` : `cache` | boolean | `false` | Whether to use the vector cache.<br/> (only when using the `flat` vector index type) |
5+
| `bq` : `cache` | boolean | `false` | Whether to cache the vectors in memory.<br/> (only when using the `flat` vector index type) |
66
| `vectorCacheMaxObjects` | integer | `1e12` | Maximum number of objects in the memory cache. By default, this limit is set to one trillion (`1e12`) objects when a new collection is created. For sizing recommendations, see [Vector cache considerations](/weaviate/concepts/vector-index#vector-cache-considerations). |

_includes/configuration/rq-compression-parameters.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
| :---------------------- | :------ | :------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
33
| `rq`: `bits` | integer | `8` | The number of bits used to quantize each data point. Value can be `8` or `1`. <br/> <br/>Learn more about [8-bit](/weaviate/concepts/vector-quantization#8-bit-rq) and [1-bit](/weaviate/concepts/vector-quantization#1-bit-rq) RQ. |
44
| `rq`: `rescoreLimit` | integer | `-1` | The minimum number of candidates to fetch before rescoring. |
5-
| `rq` : `cache` | boolean | `false` | Whether to use the vector cache.<br/> (only when using the `flat` vector index type) |
5+
| `rq` : `cache` | boolean | `false` | Whether to cache the vectors in memory.<br/> (only when using the `flat` vector index type) |
66
| `vectorCacheMaxObjects` | integer | `1e12` | Maximum number of objects in the memory cache. By default, this limit is set to one trillion (`1e12`) objects when a new collection is created. For sizing recommendations, see [Vector cache considerations](/weaviate/concepts/vector-index#vector-cache-considerations). |

docs/weaviate/concepts/vector-quantization.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ When SQ is enabled, Weaviate boosts recall by over-fetching compressed results.
118118

119119
## Rotational quantization
120120

121-
**Rotational quantization (RQ)** is a quantization technique that provides significant compression while maintaining high recall in internal testing. Unlike SQ, RQ requires no training phase and can be enabled immediately at index creation. RQ is available in two variants: **8-bit RQ** and **1-bit RQ**.
121+
**Rotational quantization (RQ)** provides significant compression while maintaining high recall. Unlike SQ, RQ requires no training phase and can be enabled immediately at index creation. RQ is available in: **8-bit** and **1-bit** variants.
122122

123123
### 8-bit RQ
124124

@@ -202,7 +202,7 @@ You might be also interested in our blog post [HNSW+PQ - Exploring ANN algorithm
202202

203203
### With a flat index
204204

205-
[RQ](#rotational-quantization) and [BQ](#binary-quantization) can use a [flat index](./indexing/inverted-index.md). A flat index search reads from disk, compression reduces the amount of data Weaviate has to read so searches are faster.
205+
[RQ](#rotational-quantization) and [BQ](#binary-quantization) can be applied to a [flat index](./indexing/inverted-index.md). As a flat index search is a brute-force method, compression reduces the amount of data Weaviate has to read and increases speed.
206206

207207
## Rescoring
208208

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ dependencies = [
1717
"python-dotenv>=1.1.1",
1818
"tqdm>=4.67.1",
1919
"weaviate-agents>=0.12.0",
20-
"weaviate-client>=4.16.6",
20+
"weaviate-client",
2121
"weaviate-demo-datasets>=0.7.0",
2222
]
23+
24+
[tool.uv.sources]
25+
weaviate-client = { git = "https://github.com/weaviate/weaviate-python-client.git", rev = "dev/1.34" }

tests/docker-compose-anon-2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- '8080'
99
- --scheme
1010
- http
11-
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0
11+
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0-rc.0
1212
ports:
1313
- 8090:8080
1414
- 50061:50051

tests/docker-compose-anon-bind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- '8080'
99
- --scheme
1010
- http
11-
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0
11+
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0-rc.0
1212
ports:
1313
- 8380:8080
1414
- 50351:50051

tests/docker-compose-anon-clip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- '8080'
99
- --scheme
1010
- http
11-
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0
11+
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0-rc.0
1212
ports:
1313
- 8280:8080
1414
- 50251:50051

tests/docker-compose-anon-offload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
- '8080'
99
- --scheme
1010
- http
11-
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0
11+
image: cr.weaviate.io/semitechnologies/weaviate:1.34.0-rc.0
1212
ports:
1313
- 8080:8080
1414
- 50051:50051

0 commit comments

Comments
 (0)