format JSON. (#2870)
This commit is contained in:
parent
512db77db5
commit
a2f3890754
|
@ -143,9 +143,9 @@ any `knn_vector` field that has a dimension matching the dimension of the model
|
|||
```json
|
||||
PUT /train-index
|
||||
{
|
||||
"settings" : {
|
||||
"number_of_shards" : 3,
|
||||
"number_of_replicas" : 0
|
||||
"settings": {
|
||||
"number_of_shards": 3,
|
||||
"number_of_replicas": 0
|
||||
},
|
||||
"mappings": {
|
||||
"properties": {
|
||||
|
@ -186,12 +186,12 @@ POST /_plugins/_knn/models/my-model/_train
|
|||
"description": "My models description",
|
||||
"search_size": 500,
|
||||
"method": {
|
||||
"name":"hnsw",
|
||||
"engine":"faiss",
|
||||
"parameters":{
|
||||
"encoder":{
|
||||
"name":"pq",
|
||||
"parameters":{
|
||||
"name": "hnsw",
|
||||
"engine": "faiss",
|
||||
"parameters": {
|
||||
"encoder": {
|
||||
"name": "pq",
|
||||
"parameters": {
|
||||
"code_size": 8,
|
||||
"m": 8
|
||||
}
|
||||
|
@ -216,9 +216,9 @@ library indexes:
|
|||
```json
|
||||
PUT /target-index
|
||||
{
|
||||
"settings" : {
|
||||
"number_of_shards" : 3,
|
||||
"number_of_replicas" : 1,
|
||||
"settings": {
|
||||
"number_of_shards": 3,
|
||||
"number_of_replicas": 1,
|
||||
"index.knn": true
|
||||
},
|
||||
"mappings": {
|
||||
|
|
Loading…
Reference in New Issue