# Can I use external embedding model API that only accepts single text as request

**URL:** <https://forum.opensearch.org/t/can-i-use-external-embedding-model-api-that-only-accepts-single-text-as-request/22633>\
**Category:** Machine Learning\
**Created:** [December 2, 2024, 11:59am UTC](https://forum.opensearch.org/t/can-i-use-external-embedding-model-api-that-only-accepts-single-text-as-request/22633 "2024-12-02T11:59:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeongmin](https://avatars.discourse-cdn.com/v4/letter/j/58f4c7/32.png) [@jeongmin](https://forum.opensearch.org/u/jeongmin)\
**Post date:** [December 2, 2024, 11:59am UTC](https://forum.opensearch.org/t/can-i-use-external-embedding-model-api-that-only-accepts-single-text-as-request/22633/1 "2024-12-02T11:59:54Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser): OpenSearch 2.16.0

**Describe the issue** :

Hi. I’m writing a ML connector blueprint for my embedding API to implement semantic search.

I’ve checked predefined ones (OpenAI, Cohere, SageMaker), it seems that these models should be passed String array as requests.  
But my embedding API only accepts single String text as a request.

In this situation, can I integrate my API to OpenSearch ML?  
If so, is there any problem when using chunking?

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/mauve_hedgehog/original/2X/3/33547ea01a5b12dcca2958411d3edd97ae2ea8c1.png) [@system](https://forum.opensearch.org/u/system)\
**Post date:** [January 31, 2025, 12:00pm UTC](https://forum.opensearch.org/t/can-i-use-external-embedding-model-api-that-only-accepts-single-text-as-request/22633/2 "2025-01-31T12:00:25Z")

</div>

Closed on January 31, 2025, 12:00pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
