Fix an error in building an index from a model (#3615)
Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
parent
c4c89e77da
commit
4a46a24abf
|
@ -171,7 +171,6 @@ POST _bulk
|
||||||
{ "train-field": [4.5, 5.5, 6.7, 3.7]}
|
{ "train-field": [4.5, 5.5, 6.7, 3.7]}
|
||||||
{ "index": { "_index": "train-index", "_id": "4" } }
|
{ "index": { "_index": "train-index", "_id": "4" } }
|
||||||
{ "train-field": [1.5, 5.5, 4.5, 6.4]}
|
{ "train-field": [1.5, 5.5, 4.5, 6.4]}
|
||||||
...
|
|
||||||
```
|
```
|
||||||
|
|
||||||
After indexing into the training index completes, we can call the Train API:
|
After indexing into the training index completes, we can call the Train API:
|
||||||
|
@ -182,19 +181,14 @@ POST /_plugins/_knn/models/my-model/_train
|
||||||
"training_index": "train-index",
|
"training_index": "train-index",
|
||||||
"training_field": "train-field",
|
"training_field": "train-field",
|
||||||
"dimension": 4,
|
"dimension": 4,
|
||||||
"description": "My models description",
|
"description": "My model description",
|
||||||
"search_size": 500,
|
|
||||||
"method": {
|
"method": {
|
||||||
"name": "hnsw",
|
"name": "ivf",
|
||||||
"engine": "faiss",
|
"engine": "faiss",
|
||||||
|
"space_type": "l2",
|
||||||
"parameters": {
|
"parameters": {
|
||||||
"encoder": {
|
"nlist": 4,
|
||||||
"name": "pq",
|
"nprobes": 2
|
||||||
"parameters": {
|
|
||||||
"code_size": 8,
|
|
||||||
"m": 8
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue