infer-api-reindex.asciidoc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // tag::cohere[]
  2. [source,console]
  3. ----
  4. POST _reindex?wait_for_completion=false
  5. {
  6. "source": {
  7. "index": "test-data",
  8. "size": 50 <1>
  9. },
  10. "dest": {
  11. "index": "cohere-embeddings",
  12. "pipeline": "cohere_embeddings"
  13. }
  14. }
  15. ----
  16. // TEST[skip:TBD]
  17. <1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
  18. number makes the update of the reindexing process quicker which enables you to
  19. follow the progress closely and detect errors early.
  20. NOTE: The
  21. https://dashboard.cohere.com/billing[rate limit of your Cohere account]
  22. may affect the throughput of the reindexing process.
  23. // end::cohere[]
  24. // tag::hugging-face[]
  25. [source,console]
  26. ----
  27. POST _reindex?wait_for_completion=false
  28. {
  29. "source": {
  30. "index": "test-data",
  31. "size": 50 <1>
  32. },
  33. "dest": {
  34. "index": "hugging-face-embeddings",
  35. "pipeline": "hugging_face_embeddings"
  36. }
  37. }
  38. ----
  39. // TEST[skip:TBD]
  40. <1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
  41. number makes the update of the reindexing process quicker which enables you to
  42. follow the progress closely and detect errors early.
  43. // end::hugging-face[]
  44. // tag::openai[]
  45. [source,console]
  46. ----
  47. POST _reindex?wait_for_completion=false
  48. {
  49. "source": {
  50. "index": "test-data",
  51. "size": 50 <1>
  52. },
  53. "dest": {
  54. "index": "openai-embeddings",
  55. "pipeline": "openai_embeddings"
  56. }
  57. }
  58. ----
  59. // TEST[skip:TBD]
  60. <1> The default batch size for reindexing is 1000. Reducing `size` to a smaller
  61. number makes the update of the reindexing process quicker which enables you to
  62. follow the progress closely and detect errors early.
  63. NOTE: The
  64. https://platform.openai.com/account/limits[rate limit of your OpenAI account]
  65. may affect the throughput of the reindexing process. If this happens, change
  66. `size` to `3` or a similar value in magnitude.
  67. // end::openai[]