mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
* Update docs for Azure OpenAI Embeddings inference * cleanups * update link for dot_product similarity * final cleanups
106 lines
2.6 KiB
Text
106 lines
2.6 KiB
Text
// tag::cohere[]
|
|
|
|
[source,console]
|
|
----
|
|
POST _reindex?wait_for_completion=false
|
|
{
|
|
"source": {
|
|
"index": "test-data",
|
|
"size": 50 <1>
|
|
},
|
|
"dest": {
|
|
"index": "cohere-embeddings",
|
|
"pipeline": "cohere_embeddings"
|
|
}
|
|
}
|
|
----
|
|
// TEST[skip:TBD]
|
|
<1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
|
|
number makes the update of the reindexing process quicker which enables you to
|
|
follow the progress closely and detect errors early.
|
|
|
|
NOTE: The
|
|
https://dashboard.cohere.com/billing[rate limit of your Cohere account]
|
|
may affect the throughput of the reindexing process.
|
|
|
|
// end::cohere[]
|
|
|
|
// tag::hugging-face[]
|
|
|
|
[source,console]
|
|
----
|
|
POST _reindex?wait_for_completion=false
|
|
{
|
|
"source": {
|
|
"index": "test-data",
|
|
"size": 50 <1>
|
|
},
|
|
"dest": {
|
|
"index": "hugging-face-embeddings",
|
|
"pipeline": "hugging_face_embeddings"
|
|
}
|
|
}
|
|
----
|
|
// TEST[skip:TBD]
|
|
<1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
|
|
number makes the update of the reindexing process quicker which enables you to
|
|
follow the progress closely and detect errors early.
|
|
|
|
// end::hugging-face[]
|
|
|
|
|
|
// tag::openai[]
|
|
|
|
[source,console]
|
|
----
|
|
POST _reindex?wait_for_completion=false
|
|
{
|
|
"source": {
|
|
"index": "test-data",
|
|
"size": 50 <1>
|
|
},
|
|
"dest": {
|
|
"index": "openai-embeddings",
|
|
"pipeline": "openai_embeddings"
|
|
}
|
|
}
|
|
----
|
|
// TEST[skip:TBD]
|
|
<1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
|
|
number makes the update of the reindexing process quicker which enables you to
|
|
follow the progress closely and detect errors early.
|
|
|
|
NOTE: The
|
|
https://platform.openai.com/account/limits[rate limit of your OpenAI account]
|
|
may affect the throughput of the reindexing process. If this happens, change
|
|
`size` to `3` or a similar value in magnitude.
|
|
|
|
// end::openai[]
|
|
|
|
// tag::azure-openai[]
|
|
|
|
[source,console]
|
|
----
|
|
POST _reindex?wait_for_completion=false
|
|
{
|
|
"source": {
|
|
"index": "test-data",
|
|
"size": 50 <1>
|
|
},
|
|
"dest": {
|
|
"index": "azure-openai-embeddings",
|
|
"pipeline": "azure_openai_embeddings"
|
|
}
|
|
}
|
|
----
|
|
// TEST[skip:TBD]
|
|
<1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
|
|
number makes the update of the reindexing process quicker which enables you to
|
|
follow the progress closely and detect errors early.
|
|
|
|
NOTE: The
|
|
https://learn.microsoft.com/en-us/azure/ai-services/openai/quotas-limits#quotas-and-limits-reference[rate limit of your Azure OpenAI account]
|
|
may affect the throughput of the reindexing process. If this happens, change
|
|
`size` to `3` or a similar value in magnitude.
|
|
|
|
// end::azure-openai[]
|