ANN Search Timeouts

Adding one other idea, since you mentioned searches maybe became slower once you switched from l2_norm to cosine for the similarity. The cosine similarity is convenient for testing and development, but can be slower to compute than the other types. For best performance, we recommend normalizing all the vectors in advance to have length 1, and using dot_product instead. These docs have more information under the similarity section: Dense vector field type | Elasticsearch Guide [8.1] | Elastic.

2 Likes