Skip to content

Commit 8f536ee

Browse files
committed
Update docs
1 parent b41efed commit 8f536ee

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

_includes/code/howto/configure-rq/rq-compression-v4.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@
101101
quantizer=Configure.VectorIndex.Quantizer.rq(
102102
bits=8, # Optional: Number of bits
103103
rescore_limit=20, # Optional: Number of candidates to fetch before rescoring
104+
cache=True, # Optional: Enable caching for flat index (enabled by default for for HNSW)
105+
),
106+
vector_index_config=Configure.VectorIndex.flat(
107+
vector_cache_max_objects=100000, # Optional: Maximum number of objects in the memory cache
104108
),
105109
# highlight-end
106110
),
Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
| Parameter | Type | Default | Details |
2-
| :------------------- | :------ | :------ | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3-
| `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. |
4-
| `rq`: `rescoreLimit` | integer | `-1` | The minimum number of candidates to fetch before rescoring. |
1+
| Parameter | Type | Default | Details |
2+
| :---------------------- | :------ | :------ | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3+
| `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. |
4+
| `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) |
6+
| `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). |

0 commit comments

Comments
 (0)