Fix an error in building an index from a model (#3615)

Signed-off-by: Fanit Kolchina <kolchfa@amazon.com>
This commit is contained in:
kolchfa-aws 2023-03-29 16:01:57 -04:00 committed by GitHub
parent c4c89e77da
commit 4a46a24abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 11 deletions

View File

@ -171,7 +171,6 @@ POST _bulk
{ "train-field": [4.5, 5.5, 6.7, 3.7]}
{ "index": { "_index": "train-index", "_id": "4" } }
{ "train-field": [1.5, 5.5, 4.5, 6.4]}
...
```
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_field": "train-field",
"dimension": 4,
"description": "My models description",
"search_size": 500,
"description": "My model description",
"method": {
"name": "hnsw",
"name": "ivf",
"engine": "faiss",
"space_type": "l2",
"parameters": {
"encoder": {
"name": "pq",
"parameters": {
"code_size": 8,
"m": 8
}
}
"nlist": 4,
"nprobes": 2
}
}
}