All Downloads are FREE. Search and download functionalities are using the official Maven repository.

hover.schema.HNSW.md Maven / Gradle / Ivy

There is a newer version: 8.465.15
Show newest version
## hnsw


Contained in [index](https://docs.vespa.ai/en/reference/schema-reference.html#index).
Specifies that an HNSW index should be built to speed up approximate nearest neighbor search
using the [nearestNeighbor](https://docs.vespa.ai/en/reference/query-language-reference.html#nearestneighbor) query operator.
This implements a modified version of the
Hierarchical Navigable Small World (HNSW) graphs algorithm ([paper](https://arxiv.org/abs/1603.09320)).


Only supported for the following tensor attribute field types:

    Single vector per document: Tensor type with one indexed dimension.
        Example: `tensor(x[3])`
    Multiple vectors per document: Tensor type with one mapped and one indexed dimension.
        Example: `tensor(m{},x[3])`

HNSW indexes are not supported in
[streaming search](https://docs.vespa.ai/en/streaming-search.html#differences-in-streaming-search).

```
hnsw {
    [parameter]: [value]
    [parameter]: [value]
    ...
}
``` 


The following parameters are used when building the index graph:

[Read more](https://docs.vespa.ai/en/reference/schema-reference.html#index-hnsw)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy