M
From Dontopedia, the open, paraconsistent wiki. (Last updated 2026-06-08.)
sameAs to 1 other subject: Number of Sub QuantizersReview & merge →M is number of links per node.
Mostly:rdf:type(13), affects(12), has value(5)
Maturity scale
raw canonical shape-checked rule-derived certifiedRdf:typein disputerdf:type
- Index Parameter[1]sourceall time · 32c1e7e5 4ce5 48df A04d Ccdefa61e55d
- Construction Parameter[2]sourceall time · 24609436 74f2 4564 988e 86e3e75d7114
- Parameter[3]all time · 05970489 D0ac 4332 Acb3 Da3b56efd23d
- Parameter[4]all time · 8e356af0 5214 4a1f 8615 F270ae5ec1c9
- Hnsw Parameter[5]all time · Ea1c880d 666a 428b 9f18 Ae4bdd751abe
- Integer Parameter[6]all time · 19d581bd 9e09 4819 Ad3a F497c9d8b02d
- Variable[8]all time · F5f66e1a 01a9 4eb3 81b7 Fc768e5be38a
- Parameter[8]all time · F5f66e1a 01a9 4eb3 81b7 Fc768e5be38a
- Index Parameter[9]all time · 0bca54e2 F808 47ad B21b 1dfd747efe98
- Parameter[10]all time · 27831356 38d9 4289 97d2 9a64e0fff953
Affectsin disputeaffects
- Accuracy[3]sourceall time · 05970489 D0ac 4332 Acb3 Da3b56efd23d
- Memory Usage[3]sourceall time · 05970489 D0ac 4332 Acb3 Da3b56efd23d
- Search Speed[3]sourceall time · 05970489 D0ac 4332 Acb3 Da3b56efd23d
- Accuracy[4]all time · 8e356af0 5214 4a1f 8615 F270ae5ec1c9
- Speed[4]all time · 8e356af0 5214 4a1f 8615 F270ae5ec1c9
- Speed[7]all time · F262ba02 38a8 487c Ac31 F121b18f4323
- Accuracy[7]all time · F262ba02 38a8 487c Ac31 F121b18f4323
- sub-quantization[9]all time · 0bca54e2 F808 47ad B21b 1dfd747efe98
- Accuracy[10]sourceall time · 27831356 38d9 4289 97d2 9a64e0fff953
- Memory Usage[10]sourceall time · 27831356 38d9 4289 97d2 9a64e0fff953
Inbound mentions (40)
Other subjects in dontopedia point AT this entity as a value. These are inverse relationships — e.g. "X motherOf this subject" — and answer questions the forward facts can't. Grouped by predicate.
hasParameterHas Parameter(10)
- Construction Phase
ex:constructionPhase - Hnsw
ex:hnsw - Hnsw
ex:HNSW - Hnsw Index
ex:hnsw-index - Hnsw Index
ex:hnsw-index - Index
ex:index - Index
ex:index - Index Ivf Flat
ex:index-ivf-flat - Index Ivf Pq
ex:index-ivf-pq - Index Params
ex:index_params
affectedByAffected by(4)
- Accuracy
ex:accuracy - Accuracy
ex:accuracy - Memory Usage
ex:memoryUsage - Search Speed
ex:searchSpeed
involvesInvolves(3)
- Accuracy Memory Tradeoff
ex:accuracy_memory_tradeoff - Parameter Tuning
ex:parameterTuning - Tune Index Parameters
ex:tune-index-parameters
describesDescribes(2)
- Explanation Section
ex:explanationSection - Source Document
ex:sourceDocument
requiresRequires(2)
- Faiss.index Ivfpq
ex:faiss.IndexIVFPQ - Index Hnsw
ex:index-hnsw
adjustsAdjusts(1)
- Adjust Parameters
ex:adjust-parameters
appliesToApplies to(1)
- Parameter Adjustment
ex:parameter-adjustment
constructorRequiresConstructor Requires(1)
- Index Ivfpq
ex:IndexIVFPQ
containsContains(1)
- Parameter Section
ex:parameter_section
createdWithCreated With(1)
- Index
ex:index
hasMHas M(1)
- Hnsw Index
ex:hnsw-index
has-parameterHas Parameter(1)
- Efficient Indexing Methods
efficient-indexing-methods
hasParameterMHas Parameter M(1)
- Hnsw
ex:hnsw
improvedByImproved by(1)
- Accuracy
ex:accuracy
includesIncludes(1)
- Index Parameters
ex:index-parameters
increasedByIncreased by(1)
- Memory Usage
ex:memory_usage
inverseCreatedWithInverse Created With(1)
- Index
ex:index
involves-adjustingInvolves Adjusting(1)
- Parameter Tuning
parameter-tuning
isAffectedByIs Affected by(1)
- Accuracy
ex:accuracy
isIncreasedByIs Increased by(1)
- Memory Usage
ex:memory_usage
mentionsParameterMentions Parameter(1)
- Strategy 2 Parameter Tuning
ex:strategy-2-parameter-tuning
parameterParameter(1)
- Hnsw
ex:HNSW
relatedParameterRelated Parameter(1)
- Nlist
ex:nlist
usesParameterUses Parameter(1)
- Faiss
ex:faiss
Other facts (34)
The long tail: predicates that appear too rarely to warrant their own section. Filter or scroll to find a specific one. Each row links to its source.
| Predicate | Value | Ref |
|---|---|---|
| Has Value | 16 | [2] |
| Has Value | 16 | [3] |
| Has Value | 8 | [8] |
| Has Value | 8 | [12] |
| Has Value | 8 | [16] |
| Description | number of links per node | [3] |
| Description | Number of sub-quantizers | [8] |
| Description | Number of sub-quantizers | [10] |
| Effect of Lower Value | reduces memory usage | [3] |
| Effect of Lower Value | speeds up search | [3] |
| Effect of Lower Value | may reduce accuracy | [3] |
| Used in | Faiss | [3] |
| Used in | Index | [15] |
| Controls | Sub Quantizer Count | [10] |
| Controls | Number of Connections | [15] |
| Represents | Number of sub-quantizers | [12] |
| Represents | Number of sub-quantizers | [16] |
| Default Value | 16 | [2] |
| Used in Example | Example Implementation | [2] |
| Typical Value | 16 | [3] |
| Is Parameter | Parameter | [3] |
| Has Default Value | 16 | [4] |
| Specific to | Hnsw Index | [4] |
| Has Role | Hnsw Links Per Node | [5] |
| Value | 16 | [6] |
| Equals | Nbits | [8] |
| Related Parameter | Nbits | [8] |
| Describes | number-of-sub-quantizers | [9] |
| Belongs to List | Configuration Parameters | [10] |
| Is Parameter of | Faiss Index Configuration | [10] |
| Alias | number of sub-quantizers | [12] |
| Recommended Range | higher values improve accuracy | [12] |
| Default Suggested Value | 8 | [12] |
| Used in Creation of | Index | [16] |
Timeline
Timeline axis is valid_time — when each source says the fact was true in the world, not when Dontopedia learned about it. Retracted rows are kept for provenance; coloured stripes indicate the context kind.
References (16)
ctx:claims/beam/32c1e7e5-4ce5-48df-a04d-ccdefa61e55d- full textbeam-chunktext/plain1 KB
doc:beam/32c1e7e5-4ce5-48df-a04d-ccdefa61e55dShow excerpt
- **Choosing the Right Index Type**: Different index types (e.g., IVF_FLAT, HNSW, ANNOY) have different trade-offs between search speed, memory usage, and accuracy. Choose an index type that best fits your use case. - **Parameter Tuning**: …
ctx:claims/beam/24609436-74f2-4564-988e-86e3e75d7114- full textbeam-chunktext/plain1 KB
doc:beam/24609436-74f2-4564-988e-86e3e75d7114Show excerpt
If your vectors have a relatively low dimensionality (e.g., less than 128), you can use `IndexHNSWFlat` instead of `IndexHNSW`. This can be faster since it avoids the overhead of the hierarchical structure. ### 4. **Optimize Construction P…
ctx:claims/beam/05970489-d0ac-4332-acb3-da3b56efd23d- full textbeam-chunktext/plain1 KB
doc:beam/05970489-d0ac-4332-acb3-da3b56efd23dShow excerpt
faiss.normalize_L2(query_vector) # Search for similar vectors distances, indices = index.search(query_vector.reshape(1, -1), k) return distances, indices # Test the function query_vector = np.random.rand(128).asty…
ctx:claims/beam/8e356af0-5214-4a1f-8615-f270ae5ec1c9- full textbeam-chunktext/plain1 KB
doc:beam/8e356af0-5214-4a1f-8615-f270ae5ec1c9Show excerpt
- `efConstruction` and `efSearch` parameters control the construction and search phases, respectively. 2. **IVFPQ Index**: - `IndexIVFPQ`: Creates an IVFPQ index with a specified number of clusters (`nlist`), subquantizers (`m`), and…
ctx:claims/beam/ea1c880d-666a-428b-9f18-ae4bdd751abe- full textbeam-chunktext/plain1 KB
doc:beam/ea1c880d-666a-428b-9f18-ae4bdd751abeShow excerpt
index = faiss.IndexHNSWFlat(128, M) index.hnsw.efConstruction = efConstruction index.hnsw.efSearch = efSearch index.add(vectors) # Measure initial performance start_time = time.time() distances, indices = search_similar_vectors(query_vecto…
ctx:claims/beam/19d581bd-9e09-4819-ad3a-f497c9d8b02d- full textbeam-chunktext/plain1 KB
doc:beam/19d581bd-9e09-4819-ad3a-f497c9d8b02dShow excerpt
FieldSchema(name="id", dtype=DataType.INT64, is_primary=True, auto_id=True), FieldSchema(name="embedding", dtype=DataType.FLOAT_VECTOR, dim=128) ] schema = CollectionSchema(fields, "Test Collection") # Create a collection collectio…
ctx:claims/beam/f262ba02-38a8-487c-ac31-f121b18f4323ctx:claims/beam/f5f66e1a-01a9-4eb3-81b7-fc768e5be38a- full textbeam-chunktext/plain1 KB
doc:beam/f5f66e1a-01a9-4eb3-81b7-fc768e5be38aShow excerpt
M = 8 # Number of sub-quantizers nbits = 8 # Number of bits per sub-quantizer index = faiss.IndexIVFPQ(quantizer, 128, nlist, M, nbits) # Train the index index.train(vectors) # Add vectors to the index index.add(vectors) # Search for n…
ctx:claims/beam/0bca54e2-f808-47ad-b21b-1dfd747efe98ctx:claims/beam/27831356-38d9-4289-97d2-9a64e0fff953- full textbeam-chunktext/plain1 KB
doc:beam/27831356-38d9-4289-97d2-9a64e0fff953Show excerpt
- `nlist`: Number of clusters. A higher value can improve accuracy but also increases memory usage. - `M`: Number of sub-quantizers. A higher value can improve accuracy but also increases memory usage. - `nbits`: Number of bits per…
ctx:claims/beam/8bf0c428-db86-423e-b410-cf1a80b402bc- full textbeam-chunktext/plain1 KB
doc:beam/8bf0c428-db86-423e-b410-cf1a80b402bcShow excerpt
[Turn 6397] Assistant: Certainly! To achieve a 35% better focus in your dense search goals, you can refine your retrieval pipeline by optimizing the indexing and search processes. Here are some strategies and adjustments to your code to hel…
ctx:claims/beam/c024e566-7bde-4344-ad2d-cef3f5639007- full textbeam-chunktext/plain1 KB
doc:beam/c024e566-7bde-4344-ad2d-cef3f5639007Show excerpt
vectors = np.random.rand(100000, 128).astype('float32') # Set the number of threads for parallel processing faiss.omp_set_num_threads(8) # Adjust based on your CPU cores # Create a quantizer quantizer = faiss.IndexFlatL2(128) # Create a…
ctx:claims/beam/6d298caa-baec-45af-9cad-03ac614affde- full textbeam-chunktext/plain1 KB
doc:beam/6d298caa-baec-45af-9cad-03ac614affdeShow excerpt
**Potential Roadblock**: As the dataset grows, the indexing and search operations can become slower and more resource-intensive. **Solution**: - **Use Efficient Indexing Methods**: Consider using `IndexIVFPQ` or `IndexHNSW` for better perf…
ctx:claims/beam/6a1b250b-4390-4a0e-80ef-1ef7ebaea52b- full textbeam-chunktext/plain1 KB
doc:beam/6a1b250b-4390-4a0e-80ef-1ef7ebaea52bShow excerpt
- Ensure that your system has enough memory to handle the dataset and indexing process. - Use tools like `htop` or `top` on Linux to monitor memory usage. 2. **Use More Efficient Indexing Methods** - Consider using approximate nea…
ctx:claims/beam/411a1538-884c-4c53-bd88-0a36a9406f98- full textbeam-chunktext/plain1 KB
doc:beam/411a1538-884c-4c53-bd88-0a36a9406f98Show excerpt
- `faiss.omp_set_num_threads(8)` enables multi-threading to take advantage of multiple CPU cores. Adjust the number of threads based on your CPU capabilities. 4. **Training the Index**: - The index needs to be trained on the data bef…
ctx:claims/beam/f1d44342-2a97-4d27-8633-2b8cdeffb413- full textbeam-chunktext/plain1 KB
doc:beam/f1d44342-2a97-4d27-8633-2b8cdeffb413Show excerpt
M = 8 # Number of sub-quantizers nbits = 8 # Number of bits per sub-quantizer index = faiss.IndexIVFPQ(quantizer, 128, nlist, M, nbits) try: # Train the index index.train(vectors) except Exception as e: logging.error(f"Error …
See also
Keep researching
Missing something or suspicious of what's here? Kick off a research session — a Claude agent will investigate, cite its sources, and file new facts into a dedicated context you can review before accepting into the shared view.