Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.

Commit 29ca648

Browse files
committed
incorporate comments
1 parent a5cf609 commit 29ca648

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/knn/jni-library.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,4 @@ has_children: false
77
---
88

99
# JNI Library
10-
In order to integrate nmslib's approximate k-NN functionality, which is implemented in C++, into the k-NN plugin, which is implemented in Java, we created a Java Native Interface library. Check out [this wiki](https://en.wikipedia.org/wiki/Java_Native_Interface) to learn more about JNI. This library allows the k-NN plugin to leverage nmslib's functionality.
11-
12-
## Artifacts
13-
We build and distribute binary library artifacts with Opendistro for Elasticsearch. We build the library binary, RPM and DEB in [this GitHub action](https://github.com/opendistro-for-elasticsearch/k-NN/blob/master/.github/workflows/CD.yml). We use Centos 7 with g++ 4.8.5 to build the DEB, RPM and ZIP. Additionally, in order to provide as much general compatibility as possible, we compile the library without optimized instruction sets enabled. For users that want to get the most out of the library, they should build the library from source in their production environment, so that if their environment has optimized instruction sets, they take advantage of them. The documentation for this can be found [here](https://github.com/opendistro-for-elasticsearch/k-NN#jni-library-artifacts).
10+
In order to integrate nmslib's approximate k-NN functionality, which is implemented in C++, into the k-NN plugin, which is implemented in Java, we created a Java Native Interface library. Check out [this wiki](https://en.wikipedia.org/wiki/Java_Native_Interface) to learn more about JNI. This library allows the k-NN plugin to leverage nmslib's functionality. For more information about how we build the JNI library binary and how to get the most of it in your production environment, see [here](https://github.com/opendistro-for-elasticsearch/k-NN#jni-library-artifacts).

docs/knn/painless-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ GET my-knn-index-2/_search
3434
"source": "1.0 + cosineSimilarity(params.query_value, doc[params.field])",
3535
"params": {
3636
"field": "my_vector",
37-
"query_value": [9.9, 9.9],
37+
"query_value": [9.9, 9.9]
3838
}
3939
}
4040
}

0 commit comments

Comments
 (0)