Sxnan opened a new pull request, #611:
URL: https://github.com/apache/flink-agents/pull/611

   <!--
   * Thank you very much for contributing to Flink Agents.
   * Please add the relevant components in the PR title. E.g., [api], 
[runtime], [java], [python], [hotfix], etc.
   -->
   
   <!-- Please link the PR to the relevant issue(s). Hotfix doesn't need this. 
-->
   Linked issue: #610
   
   ### Purpose of change
   
   Add Tongyi (DashScope) embedding model integration for Alibaba Cloud's text 
embedding service.
   
   This introduces:
     - `TongyiEmbeddingModelConnection` — manages the DashScope API connection 
with configurable API key and timeout
     - `TongyiEmbeddingModelSetup` — provides model configuration including 
`text_type` (`query`/`document`), `dimension`, and `additional_kwargs`
     - Resource name constants registered in both Python 
(`ResourceName.EmbeddingModel`) and Java (`ResourceName.EmbeddingModel.Python`)
   
   ### Tests
   
   - 3 unit tests with mocked DashScope API
   - 2 integration tests that call the real DashScope API
   
   ### API
   
   - Adds `ResourceName.EmbeddingModel.TONGYI_EMBEDDING_MODEL_CONNECTION` and 
`ResourceName.EmbeddingModel.TONGYI_EMBEDDING_MODEL_SETUP` to both Python and 
Java resource name registries
   
   ### Documentation
   
   <!-- Do not remove this section. Check the proper box only. -->
   
   - [ ] `doc-needed` <!-- Your PR changes impact docs -->
   - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [x] `doc-included` <!-- Your PR already contains the necessary 
documentation updates -->
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to